Home
last modified time | relevance | path

Searched full:ieee (Results 1 – 25 of 1333) sorted by relevance

12345678910>>...54

/kernel/linux/linux-5.10/drivers/staging/rtl8192e/
Drtllib_softmac.c2 /* IEEE 802.11 SoftMAC layer
23 static void rtllib_sta_wakeup(struct rtllib_device *ieee, short nl);
35 static unsigned int rtllib_MFIE_rate_len(struct rtllib_device *ieee) in rtllib_MFIE_rate_len() argument
39 if (ieee->modulation & RTLLIB_CCK_MODULATION) in rtllib_MFIE_rate_len()
42 if (ieee->modulation & RTLLIB_OFDM_MODULATION) in rtllib_MFIE_rate_len()
53 static void rtllib_MFIE_Brate(struct rtllib_device *ieee, u8 **tag_p) in rtllib_MFIE_Brate() argument
57 if (ieee->modulation & RTLLIB_CCK_MODULATION) { in rtllib_MFIE_Brate()
72 static void rtllib_MFIE_Grate(struct rtllib_device *ieee, u8 **tag_p) in rtllib_MFIE_Grate() argument
76 if (ieee->modulation & RTLLIB_OFDM_MODULATION) { in rtllib_MFIE_Grate()
94 static void rtllib_WMM_Info(struct rtllib_device *ieee, u8 **tag_p) in rtllib_WMM_Info() argument
[all …]
Drtllib_softmac_wx.c2 /* IEEE 802.11 SoftMAC layer
29 int rtllib_wx_set_freq(struct rtllib_device *ieee, struct iw_request_info *a, in rtllib_wx_set_freq() argument
35 mutex_lock(&ieee->wx_mutex); in rtllib_wx_set_freq()
37 if (ieee->iw_mode == IW_MODE_INFRA) { in rtllib_wx_set_freq()
64 if (ieee->active_channel_map[fwrq->m] != 1) { in rtllib_wx_set_freq()
68 ieee->current_network.channel = fwrq->m; in rtllib_wx_set_freq()
69 ieee->set_chan(ieee->dev, ieee->current_network.channel); in rtllib_wx_set_freq()
71 if (ieee->iw_mode == IW_MODE_ADHOC || in rtllib_wx_set_freq()
72 ieee->iw_mode == IW_MODE_MASTER) in rtllib_wx_set_freq()
73 if (ieee->state == RTLLIB_LINKED) { in rtllib_wx_set_freq()
[all …]
Drtllib_module.c40 static inline int rtllib_networks_allocate(struct rtllib_device *ieee) in rtllib_networks_allocate() argument
42 if (ieee->networks) in rtllib_networks_allocate()
45 ieee->networks = kcalloc(MAX_NETWORK_COUNT, in rtllib_networks_allocate()
47 if (!ieee->networks) in rtllib_networks_allocate()
53 static inline void rtllib_networks_free(struct rtllib_device *ieee) in rtllib_networks_free() argument
55 if (!ieee->networks) in rtllib_networks_free()
57 kfree(ieee->networks); in rtllib_networks_free()
58 ieee->networks = NULL; in rtllib_networks_free()
61 static inline void rtllib_networks_initialize(struct rtllib_device *ieee) in rtllib_networks_initialize() argument
65 INIT_LIST_HEAD(&ieee->network_free_list); in rtllib_networks_initialize()
[all …]
Drtl819x_BAProc.c13 static void ActivateBAEntry(struct rtllib_device *ieee, struct ba_record *pBA, in ActivateBAEntry() argument
21 static void DeActivateBAEntry(struct rtllib_device *ieee, struct ba_record *pBA) in DeActivateBAEntry() argument
27 static u8 TxTsDeleteBA(struct rtllib_device *ieee, struct tx_ts_record *pTxTs) in TxTsDeleteBA() argument
34 DeActivateBAEntry(ieee, pPendingBa); in TxTsDeleteBA()
39 DeActivateBAEntry(ieee, pAdmittedBa); in TxTsDeleteBA()
45 static u8 RxTsDeleteBA(struct rtllib_device *ieee, struct rx_ts_record *pRxTs) in RxTsDeleteBA() argument
51 DeActivateBAEntry(ieee, pBa); in RxTsDeleteBA()
66 static struct sk_buff *rtllib_ADDBA(struct rtllib_device *ieee, u8 *Dst, in rtllib_ADDBA() argument
73 u16 len = ieee->tx_headroom + 9; in rtllib_ADDBA()
75 netdev_dbg(ieee->dev, "%s(): frame(%d) sentd to: %pM, ieee->dev:%p\n", in rtllib_ADDBA()
[all …]
Drtl819x_TSProc.c23 struct rtllib_device *ieee = container_of(pRxTs, struct rtllib_device, in RxPktPendingTimeout() local
32 spin_lock_irqsave(&(ieee->reorder_spinlock), flags); in RxPktPendingTimeout()
52 netdev_dbg(ieee->dev, in RxPktPendingTimeout()
55 ieee->stats_IndicateArray[index] = in RxPktPendingTimeout()
60 &ieee->RxReorder_Unused_List); in RxPktPendingTimeout()
72 netdev_warn(ieee->dev, in RxPktPendingTimeout()
75 spin_unlock_irqrestore(&(ieee->reorder_spinlock), in RxPktPendingTimeout()
79 rtllib_indicate_packets(ieee, ieee->stats_IndicateArray, index); in RxPktPendingTimeout()
86 msecs_to_jiffies(ieee->pHTInfo->RxReorderPendingTime) in RxPktPendingTimeout()
89 spin_unlock_irqrestore(&(ieee->reorder_spinlock), flags); in RxPktPendingTimeout()
[all …]
Drtl819x_HTProc.c70 void HTUpdateDefaultSetting(struct rtllib_device *ieee) in HTUpdateDefaultSetting() argument
72 struct rt_hi_throughput *pHTInfo = ieee->pHTInfo; in HTUpdateDefaultSetting()
96 ieee->bTxDisableRateFallBack = 0; in HTUpdateDefaultSetting()
97 ieee->bTxUseDriverAssingedRate = 0; in HTUpdateDefaultSetting()
99 ieee->bTxEnableFwCalcDur = 1; in HTUpdateDefaultSetting()
108 static u16 HTMcsToDataRate(struct rtllib_device *ieee, u8 nMcsRate) in HTMcsToDataRate() argument
110 struct rt_hi_throughput *pHTInfo = ieee->pHTInfo; in HTMcsToDataRate()
119 u16 TxCountToDataRate(struct rtllib_device *ieee, u8 nDataRate) in TxCountToDataRate() argument
144 bool IsHTHalfNmodeAPs(struct rtllib_device *ieee) in IsHTHalfNmodeAPs() argument
147 struct rtllib_network *net = &ieee->current_network; in IsHTHalfNmodeAPs()
[all …]
Drtllib_wx.c34 static inline char *rtl819x_translate_scan(struct rtllib_device *ieee, in rtl819x_translate_scan() argument
154 max_mcs = HTGetHighestMCSRate(ieee, ht_cap->MCS, in rtl819x_translate_scan()
240 int rtllib_wx_get_scan(struct rtllib_device *ieee, in rtllib_wx_get_scan() argument
252 netdev_dbg(ieee->dev, "Getting scan\n"); in rtllib_wx_get_scan()
253 mutex_lock(&ieee->wx_mutex); in rtllib_wx_get_scan()
254 spin_lock_irqsave(&ieee->lock, flags); in rtllib_wx_get_scan()
256 list_for_each_entry(network, &ieee->network_list, list) { in rtllib_wx_get_scan()
262 if (ieee->scan_age == 0 || in rtllib_wx_get_scan()
263 time_after(network->last_scanned + ieee->scan_age, jiffies)) in rtllib_wx_get_scan()
264 ev = rtl819x_translate_scan(ieee, ev, stop, network, in rtllib_wx_get_scan()
[all …]
Drtllib_rx.c39 static void rtllib_rx_mgt(struct rtllib_device *ieee, struct sk_buff *skb,
42 static inline void rtllib_monitor_rx(struct rtllib_device *ieee, in rtllib_monitor_rx() argument
47 skb->dev = ieee->dev; in rtllib_monitor_rx()
58 rtllib_frag_cache_find(struct rtllib_device *ieee, unsigned int seq, in rtllib_frag_cache_find() argument
65 entry = &ieee->frag_cache[tid][i]; in rtllib_frag_cache_find()
68 netdev_dbg(ieee->dev, in rtllib_frag_cache_find()
87 rtllib_frag_cache_get(struct rtllib_device *ieee, in rtllib_frag_cache_get() argument
117 skb = dev_alloc_skb(ieee->dev->mtu + in rtllib_frag_cache_get()
128 entry = &ieee->frag_cache[tid][ieee->frag_next_idx[tid]]; in rtllib_frag_cache_get()
129 ieee->frag_next_idx[tid]++; in rtllib_frag_cache_get()
[all …]
/kernel/linux/linux-6.6/drivers/staging/rtl8192e/
Drtllib_softmac.c2 /* IEEE 802.11 SoftMAC layer
23 static void rtllib_sta_wakeup(struct rtllib_device *ieee, short nl);
34 static unsigned int rtllib_MFIE_rate_len(struct rtllib_device *ieee) in rtllib_MFIE_rate_len() argument
48 static void rtllib_MFIE_Brate(struct rtllib_device *ieee, u8 **tag_p) in rtllib_MFIE_Brate() argument
65 static void rtllib_MFIE_Grate(struct rtllib_device *ieee, u8 **tag_p) in rtllib_MFIE_Grate() argument
86 static void rtllib_WMM_Info(struct rtllib_device *ieee, u8 **tag_p) in rtllib_WMM_Info() argument
102 static void rtllib_TURBO_Info(struct rtllib_device *ieee, u8 **tag_p) in rtllib_TURBO_Info() argument
117 netdev_alert(ieee->dev, "This is enable turbo mode IE process\n"); in rtllib_TURBO_Info()
120 static void enqueue_mgmt(struct rtllib_device *ieee, struct sk_buff *skb) in enqueue_mgmt() argument
124 nh = (ieee->mgmt_queue_head + 1) % MGMT_QUEUE_NUM; in enqueue_mgmt()
[all …]
Drtllib_softmac_wx.c2 /* IEEE 802.11 SoftMAC layer
19 int rtllib_wx_set_freq(struct rtllib_device *ieee, struct iw_request_info *a, in rtllib_wx_set_freq() argument
25 mutex_lock(&ieee->wx_mutex); in rtllib_wx_set_freq()
27 if (ieee->iw_mode == IW_MODE_INFRA) { in rtllib_wx_set_freq()
47 if (ieee->active_channel_map[fwrq->m] != 1) { in rtllib_wx_set_freq()
51 ieee->current_network.channel = fwrq->m; in rtllib_wx_set_freq()
52 ieee->set_chan(ieee->dev, ieee->current_network.channel); in rtllib_wx_set_freq()
54 if (ieee->iw_mode == IW_MODE_ADHOC) in rtllib_wx_set_freq()
55 if (ieee->link_state == MAC80211_LINKED) { in rtllib_wx_set_freq()
56 rtllib_stop_send_beacons(ieee); in rtllib_wx_set_freq()
[all …]
Drtllib_module.c40 static inline int rtllib_networks_allocate(struct rtllib_device *ieee) in rtllib_networks_allocate() argument
42 if (ieee->networks) in rtllib_networks_allocate()
45 ieee->networks = kcalloc(MAX_NETWORK_COUNT, in rtllib_networks_allocate()
47 if (!ieee->networks) in rtllib_networks_allocate()
53 static inline void rtllib_networks_free(struct rtllib_device *ieee) in rtllib_networks_free() argument
55 if (!ieee->networks) in rtllib_networks_free()
57 kfree(ieee->networks); in rtllib_networks_free()
58 ieee->networks = NULL; in rtllib_networks_free()
61 static inline void rtllib_networks_initialize(struct rtllib_device *ieee) in rtllib_networks_initialize() argument
65 INIT_LIST_HEAD(&ieee->network_free_list); in rtllib_networks_initialize()
[all …]
Drtl819x_BAProc.c20 static void deactivate_ba_entry(struct rtllib_device *ieee, struct ba_record *pBA) in deactivate_ba_entry() argument
26 static u8 tx_ts_delete_ba(struct rtllib_device *ieee, struct tx_ts_record *pTxTs) in tx_ts_delete_ba() argument
33 deactivate_ba_entry(ieee, pPendingBa); in tx_ts_delete_ba()
38 deactivate_ba_entry(ieee, pAdmittedBa); in tx_ts_delete_ba()
44 static u8 rx_ts_delete_ba(struct rtllib_device *ieee, struct rx_ts_record *pRxTs) in rx_ts_delete_ba() argument
50 deactivate_ba_entry(ieee, pBa); in rx_ts_delete_ba()
66 static struct sk_buff *rtllib_ADDBA(struct rtllib_device *ieee, u8 *Dst, in rtllib_ADDBA() argument
73 u16 len = ieee->tx_headroom + 9; in rtllib_ADDBA()
75 netdev_dbg(ieee->dev, "%s(): frame(%d) sentd to: %pM, ieee->dev:%p\n", in rtllib_ADDBA()
76 __func__, type, Dst, ieee->dev); in rtllib_ADDBA()
[all …]
Drtl819x_TSProc.c15 struct rtllib_device *ieee = container_of(pRxTs, struct rtllib_device, in RxPktPendingTimeout() local
24 spin_lock_irqsave(&(ieee->reorder_spinlock), flags); in RxPktPendingTimeout()
44 netdev_dbg(ieee->dev, in RxPktPendingTimeout()
47 ieee->stats_IndicateArray[index] = in RxPktPendingTimeout()
52 &ieee->RxReorder_Unused_List); in RxPktPendingTimeout()
64 netdev_warn(ieee->dev, in RxPktPendingTimeout()
67 spin_unlock_irqrestore(&(ieee->reorder_spinlock), in RxPktPendingTimeout()
71 rtllib_indicate_packets(ieee, ieee->stats_IndicateArray, index); in RxPktPendingTimeout()
78 msecs_to_jiffies(ieee->ht_info->rx_reorder_pending_time) in RxPktPendingTimeout()
81 spin_unlock_irqrestore(&(ieee->reorder_spinlock), flags); in RxPktPendingTimeout()
[all …]
Drtl819x_HTProc.c70 void HTUpdateDefaultSetting(struct rtllib_device *ieee) in HTUpdateDefaultSetting() argument
72 struct rt_hi_throughput *ht_info = ieee->ht_info; in HTUpdateDefaultSetting()
94 ieee->tx_dis_rate_fallback = 0; in HTUpdateDefaultSetting()
95 ieee->tx_use_drv_assinged_rate = 0; in HTUpdateDefaultSetting()
97 ieee->bTxEnableFwCalcDur = 1; in HTUpdateDefaultSetting()
106 static u16 HTMcsToDataRate(struct rtllib_device *ieee, u8 nMcsRate) in HTMcsToDataRate() argument
108 struct rt_hi_throughput *ht_info = ieee->ht_info; in HTMcsToDataRate()
117 u16 TxCountToDataRate(struct rtllib_device *ieee, u8 nDataRate) in TxCountToDataRate() argument
142 bool IsHTHalfNmodeAPs(struct rtllib_device *ieee) in IsHTHalfNmodeAPs() argument
145 struct rtllib_network *net = &ieee->current_network; in IsHTHalfNmodeAPs()
[all …]
Drtllib_rx.c39 static void rtllib_rx_mgt(struct rtllib_device *ieee, struct sk_buff *skb,
42 static inline void rtllib_monitor_rx(struct rtllib_device *ieee, in rtllib_monitor_rx() argument
47 skb->dev = ieee->dev; in rtllib_monitor_rx()
58 rtllib_frag_cache_find(struct rtllib_device *ieee, unsigned int seq, in rtllib_frag_cache_find() argument
65 entry = &ieee->frag_cache[tid][i]; in rtllib_frag_cache_find()
68 netdev_dbg(ieee->dev, in rtllib_frag_cache_find()
87 rtllib_frag_cache_get(struct rtllib_device *ieee, in rtllib_frag_cache_get() argument
117 skb = dev_alloc_skb(ieee->dev->mtu + in rtllib_frag_cache_get()
128 entry = &ieee->frag_cache[tid][ieee->frag_next_idx[tid]]; in rtllib_frag_cache_get()
129 ieee->frag_next_idx[tid]++; in rtllib_frag_cache_get()
[all …]
/kernel/linux/linux-6.6/drivers/staging/rtl8192u/ieee80211/
Dieee80211_softmac.c2 /* IEEE 802.11 SoftMAC layer
40 static unsigned int ieee80211_MFIE_rate_len(struct ieee80211_device *ieee) in ieee80211_MFIE_rate_len() argument
44 if (ieee->modulation & IEEE80211_CCK_MODULATION) in ieee80211_MFIE_rate_len()
47 if (ieee->modulation & IEEE80211_OFDM_MODULATION) in ieee80211_MFIE_rate_len()
57 static void ieee80211_MFIE_Brate(struct ieee80211_device *ieee, u8 **tag_p) in ieee80211_MFIE_Brate() argument
61 if (ieee->modulation & IEEE80211_CCK_MODULATION) { in ieee80211_MFIE_Brate()
74 static void ieee80211_MFIE_Grate(struct ieee80211_device *ieee, u8 **tag_p) in ieee80211_MFIE_Grate() argument
78 if (ieee->modulation & IEEE80211_OFDM_MODULATION) { in ieee80211_MFIE_Grate()
95 static void ieee80211_WMM_Info(struct ieee80211_device *ieee, u8 **tag_p) in ieee80211_WMM_Info() argument
108 if (ieee->current_network.wmm_info & 0x80) in ieee80211_WMM_Info()
[all …]
Dieee80211_softmac_wx.c2 /* IEEE 802.11 SoftMAC layer
30 int ieee80211_wx_set_freq(struct ieee80211_device *ieee, struct iw_request_info *a, in ieee80211_wx_set_freq() argument
36 mutex_lock(&ieee->wx_mutex); in ieee80211_wx_set_freq()
38 if (ieee->iw_mode == IW_MODE_INFRA) { in ieee80211_wx_set_freq()
65 if (!(GET_DOT11D_INFO(ieee)->channel_map)[fwrq->m]) { in ieee80211_wx_set_freq()
69 ieee->current_network.channel = fwrq->m; in ieee80211_wx_set_freq()
70 ieee->set_chan(ieee->dev, ieee->current_network.channel); in ieee80211_wx_set_freq()
72 if (ieee->iw_mode == IW_MODE_ADHOC || ieee->iw_mode == IW_MODE_MASTER) in ieee80211_wx_set_freq()
73 if (ieee->state == IEEE80211_LINKED) { in ieee80211_wx_set_freq()
74 ieee80211_stop_send_beacons(ieee); in ieee80211_wx_set_freq()
[all …]
Dieee80211_module.c46 static inline int ieee80211_networks_allocate(struct ieee80211_device *ieee) in ieee80211_networks_allocate() argument
48 if (ieee->networks) in ieee80211_networks_allocate()
51 ieee->networks = kcalloc(MAX_NETWORK_COUNT, in ieee80211_networks_allocate()
54 if (!ieee->networks) { in ieee80211_networks_allocate()
55 netdev_warn(ieee->dev, "Out of memory allocating beacons\n"); in ieee80211_networks_allocate()
62 static inline void ieee80211_networks_free(struct ieee80211_device *ieee) in ieee80211_networks_free() argument
64 if (!ieee->networks) in ieee80211_networks_free()
66 kfree(ieee->networks); in ieee80211_networks_free()
67 ieee->networks = NULL; in ieee80211_networks_free()
70 static inline void ieee80211_networks_initialize(struct ieee80211_device *ieee) in ieee80211_networks_initialize() argument
[all …]
/kernel/linux/linux-5.10/drivers/staging/rtl8192u/ieee80211/
Dieee80211_softmac.c2 /* IEEE 802.11 SoftMAC layer
40 static unsigned int ieee80211_MFIE_rate_len(struct ieee80211_device *ieee) in ieee80211_MFIE_rate_len() argument
44 if (ieee->modulation & IEEE80211_CCK_MODULATION) in ieee80211_MFIE_rate_len()
47 if (ieee->modulation & IEEE80211_OFDM_MODULATION) in ieee80211_MFIE_rate_len()
57 static void ieee80211_MFIE_Brate(struct ieee80211_device *ieee, u8 **tag_p) in ieee80211_MFIE_Brate() argument
61 if (ieee->modulation & IEEE80211_CCK_MODULATION) { in ieee80211_MFIE_Brate()
74 static void ieee80211_MFIE_Grate(struct ieee80211_device *ieee, u8 **tag_p) in ieee80211_MFIE_Grate() argument
78 if (ieee->modulation & IEEE80211_OFDM_MODULATION) { in ieee80211_MFIE_Grate()
95 static void ieee80211_WMM_Info(struct ieee80211_device *ieee, u8 **tag_p) in ieee80211_WMM_Info() argument
108 if (ieee->current_network.wmm_info & 0x80) in ieee80211_WMM_Info()
[all …]
Dieee80211_softmac_wx.c2 /* IEEE 802.11 SoftMAC layer
30 int ieee80211_wx_set_freq(struct ieee80211_device *ieee, struct iw_request_info *a, in ieee80211_wx_set_freq() argument
36 mutex_lock(&ieee->wx_mutex); in ieee80211_wx_set_freq()
38 if (ieee->iw_mode == IW_MODE_INFRA) { in ieee80211_wx_set_freq()
65 if (!(GET_DOT11D_INFO(ieee)->channel_map)[fwrq->m]) { in ieee80211_wx_set_freq()
69 ieee->current_network.channel = fwrq->m; in ieee80211_wx_set_freq()
70 ieee->set_chan(ieee->dev, ieee->current_network.channel); in ieee80211_wx_set_freq()
72 if (ieee->iw_mode == IW_MODE_ADHOC || ieee->iw_mode == IW_MODE_MASTER) in ieee80211_wx_set_freq()
73 if (ieee->state == IEEE80211_LINKED) { in ieee80211_wx_set_freq()
74 ieee80211_stop_send_beacons(ieee); in ieee80211_wx_set_freq()
[all …]
Dieee80211_module.c46 static inline int ieee80211_networks_allocate(struct ieee80211_device *ieee) in ieee80211_networks_allocate() argument
48 if (ieee->networks) in ieee80211_networks_allocate()
51 ieee->networks = kcalloc(MAX_NETWORK_COUNT, in ieee80211_networks_allocate()
54 if (!ieee->networks) { in ieee80211_networks_allocate()
55 netdev_warn(ieee->dev, "Out of memory allocating beacons\n"); in ieee80211_networks_allocate()
62 static inline void ieee80211_networks_free(struct ieee80211_device *ieee) in ieee80211_networks_free() argument
64 if (!ieee->networks) in ieee80211_networks_free()
66 kfree(ieee->networks); in ieee80211_networks_free()
67 ieee->networks = NULL; in ieee80211_networks_free()
70 static inline void ieee80211_networks_initialize(struct ieee80211_device *ieee) in ieee80211_networks_initialize() argument
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/ipw2x00/
Dlibipw_geo.c31 int libipw_is_valid_channel(struct libipw_device *ieee, u8 channel) in libipw_is_valid_channel() argument
37 if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0) in libipw_is_valid_channel()
40 if (ieee->freq_band & LIBIPW_24GHZ_BAND) in libipw_is_valid_channel()
41 for (i = 0; i < ieee->geo.bg_channels; i++) in libipw_is_valid_channel()
45 if ((ieee->geo.bg[i].channel == channel) && in libipw_is_valid_channel()
46 !(ieee->geo.bg[i].flags & LIBIPW_CH_INVALID) && in libipw_is_valid_channel()
47 (!(ieee->mode & IEEE_G) || in libipw_is_valid_channel()
48 !(ieee->geo.bg[i].flags & LIBIPW_CH_B_ONLY))) in libipw_is_valid_channel()
51 if (ieee->freq_band & LIBIPW_52GHZ_BAND) in libipw_is_valid_channel()
52 for (i = 0; i < ieee->geo.a_channels; i++) in libipw_is_valid_channel()
[all …]
Dlibipw_module.c55 static int libipw_networks_allocate(struct libipw_device *ieee) in libipw_networks_allocate() argument
60 ieee->networks[i] = kzalloc(sizeof(struct libipw_network), in libipw_networks_allocate()
62 if (!ieee->networks[i]) { in libipw_networks_allocate()
65 kfree(ieee->networks[j]); in libipw_networks_allocate()
73 static inline void libipw_networks_free(struct libipw_device *ieee) in libipw_networks_free() argument
78 kfree(ieee->networks[i]); in libipw_networks_free()
81 void libipw_networks_age(struct libipw_device *ieee, in libipw_networks_age() argument
88 spin_lock_irqsave(&ieee->lock, flags); in libipw_networks_age()
89 list_for_each_entry(network, &ieee->network_list, list) { in libipw_networks_age()
92 spin_unlock_irqrestore(&ieee->lock, flags); in libipw_networks_age()
[all …]
/kernel/linux/linux-6.6/drivers/net/wireless/intel/ipw2x00/
Dlibipw_geo.c31 int libipw_is_valid_channel(struct libipw_device *ieee, u8 channel) in libipw_is_valid_channel() argument
37 if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0) in libipw_is_valid_channel()
40 if (ieee->freq_band & LIBIPW_24GHZ_BAND) in libipw_is_valid_channel()
41 for (i = 0; i < ieee->geo.bg_channels; i++) in libipw_is_valid_channel()
45 if ((ieee->geo.bg[i].channel == channel) && in libipw_is_valid_channel()
46 !(ieee->geo.bg[i].flags & LIBIPW_CH_INVALID) && in libipw_is_valid_channel()
47 (!(ieee->mode & IEEE_G) || in libipw_is_valid_channel()
48 !(ieee->geo.bg[i].flags & LIBIPW_CH_B_ONLY))) in libipw_is_valid_channel()
51 if (ieee->freq_band & LIBIPW_52GHZ_BAND) in libipw_is_valid_channel()
52 for (i = 0; i < ieee->geo.a_channels; i++) in libipw_is_valid_channel()
[all …]
Dlibipw_module.c55 static int libipw_networks_allocate(struct libipw_device *ieee) in libipw_networks_allocate() argument
60 ieee->networks[i] = kzalloc(sizeof(struct libipw_network), in libipw_networks_allocate()
62 if (!ieee->networks[i]) { in libipw_networks_allocate()
65 kfree(ieee->networks[j]); in libipw_networks_allocate()
73 static inline void libipw_networks_free(struct libipw_device *ieee) in libipw_networks_free() argument
78 kfree(ieee->networks[i]); in libipw_networks_free()
81 void libipw_networks_age(struct libipw_device *ieee, in libipw_networks_age() argument
88 spin_lock_irqsave(&ieee->lock, flags); in libipw_networks_age()
89 list_for_each_entry(network, &ieee->network_list, list) { in libipw_networks_age()
92 spin_unlock_irqrestore(&ieee->lock, flags); in libipw_networks_age()
[all …]

12345678910>>...54