Home
last modified time | relevance | path

Searched refs:ieee (Results 1 – 25 of 54) sorted by relevance

123

/drivers/staging/rtl8192e/
Drtllib_softmac.c26 static void rtllib_sta_wakeup(struct rtllib_device *ieee, short nl);
38 static unsigned int rtllib_MFIE_rate_len(struct rtllib_device *ieee) in rtllib_MFIE_rate_len() argument
42 if (ieee->modulation & RTLLIB_CCK_MODULATION) in rtllib_MFIE_rate_len()
45 if (ieee->modulation & RTLLIB_OFDM_MODULATION) in rtllib_MFIE_rate_len()
56 static void rtllib_MFIE_Brate(struct rtllib_device *ieee, u8 **tag_p) in rtllib_MFIE_Brate() argument
60 if (ieee->modulation & RTLLIB_CCK_MODULATION) { in rtllib_MFIE_Brate()
75 static void rtllib_MFIE_Grate(struct rtllib_device *ieee, u8 **tag_p) in rtllib_MFIE_Grate() argument
79 if (ieee->modulation & RTLLIB_OFDM_MODULATION) { in rtllib_MFIE_Grate()
97 static void rtllib_WMM_Info(struct rtllib_device *ieee, u8 **tag_p) in rtllib_WMM_Info() argument
113 static void rtllib_TURBO_Info(struct rtllib_device *ieee, u8 **tag_p) in rtllib_TURBO_Info() argument
[all …]
Drtllib_softmac_wx.c32 int rtllib_wx_set_freq(struct rtllib_device *ieee, struct iw_request_info *a, in rtllib_wx_set_freq() argument
38 mutex_lock(&ieee->wx_mutex); in rtllib_wx_set_freq()
40 if (ieee->iw_mode == IW_MODE_INFRA) { in rtllib_wx_set_freq()
67 if (ieee->active_channel_map[fwrq->m] != 1) { in rtllib_wx_set_freq()
71 ieee->current_network.channel = fwrq->m; in rtllib_wx_set_freq()
72 ieee->set_chan(ieee->dev, ieee->current_network.channel); in rtllib_wx_set_freq()
74 if (ieee->iw_mode == IW_MODE_ADHOC || in rtllib_wx_set_freq()
75 ieee->iw_mode == IW_MODE_MASTER) in rtllib_wx_set_freq()
76 if (ieee->state == RTLLIB_LINKED) { in rtllib_wx_set_freq()
77 rtllib_stop_send_beacons(ieee); in rtllib_wx_set_freq()
[all …]
Drtllib_module.c53 static inline int rtllib_networks_allocate(struct rtllib_device *ieee) in rtllib_networks_allocate() argument
55 if (ieee->networks) in rtllib_networks_allocate()
58 ieee->networks = kcalloc(MAX_NETWORK_COUNT, in rtllib_networks_allocate()
60 if (!ieee->networks) in rtllib_networks_allocate()
66 static inline void rtllib_networks_free(struct rtllib_device *ieee) in rtllib_networks_free() argument
68 if (!ieee->networks) in rtllib_networks_free()
70 kfree(ieee->networks); in rtllib_networks_free()
71 ieee->networks = NULL; in rtllib_networks_free()
74 static inline void rtllib_networks_initialize(struct rtllib_device *ieee) in rtllib_networks_initialize() argument
78 INIT_LIST_HEAD(&ieee->network_free_list); in rtllib_networks_initialize()
[all …]
Drtl819x_HTProc.c78 void HTUpdateDefaultSetting(struct rtllib_device *ieee) in HTUpdateDefaultSetting() argument
80 struct rt_hi_throughput *pHTInfo = ieee->pHTInfo; in HTUpdateDefaultSetting()
104 ieee->bTxDisableRateFallBack = 0; in HTUpdateDefaultSetting()
105 ieee->bTxUseDriverAssingedRate = 0; in HTUpdateDefaultSetting()
107 ieee->bTxEnableFwCalcDur = 1; in HTUpdateDefaultSetting()
116 static u16 HTMcsToDataRate(struct rtllib_device *ieee, u8 nMcsRate) in HTMcsToDataRate() argument
118 struct rt_hi_throughput *pHTInfo = ieee->pHTInfo; in HTMcsToDataRate()
127 u16 TxCountToDataRate(struct rtllib_device *ieee, u8 nDataRate) in TxCountToDataRate() argument
152 bool IsHTHalfNmodeAPs(struct rtllib_device *ieee) in IsHTHalfNmodeAPs() argument
155 struct rtllib_network *net = &ieee->current_network; in IsHTHalfNmodeAPs()
[all …]
Drtl819x_BAProc.c21 static void ActivateBAEntry(struct rtllib_device *ieee, struct ba_record *pBA, in ActivateBAEntry() argument
29 static void DeActivateBAEntry(struct rtllib_device *ieee, struct ba_record *pBA) in DeActivateBAEntry() argument
35 static u8 TxTsDeleteBA(struct rtllib_device *ieee, struct tx_ts_record *pTxTs) in TxTsDeleteBA() argument
42 DeActivateBAEntry(ieee, pPendingBa); in TxTsDeleteBA()
47 DeActivateBAEntry(ieee, pAdmittedBa); in TxTsDeleteBA()
53 static u8 RxTsDeleteBA(struct rtllib_device *ieee, struct rx_ts_record *pRxTs) in RxTsDeleteBA() argument
59 DeActivateBAEntry(ieee, pBa); in RxTsDeleteBA()
74 static struct sk_buff *rtllib_ADDBA(struct rtllib_device *ieee, u8 *Dst, in rtllib_ADDBA() argument
81 u16 len = ieee->tx_headroom + 9; in rtllib_ADDBA()
83 netdev_dbg(ieee->dev, "%s(): frame(%d) sentd to: %pM, ieee->dev:%p\n", in rtllib_ADDBA()
[all …]
Drtllib_tx.c173 int rtllib_encrypt_fragment(struct rtllib_device *ieee, struct sk_buff *frag, in rtllib_encrypt_fragment() argument
179 crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in rtllib_encrypt_fragment()
182 netdev_info(ieee->dev, "=========>%s(), crypt is null\n", in rtllib_encrypt_fragment()
202 netdev_info(ieee->dev, "%s: Encryption failed: len=%d.\n", in rtllib_encrypt_fragment()
203 ieee->dev->name, frag->len); in rtllib_encrypt_fragment()
284 static void rtllib_tx_query_agg_cap(struct rtllib_device *ieee, in rtllib_tx_query_agg_cap() argument
288 struct rt_hi_throughput *pHTInfo = ieee->pHTInfo; in rtllib_tx_query_agg_cap()
292 if (rtllib_act_scanning(ieee, false)) in rtllib_tx_query_agg_cap()
302 if (tcb_desc->bdhcp || ieee->CntAfterLink < 2) in rtllib_tx_query_agg_cap()
308 if (!ieee->GetNmodeSupportBySecCfg(ieee->dev)) in rtllib_tx_query_agg_cap()
[all …]
Drtl819x_TSProc.c30 struct rtllib_device *ieee = container_of(pRxTs, struct rtllib_device, in RxPktPendingTimeout() local
39 spin_lock_irqsave(&(ieee->reorder_spinlock), flags); in RxPktPendingTimeout()
59 netdev_dbg(ieee->dev, in RxPktPendingTimeout()
62 ieee->stats_IndicateArray[index] = in RxPktPendingTimeout()
67 &ieee->RxReorder_Unused_List); in RxPktPendingTimeout()
79 netdev_warn(ieee->dev, in RxPktPendingTimeout()
82 spin_unlock_irqrestore(&(ieee->reorder_spinlock), in RxPktPendingTimeout()
86 rtllib_indicate_packets(ieee, ieee->stats_IndicateArray, index); in RxPktPendingTimeout()
93 msecs_to_jiffies(ieee->pHTInfo->RxReorderPendingTime) in RxPktPendingTimeout()
96 spin_unlock_irqrestore(&(ieee->reorder_spinlock), flags); in RxPktPendingTimeout()
[all …]
Drtllib_rx.c47 static void rtllib_rx_mgt(struct rtllib_device *ieee, struct sk_buff *skb,
50 static inline void rtllib_monitor_rx(struct rtllib_device *ieee, in rtllib_monitor_rx() argument
55 skb->dev = ieee->dev; in rtllib_monitor_rx()
66 rtllib_frag_cache_find(struct rtllib_device *ieee, unsigned int seq, in rtllib_frag_cache_find() argument
73 entry = &ieee->frag_cache[tid][i]; in rtllib_frag_cache_find()
76 netdev_dbg(ieee->dev, in rtllib_frag_cache_find()
95 rtllib_frag_cache_get(struct rtllib_device *ieee, in rtllib_frag_cache_get() argument
125 skb = dev_alloc_skb(ieee->dev->mtu + in rtllib_frag_cache_get()
136 entry = &ieee->frag_cache[tid][ieee->frag_next_idx[tid]]; in rtllib_frag_cache_get()
137 ieee->frag_next_idx[tid]++; in rtllib_frag_cache_get()
[all …]
Drtllib_wx.c47 static inline char *rtl819x_translate_scan(struct rtllib_device *ieee, in rtl819x_translate_scan() argument
167 max_mcs = HTGetHighestMCSRate(ieee, ht_cap->MCS, in rtl819x_translate_scan()
253 int rtllib_wx_get_scan(struct rtllib_device *ieee, in rtllib_wx_get_scan() argument
265 netdev_dbg(ieee->dev, "Getting scan\n"); in rtllib_wx_get_scan()
266 mutex_lock(&ieee->wx_mutex); in rtllib_wx_get_scan()
267 spin_lock_irqsave(&ieee->lock, flags); in rtllib_wx_get_scan()
269 list_for_each_entry(network, &ieee->network_list, list) { in rtllib_wx_get_scan()
275 if (ieee->scan_age == 0 || in rtllib_wx_get_scan()
276 time_after(network->last_scanned + ieee->scan_age, jiffies)) in rtllib_wx_get_scan()
277 ev = rtl819x_translate_scan(ieee, ev, stop, network, in rtllib_wx_get_scan()
[all …]
Ddot11d.c45 void dot11d_init(struct rtllib_device *ieee) in dot11d_init() argument
47 struct rt_dot11d_info *pDot11dInfo = GET_DOT11D_INFO(ieee); in dot11d_init()
55 RESET_CIE_WATCHDOG(ieee); in dot11d_init()
59 void Dot11d_Channelmap(u8 channel_plan, struct rtllib_device *ieee) in Dot11d_Channelmap() argument
63 ieee->bGlobalDomain = false; in Dot11d_Channelmap()
66 memset(GET_DOT11D_INFO(ieee)->channel_map, 0, in Dot11d_Channelmap()
67 sizeof(GET_DOT11D_INFO(ieee)->channel_map)); in Dot11d_Channelmap()
72 GET_DOT11D_INFO(ieee)->channel_map[ChannelPlan in Dot11d_Channelmap()
79 ieee->bGlobalDomain = true; in Dot11d_Channelmap()
81 GET_DOT11D_INFO(ieee)->channel_map[i] = 2; in Dot11d_Channelmap()
[all …]
/drivers/staging/rtl8192u/ieee80211/
Dieee80211_softmac.c43 static unsigned int ieee80211_MFIE_rate_len(struct ieee80211_device *ieee) in ieee80211_MFIE_rate_len() argument
47 if (ieee->modulation & IEEE80211_CCK_MODULATION) in ieee80211_MFIE_rate_len()
50 if (ieee->modulation & IEEE80211_OFDM_MODULATION) in ieee80211_MFIE_rate_len()
61 static void ieee80211_MFIE_Brate(struct ieee80211_device *ieee, u8 **tag_p) in ieee80211_MFIE_Brate() argument
65 if (ieee->modulation & IEEE80211_CCK_MODULATION) { in ieee80211_MFIE_Brate()
78 static void ieee80211_MFIE_Grate(struct ieee80211_device *ieee, u8 **tag_p) in ieee80211_MFIE_Grate() argument
82 if (ieee->modulation & IEEE80211_OFDM_MODULATION) { in ieee80211_MFIE_Grate()
102 static void ieee80211_WMM_Info(struct ieee80211_device *ieee, u8 **tag_p) in ieee80211_WMM_Info() argument
115 if(ieee->current_network.wmm_info & 0x80) { in ieee80211_WMM_Info()
127 static void ieee80211_TURBO_Info(struct ieee80211_device *ieee, u8 **tag_p) in ieee80211_TURBO_Info() argument
[all …]
Dieee80211_softmac_wx.c31 int ieee80211_wx_set_freq(struct ieee80211_device *ieee, struct iw_request_info *a, in ieee80211_wx_set_freq() argument
37 mutex_lock(&ieee->wx_mutex); in ieee80211_wx_set_freq()
39 if (ieee->iw_mode == IW_MODE_INFRA) { in ieee80211_wx_set_freq()
66 if (!(GET_DOT11D_INFO(ieee)->channel_map)[fwrq->m]) { in ieee80211_wx_set_freq()
70 ieee->current_network.channel = fwrq->m; in ieee80211_wx_set_freq()
71 ieee->set_chan(ieee->dev, ieee->current_network.channel); in ieee80211_wx_set_freq()
73 if (ieee->iw_mode == IW_MODE_ADHOC || ieee->iw_mode == IW_MODE_MASTER) in ieee80211_wx_set_freq()
74 if (ieee->state == IEEE80211_LINKED) { in ieee80211_wx_set_freq()
75 ieee80211_stop_send_beacons(ieee); in ieee80211_wx_set_freq()
76 ieee80211_start_send_beacons(ieee); in ieee80211_wx_set_freq()
[all …]
Dieee80211_module.c62 static inline int ieee80211_networks_allocate(struct ieee80211_device *ieee) in ieee80211_networks_allocate() argument
64 if (ieee->networks) in ieee80211_networks_allocate()
67 ieee->networks = kcalloc( in ieee80211_networks_allocate()
70 if (!ieee->networks) { in ieee80211_networks_allocate()
72 ieee->dev->name); in ieee80211_networks_allocate()
79 static inline void ieee80211_networks_free(struct ieee80211_device *ieee) in ieee80211_networks_free() argument
81 if (!ieee->networks) in ieee80211_networks_free()
83 kfree(ieee->networks); in ieee80211_networks_free()
84 ieee->networks = NULL; in ieee80211_networks_free()
87 static inline void ieee80211_networks_initialize(struct ieee80211_device *ieee) in ieee80211_networks_initialize() argument
[all …]
Dieee80211_tx.c180 struct ieee80211_device *ieee, in ieee80211_encrypt_fragment() argument
184 struct ieee80211_crypt_data *crypt = ieee->crypt[ieee->tx_keyidx]; in ieee80211_encrypt_fragment()
193 if (ieee->tkip_countermeasures && in ieee80211_encrypt_fragment()
201 ieee->dev->name, header->addr1); in ieee80211_encrypt_fragment()
224 ieee->dev->name, frag->len); in ieee80211_encrypt_fragment()
225 ieee->ieee_stats.tx_discards++; in ieee80211_encrypt_fragment()
306 static void ieee80211_tx_query_agg_cap(struct ieee80211_device *ieee, in ieee80211_tx_query_agg_cap() argument
309 PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo; in ieee80211_tx_query_agg_cap()
328 if(!ieee->GetNmodeSupportBySecCfg(ieee->dev)) in ieee80211_tx_query_agg_cap()
334 if (!GetTs(ieee, (PTS_COMMON_INFO *)(&pTxTs), hdr->addr1, skb->priority, TX_DIR, true)) in ieee80211_tx_query_agg_cap()
[all …]
Drtl819x_TSProc.c29 …struct ieee80211_device *ieee = container_of(pRxTs, struct ieee80211_device, RxTsRecord[pRxTs->num… in RxPktPendingTimeout() local
38 spin_lock_irqsave(&(ieee->reorder_spinlock), flags); in RxPktPendingTimeout()
55 ieee->stats_IndicateArray[index] = pReorderEntry->prxb; in RxPktPendingTimeout()
58 list_add_tail(&pReorderEntry->List, &ieee->RxReorder_Unused_List); in RxPktPendingTimeout()
73 spin_unlock_irqrestore(&(ieee->reorder_spinlock), flags); in RxPktPendingTimeout()
76 ieee80211_indicate_packets(ieee, ieee->stats_IndicateArray, index); in RxPktPendingTimeout()
82 jiffies + msecs_to_jiffies(ieee->pHTInfo->RxReorderPendingTime)); in RxPktPendingTimeout()
84 spin_unlock_irqrestore(&(ieee->reorder_spinlock), flags); in RxPktPendingTimeout()
97 struct ieee80211_device *ieee = container_of(pTxTs, struct ieee80211_device, TxTsRecord[num]); in TsAddBaProcess() local
99 TsInitAddBA(ieee, pTxTs, BA_POLICY_IMMEDIATE, false); in TsAddBaProcess()
[all …]
Drtl819x_BAProc.c19 static void ActivateBAEntry(struct ieee80211_device *ieee, PBA_RECORD pBA, u16 Time) in ActivateBAEntry() argument
31 static void DeActivateBAEntry(struct ieee80211_device *ieee, PBA_RECORD pBA) in DeActivateBAEntry() argument
43 static u8 TxTsDeleteBA(struct ieee80211_device *ieee, PTX_TS_RECORD pTxTs) in TxTsDeleteBA() argument
51 DeActivateBAEntry(ieee, pPendingBa); in TxTsDeleteBA()
57 DeActivateBAEntry(ieee, pAdmittedBa); in TxTsDeleteBA()
71 static u8 RxTsDeleteBA(struct ieee80211_device *ieee, PRX_TS_RECORD pRxTs) in RxTsDeleteBA() argument
77 DeActivateBAEntry(ieee, pBa); in RxTsDeleteBA()
108 static struct sk_buff *ieee80211_ADDBA(struct ieee80211_device *ieee, u8 *Dst, PBA_RECORD pBA, u16 … in ieee80211_ADDBA() argument
113 u16 len = ieee->tx_headroom + 9; in ieee80211_ADDBA()
115 …11_DL_BA, "========>%s(), frame(%d) sentd to:%pM, ieee->dev:%p\n", __func__, type, Dst, ieee->dev); in ieee80211_ADDBA()
[all …]
Drtl819x_HTProc.c55 void HTUpdateDefaultSetting(struct ieee80211_device *ieee) in HTUpdateDefaultSetting() argument
57 PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo; in HTUpdateDefaultSetting()
89 ieee->bTxDisableRateFallBack = 0; in HTUpdateDefaultSetting()
90 ieee->bTxUseDriverAssingedRate = 0; in HTUpdateDefaultSetting()
223 static bool IsHTHalfNmode40Bandwidth(struct ieee80211_device *ieee) in IsHTHalfNmode40Bandwidth() argument
226 PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo; in IsHTHalfNmode40Bandwidth()
232 else if(!ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev)) // station in half n mode in IsHTHalfNmode40Bandwidth()
242 static bool IsHTHalfNmodeSGI(struct ieee80211_device *ieee, bool is40MHz) in IsHTHalfNmodeSGI() argument
245 PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo; in IsHTHalfNmodeSGI()
249 else if(!ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev)) // station in half n mode in IsHTHalfNmodeSGI()
[all …]
Dieee80211_wx.c54 static inline char *rtl819x_translate_scan(struct ieee80211_device *ieee, in rtl819x_translate_scan() argument
162 max_mcs = HTGetHighestMCSRate(ieee, ht_cap->MCS, MCS_FILTER_ALL); in rtl819x_translate_scan()
198 if (ieee->wpa_enabled && network->wpa_ie_len){ in rtl819x_translate_scan()
213 if (ieee->wpa_enabled && network->rsn_ie_len){ in rtl819x_translate_scan()
242 int ieee80211_wx_get_scan(struct ieee80211_device *ieee, in ieee80211_wx_get_scan() argument
256 mutex_lock(&ieee->wx_mutex); in ieee80211_wx_get_scan()
257 spin_lock_irqsave(&ieee->lock, flags); in ieee80211_wx_get_scan()
259 list_for_each_entry(network, &ieee->network_list, list) { in ieee80211_wx_get_scan()
266 if (ieee->scan_age == 0 || in ieee80211_wx_get_scan()
267 time_after(network->last_scanned + ieee->scan_age, jiffies)) in ieee80211_wx_get_scan()
[all …]
Dieee80211_rx.c46 static inline void ieee80211_monitor_rx(struct ieee80211_device *ieee, in ieee80211_monitor_rx() argument
53 skb->dev = ieee->dev; in ieee80211_monitor_rx()
66 ieee80211_frag_cache_find(struct ieee80211_device *ieee, unsigned int seq, in ieee80211_frag_cache_find() argument
73 entry = &ieee->frag_cache[tid][i]; in ieee80211_frag_cache_find()
96 ieee80211_frag_cache_get(struct ieee80211_device *ieee, in ieee80211_frag_cache_get() argument
125 skb = dev_alloc_skb(ieee->dev->mtu + in ieee80211_frag_cache_get()
135 entry = &ieee->frag_cache[tid][ieee->frag_next_idx[tid]]; in ieee80211_frag_cache_get()
136 ieee->frag_next_idx[tid]++; in ieee80211_frag_cache_get()
137 if (ieee->frag_next_idx[tid] >= IEEE80211_FRAG_CACHE_LEN) in ieee80211_frag_cache_get()
138 ieee->frag_next_idx[tid] = 0; in ieee80211_frag_cache_get()
[all …]
Dieee80211_crypt.c39 void ieee80211_crypt_deinit_entries(struct ieee80211_device *ieee, in ieee80211_crypt_deinit_entries() argument
45 for (ptr = ieee->crypt_deinit_list.next, n = ptr->next; in ieee80211_crypt_deinit_entries()
46 ptr != &ieee->crypt_deinit_list; ptr = n, n = ptr->next) { in ieee80211_crypt_deinit_entries()
62 struct ieee80211_device *ieee = (struct ieee80211_device *)data; in ieee80211_crypt_deinit_handler() local
65 spin_lock_irqsave(&ieee->lock, flags); in ieee80211_crypt_deinit_handler()
66 ieee80211_crypt_deinit_entries(ieee, 0); in ieee80211_crypt_deinit_handler()
67 if (!list_empty(&ieee->crypt_deinit_list)) { in ieee80211_crypt_deinit_handler()
68 netdev_dbg(ieee->dev, "%s: entries remaining in delayed crypt deletion list\n", in ieee80211_crypt_deinit_handler()
69 ieee->dev->name); in ieee80211_crypt_deinit_handler()
70 ieee->crypt_deinit_timer.expires = jiffies + HZ; in ieee80211_crypt_deinit_handler()
[all …]
/drivers/net/wireless/intel/ipw2x00/
Dlibipw_geo.c45 int libipw_is_valid_channel(struct libipw_device *ieee, u8 channel) in libipw_is_valid_channel() argument
51 if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0) in libipw_is_valid_channel()
54 if (ieee->freq_band & LIBIPW_24GHZ_BAND) in libipw_is_valid_channel()
55 for (i = 0; i < ieee->geo.bg_channels; i++) in libipw_is_valid_channel()
59 if ((ieee->geo.bg[i].channel == channel) && in libipw_is_valid_channel()
60 !(ieee->geo.bg[i].flags & LIBIPW_CH_INVALID) && in libipw_is_valid_channel()
61 (!(ieee->mode & IEEE_G) || in libipw_is_valid_channel()
62 !(ieee->geo.bg[i].flags & LIBIPW_CH_B_ONLY))) in libipw_is_valid_channel()
65 if (ieee->freq_band & LIBIPW_52GHZ_BAND) in libipw_is_valid_channel()
66 for (i = 0; i < ieee->geo.a_channels; i++) in libipw_is_valid_channel()
[all …]
Dlibipw_module.c69 static int libipw_networks_allocate(struct libipw_device *ieee) in libipw_networks_allocate() argument
74 ieee->networks[i] = kzalloc(sizeof(struct libipw_network), in libipw_networks_allocate()
76 if (!ieee->networks[i]) { in libipw_networks_allocate()
79 kfree(ieee->networks[j]); in libipw_networks_allocate()
87 static inline void libipw_networks_free(struct libipw_device *ieee) in libipw_networks_free() argument
92 kfree(ieee->networks[i]); in libipw_networks_free()
95 void libipw_networks_age(struct libipw_device *ieee, in libipw_networks_age() argument
102 spin_lock_irqsave(&ieee->lock, flags); in libipw_networks_age()
103 list_for_each_entry(network, &ieee->network_list, list) { in libipw_networks_age()
106 spin_unlock_irqrestore(&ieee->lock, flags); in libipw_networks_age()
[all …]
Dlibipw_rx.c39 static void libipw_monitor_rx(struct libipw_device *ieee, in libipw_monitor_rx() argument
46 skb->dev = ieee->dev; in libipw_monitor_rx()
58 *ieee, in libipw_frag_cache_find()
68 entry = &ieee->frag_cache[i]; in libipw_frag_cache_find()
89 static struct sk_buff *libipw_frag_cache_get(struct libipw_device *ieee, in libipw_frag_cache_get() argument
103 skb = dev_alloc_skb(ieee->dev->mtu + in libipw_frag_cache_get()
111 entry = &ieee->frag_cache[ieee->frag_next_idx]; in libipw_frag_cache_get()
112 ieee->frag_next_idx++; in libipw_frag_cache_get()
113 if (ieee->frag_next_idx >= LIBIPW_FRAG_CACHE_LEN) in libipw_frag_cache_get()
114 ieee->frag_next_idx = 0; in libipw_frag_cache_get()
[all …]
Dlibipw_tx.c152 static int libipw_encrypt_fragment(struct libipw_device *ieee, in libipw_encrypt_fragment() argument
156 ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in libipw_encrypt_fragment()
172 ieee->dev->name, frag->len); in libipw_encrypt_fragment()
173 ieee->ieee_stats.tx_discards++; in libipw_encrypt_fragment()
257 struct libipw_device *ieee = netdev_priv(dev); in libipw_xmit() local
277 if (ieee->is_queue_full && (*ieee->is_queue_full) (dev, priority)) in libipw_xmit()
280 spin_lock_irqsave(&ieee->lock, flags); in libipw_xmit()
284 if (!ieee->hard_start_xmit) { in libipw_xmit()
285 printk(KERN_WARNING "%s: No xmit handler.\n", ieee->dev->name); in libipw_xmit()
291 ieee->dev->name, skb->len); in libipw_xmit()
[all …]
Dlibipw_wx.c59 static char *libipw_translate_scan(struct libipw_device *ieee, in libipw_translate_scan() argument
107 iwe.u.freq.m = libipw_channel_to_freq(ieee, network->channel); in libipw_translate_scan()
165 if (ieee->perfect_rssi == ieee->worst_rssi) in libipw_translate_scan()
170 (ieee->perfect_rssi - ieee->worst_rssi) * in libipw_translate_scan()
171 (ieee->perfect_rssi - ieee->worst_rssi) - in libipw_translate_scan()
172 (ieee->perfect_rssi - network->stats.rssi) * in libipw_translate_scan()
173 (15 * (ieee->perfect_rssi - ieee->worst_rssi) + in libipw_translate_scan()
174 62 * (ieee->perfect_rssi - in libipw_translate_scan()
176 ((ieee->perfect_rssi - in libipw_translate_scan()
177 ieee->worst_rssi) * (ieee->perfect_rssi - in libipw_translate_scan()
[all …]

123