/drivers/staging/rtl8192e/ |
D | rtllib_softmac.c | 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 110 static void rtllib_TURBO_Info(struct rtllib_device *ieee, u8 **tag_p) in rtllib_TURBO_Info() argument [all …]
|
D | rtllib_softmac_wx.c | 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() 74 rtllib_stop_send_beacons(ieee); in rtllib_wx_set_freq() [all …]
|
D | rtllib_module.c | 40 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 …]
|
D | rtl819x_HTProc.c | 70 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 …]
|
D | rtl819x_BAProc.c | 13 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 …]
|
D | rtllib_tx.c | 157 int rtllib_encrypt_fragment(struct rtllib_device *ieee, struct sk_buff *frag, in rtllib_encrypt_fragment() argument 163 crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in rtllib_encrypt_fragment() 166 netdev_info(ieee->dev, "=========>%s(), crypt is null\n", in rtllib_encrypt_fragment() 186 netdev_info(ieee->dev, "%s: Encryption failed: len=%d.\n", in rtllib_encrypt_fragment() 187 ieee->dev->name, frag->len); in rtllib_encrypt_fragment() 268 static void rtllib_tx_query_agg_cap(struct rtllib_device *ieee, in rtllib_tx_query_agg_cap() argument 272 struct rt_hi_throughput *pHTInfo = ieee->pHTInfo; in rtllib_tx_query_agg_cap() 276 if (rtllib_act_scanning(ieee, false)) in rtllib_tx_query_agg_cap() 286 if (tcb_desc->bdhcp || ieee->CntAfterLink < 2) in rtllib_tx_query_agg_cap() 292 if (!ieee->GetNmodeSupportBySecCfg(ieee->dev)) in rtllib_tx_query_agg_cap() [all …]
|
D | rtl819x_TSProc.c | 23 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 …]
|
D | rtllib_rx.c | 39 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 …]
|
D | rtllib_wx.c | 34 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() 237 int rtllib_wx_get_scan(struct rtllib_device *ieee, in rtllib_wx_get_scan() argument 249 netdev_dbg(ieee->dev, "Getting scan\n"); in rtllib_wx_get_scan() 250 mutex_lock(&ieee->wx_mutex); in rtllib_wx_get_scan() 251 spin_lock_irqsave(&ieee->lock, flags); in rtllib_wx_get_scan() 253 list_for_each_entry(network, &ieee->network_list, list) { in rtllib_wx_get_scan() 259 if (ieee->scan_age == 0 || in rtllib_wx_get_scan() 260 time_after(network->last_scanned + ieee->scan_age, jiffies)) in rtllib_wx_get_scan() 261 ev = rtl819x_translate_scan(ieee, ev, stop, network, in rtllib_wx_get_scan() [all …]
|
D | dot11d.c | 38 void dot11d_init(struct rtllib_device *ieee) in dot11d_init() argument 40 struct rt_dot11d_info *dot11d_info = GET_DOT11D_INFO(ieee); in dot11d_init() 48 RESET_CIE_WATCHDOG(ieee); in dot11d_init() 52 void dot11d_channel_map(u8 channel_plan, struct rtllib_device *ieee) in dot11d_channel_map() argument 56 ieee->global_domain = false; in dot11d_channel_map() 59 memset(GET_DOT11D_INFO(ieee)->channel_map, 0, in dot11d_channel_map() 60 sizeof(GET_DOT11D_INFO(ieee)->channel_map)); in dot11d_channel_map() 65 GET_DOT11D_INFO(ieee)->channel_map[channel_array in dot11d_channel_map() 72 ieee->global_domain = true; in dot11d_channel_map() 74 GET_DOT11D_INFO(ieee)->channel_map[i] = 2; in dot11d_channel_map() [all …]
|
/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_softmac.c | 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() 119 static void ieee80211_TURBO_Info(struct ieee80211_device *ieee, u8 **tag_p) in ieee80211_TURBO_Info() argument [all …]
|
D | ieee80211_softmac_wx.c | 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() 75 ieee80211_start_send_beacons(ieee); in ieee80211_wx_set_freq() [all …]
|
D | ieee80211_module.c | 46 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 …]
|
D | ieee80211_tx.c | 165 struct ieee80211_device *ieee, in ieee80211_encrypt_fragment() argument 169 struct ieee80211_crypt_data *crypt = ieee->crypt[ieee->tx_keyidx]; in ieee80211_encrypt_fragment() 177 if (ieee->tkip_countermeasures && in ieee80211_encrypt_fragment() 183 netdev_dbg(ieee->dev, "TKIP countermeasures: dropped " in ieee80211_encrypt_fragment() 206 netdev_info(ieee->dev, "Encryption failed: len=%d.\n", in ieee80211_encrypt_fragment() 208 ieee->ieee_stats.tx_discards++; in ieee80211_encrypt_fragment() 289 static void ieee80211_tx_query_agg_cap(struct ieee80211_device *ieee, in ieee80211_tx_query_agg_cap() argument 292 PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo; in ieee80211_tx_query_agg_cap() 304 if (!ieee->GetNmodeSupportBySecCfg(ieee->dev)) in ieee80211_tx_query_agg_cap() 308 if (!GetTs(ieee, (struct ts_common_info **)(&pTxTs), hdr->addr1, skb->priority, TX_DIR, true)) { in ieee80211_tx_query_agg_cap() [all …]
|
D | rtl819x_TSProc.c | 29 …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 …]
|
D | rtl819x_BAProc.c | 19 static void ActivateBAEntry(struct ieee80211_device *ieee, struct ba_record *pBA, u16 Time) in ActivateBAEntry() argument 31 static void DeActivateBAEntry(struct ieee80211_device *ieee, struct ba_record *pBA) in DeActivateBAEntry() argument 43 static u8 TxTsDeleteBA(struct ieee80211_device *ieee, struct tx_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, struct rx_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, struct ba_record *pB… 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 …]
|
D | rtl819x_HTProc.c | 59 void HTUpdateDefaultSetting(struct ieee80211_device *ieee) in HTUpdateDefaultSetting() argument 61 PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo; in HTUpdateDefaultSetting() 93 ieee->bTxDisableRateFallBack = 0; in HTUpdateDefaultSetting() 94 ieee->bTxUseDriverAssingedRate = 0; in HTUpdateDefaultSetting() 215 static u16 HTMcsToDataRate(struct ieee80211_device *ieee, u8 nMcsRate) in HTMcsToDataRate() argument 217 PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo; in HTMcsToDataRate() 234 u16 TxCountToDataRate(struct ieee80211_device *ieee, u8 nDataRate) in TxCountToDataRate() argument 269 bool IsHTHalfNmodeAPs(struct ieee80211_device *ieee) in IsHTHalfNmodeAPs() argument 272 struct ieee80211_network *net = &ieee->current_network; in IsHTHalfNmodeAPs() 302 static void HTIOTPeerDetermine(struct ieee80211_device *ieee) in HTIOTPeerDetermine() argument [all …]
|
D | ieee80211_wx.c | 39 static inline char *rtl819x_translate_scan(struct ieee80211_device *ieee, in rtl819x_translate_scan() argument 146 max_mcs = HTGetHighestMCSRate(ieee, ht_cap->MCS, MCS_FILTER_ALL); in rtl819x_translate_scan() 182 if (ieee->wpa_enabled && network->wpa_ie_len) { in rtl819x_translate_scan() 196 if (ieee->wpa_enabled && network->rsn_ie_len) { in rtl819x_translate_scan() 224 int ieee80211_wx_get_scan(struct ieee80211_device *ieee, in ieee80211_wx_get_scan() argument 238 mutex_lock(&ieee->wx_mutex); in ieee80211_wx_get_scan() 239 spin_lock_irqsave(&ieee->lock, flags); in ieee80211_wx_get_scan() 241 list_for_each_entry(network, &ieee->network_list, list) { in ieee80211_wx_get_scan() 247 if (ieee->scan_age == 0 || in ieee80211_wx_get_scan() 248 time_after(network->last_scanned + ieee->scan_age, jiffies)) in ieee80211_wx_get_scan() [all …]
|
D | ieee80211_rx.c | 42 static inline void ieee80211_monitor_rx(struct ieee80211_device *ieee, in ieee80211_monitor_rx() argument 49 skb->dev = ieee->dev; in ieee80211_monitor_rx() 62 ieee80211_frag_cache_find(struct ieee80211_device *ieee, unsigned int seq, in ieee80211_frag_cache_find() argument 69 entry = &ieee->frag_cache[tid][i]; in ieee80211_frag_cache_find() 92 ieee80211_frag_cache_get(struct ieee80211_device *ieee, in ieee80211_frag_cache_get() argument 121 skb = dev_alloc_skb(ieee->dev->mtu + in ieee80211_frag_cache_get() 131 entry = &ieee->frag_cache[tid][ieee->frag_next_idx[tid]]; in ieee80211_frag_cache_get() 132 ieee->frag_next_idx[tid]++; in ieee80211_frag_cache_get() 133 if (ieee->frag_next_idx[tid] >= IEEE80211_FRAG_CACHE_LEN) in ieee80211_frag_cache_get() 134 ieee->frag_next_idx[tid] = 0; in ieee80211_frag_cache_get() [all …]
|
D | ieee80211_crypt.c | 34 void ieee80211_crypt_deinit_entries(struct ieee80211_device *ieee, in ieee80211_crypt_deinit_entries() argument 40 for (ptr = ieee->crypt_deinit_list.next, n = ptr->next; in ieee80211_crypt_deinit_entries() 41 ptr != &ieee->crypt_deinit_list; ptr = n, n = ptr->next) { in ieee80211_crypt_deinit_entries() 57 struct ieee80211_device *ieee = from_timer(ieee, t, crypt_deinit_timer); in ieee80211_crypt_deinit_handler() local 60 spin_lock_irqsave(&ieee->lock, flags); in ieee80211_crypt_deinit_handler() 61 ieee80211_crypt_deinit_entries(ieee, 0); in ieee80211_crypt_deinit_handler() 62 if (!list_empty(&ieee->crypt_deinit_list)) { in ieee80211_crypt_deinit_handler() 63 netdev_dbg(ieee->dev, "%s: entries remaining in delayed crypt deletion list\n", in ieee80211_crypt_deinit_handler() 64 ieee->dev->name); in ieee80211_crypt_deinit_handler() 65 ieee->crypt_deinit_timer.expires = jiffies + HZ; in ieee80211_crypt_deinit_handler() [all …]
|
/drivers/net/wireless/intel/ipw2x00/ |
D | libipw_geo.c | 31 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 …]
|
D | libipw_module.c | 55 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 …]
|
D | libipw_rx.c | 35 static void libipw_monitor_rx(struct libipw_device *ieee, in libipw_monitor_rx() argument 42 skb->dev = ieee->dev; in libipw_monitor_rx() 54 *ieee, in libipw_frag_cache_find() 64 entry = &ieee->frag_cache[i]; in libipw_frag_cache_find() 85 static struct sk_buff *libipw_frag_cache_get(struct libipw_device *ieee, in libipw_frag_cache_get() argument 99 skb = dev_alloc_skb(ieee->dev->mtu + in libipw_frag_cache_get() 107 entry = &ieee->frag_cache[ieee->frag_next_idx]; in libipw_frag_cache_get() 108 ieee->frag_next_idx++; in libipw_frag_cache_get() 109 if (ieee->frag_next_idx >= LIBIPW_FRAG_CACHE_LEN) in libipw_frag_cache_get() 110 ieee->frag_next_idx = 0; in libipw_frag_cache_get() [all …]
|
D | libipw_tx.c | 138 static int libipw_encrypt_fragment(struct libipw_device *ieee, in libipw_encrypt_fragment() argument 142 ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in libipw_encrypt_fragment() 158 ieee->dev->name, frag->len); in libipw_encrypt_fragment() 159 ieee->ieee_stats.tx_discards++; in libipw_encrypt_fragment() 243 struct libipw_device *ieee = netdev_priv(dev); in libipw_xmit() local 263 if (ieee->is_queue_full && (*ieee->is_queue_full) (dev, priority)) in libipw_xmit() 266 spin_lock_irqsave(&ieee->lock, flags); in libipw_xmit() 270 if (!ieee->hard_start_xmit) { in libipw_xmit() 271 printk(KERN_WARNING "%s: No xmit handler.\n", ieee->dev->name); in libipw_xmit() 277 ieee->dev->name, skb->len); in libipw_xmit() [all …]
|
D | libipw_wx.c | 45 static char *libipw_translate_scan(struct libipw_device *ieee, in libipw_translate_scan() argument 93 iwe.u.freq.m = libipw_channel_to_freq(ieee, network->channel); in libipw_translate_scan() 151 if (ieee->perfect_rssi == ieee->worst_rssi) in libipw_translate_scan() 156 (ieee->perfect_rssi - ieee->worst_rssi) * in libipw_translate_scan() 157 (ieee->perfect_rssi - ieee->worst_rssi) - in libipw_translate_scan() 158 (ieee->perfect_rssi - network->stats.rssi) * in libipw_translate_scan() 159 (15 * (ieee->perfect_rssi - ieee->worst_rssi) + in libipw_translate_scan() 160 62 * (ieee->perfect_rssi - in libipw_translate_scan() 162 ((ieee->perfect_rssi - in libipw_translate_scan() 163 ieee->worst_rssi) * (ieee->perfect_rssi - in libipw_translate_scan() [all …]
|