/linux-2.6.39/drivers/staging/rtl8187se/ieee80211/ |
D | ieee80211_softmac.c | 49 unsigned int ieee80211_MFIE_rate_len(struct ieee80211_device *ieee) in ieee80211_MFIE_rate_len() argument 53 if (ieee->modulation & IEEE80211_CCK_MODULATION) in ieee80211_MFIE_rate_len() 56 if (ieee->modulation & IEEE80211_OFDM_MODULATION) in ieee80211_MFIE_rate_len() 67 void ieee80211_MFIE_Brate(struct ieee80211_device *ieee, u8 **tag_p) in ieee80211_MFIE_Brate() argument 71 if (ieee->modulation & IEEE80211_CCK_MODULATION){ in ieee80211_MFIE_Brate() 84 void ieee80211_MFIE_Grate(struct ieee80211_device *ieee, u8 **tag_p) in ieee80211_MFIE_Grate() argument 88 if (ieee->modulation & IEEE80211_OFDM_MODULATION){ in ieee80211_MFIE_Grate() 108 void ieee80211_WMM_Info(struct ieee80211_device *ieee, u8 **tag_p) { in ieee80211_WMM_Info() argument 120 if(ieee->current_network.wmm_info & 0x80) { in ieee80211_WMM_Info() 131 void ieee80211_TURBO_Info(struct ieee80211_device *ieee, u8 **tag_p) { in ieee80211_TURBO_Info() argument [all …]
|
D | ieee80211_softmac_wx.c | 29 int ieee80211_wx_set_freq(struct ieee80211_device *ieee, struct iw_request_info *a, in ieee80211_wx_set_freq() argument 35 down(&ieee->wx_sem); in ieee80211_wx_set_freq() 37 if(ieee->iw_mode == IW_MODE_INFRA){ in ieee80211_wx_set_freq() 65 ieee->current_network.channel = fwrq->m; in ieee80211_wx_set_freq() 66 ieee->set_chan(ieee->dev, ieee->current_network.channel); in ieee80211_wx_set_freq() 68 if(ieee->iw_mode == IW_MODE_ADHOC || ieee->iw_mode == IW_MODE_MASTER) in ieee80211_wx_set_freq() 69 if(ieee->state == IEEE80211_LINKED){ in ieee80211_wx_set_freq() 71 ieee80211_stop_send_beacons(ieee); in ieee80211_wx_set_freq() 72 ieee80211_start_send_beacons(ieee); in ieee80211_wx_set_freq() 78 up(&ieee->wx_sem); in ieee80211_wx_set_freq() [all …]
|
D | ieee80211_module.c | 64 static inline int ieee80211_networks_allocate(struct ieee80211_device *ieee) in ieee80211_networks_allocate() argument 66 if (ieee->networks) in ieee80211_networks_allocate() 69 ieee->networks = kcalloc( in ieee80211_networks_allocate() 72 if (!ieee->networks) { in ieee80211_networks_allocate() 74 ieee->dev->name); in ieee80211_networks_allocate() 81 static inline void ieee80211_networks_free(struct ieee80211_device *ieee) in ieee80211_networks_free() argument 83 if (!ieee->networks) in ieee80211_networks_free() 85 kfree(ieee->networks); in ieee80211_networks_free() 86 ieee->networks = NULL; in ieee80211_networks_free() 89 static inline void ieee80211_networks_initialize(struct ieee80211_device *ieee) in ieee80211_networks_initialize() argument [all …]
|
D | ieee80211_tx.c | 182 struct ieee80211_device *ieee, in ieee80211_encrypt_fragment() argument 186 struct ieee80211_crypt_data* crypt = ieee->crypt[ieee->tx_keyidx]; in ieee80211_encrypt_fragment() 196 if (ieee->tkip_countermeasures && in ieee80211_encrypt_fragment() 202 ieee->dev->name, header->addr1); in ieee80211_encrypt_fragment() 223 ieee->dev->name, frag->len); in ieee80211_encrypt_fragment() 224 ieee->ieee_stats.tx_discards++; in ieee80211_encrypt_fragment() 310 struct ieee80211_device *ieee = netdev_priv(dev); in ieee80211_rtl_xmit() local 315 struct net_device_stats *stats = &ieee->stats; in ieee80211_rtl_xmit() 329 spin_lock_irqsave(&ieee->lock, flags); in ieee80211_rtl_xmit() 333 if ((!ieee->hard_start_xmit && !(ieee->softmac_features & IEEE_SOFTMAC_TX_QUEUE))|| in ieee80211_rtl_xmit() [all …]
|
D | ieee80211_wx.c | 43 static inline char *rtl818x_translate_scan(struct ieee80211_device *ieee, in rtl818x_translate_scan() argument 204 int ieee80211_wx_get_scan(struct ieee80211_device *ieee, in ieee80211_wx_get_scan() argument 217 down(&ieee->wx_sem); in ieee80211_wx_get_scan() 218 spin_lock_irqsave(&ieee->lock, flags); in ieee80211_wx_get_scan() 220 if(!ieee->bHwRadioOff) in ieee80211_wx_get_scan() 222 list_for_each_entry(network, &ieee->network_list, list) { in ieee80211_wx_get_scan() 230 if (ieee->scan_age == 0 || in ieee80211_wx_get_scan() 231 time_after(network->last_scanned + ieee->scan_age, jiffies)) in ieee80211_wx_get_scan() 233 ev = rtl818x_translate_scan(ieee, ev, stop, network, info); in ieee80211_wx_get_scan() 245 spin_unlock_irqrestore(&ieee->lock, flags); in ieee80211_wx_get_scan() [all …]
|
/linux-2.6.39/drivers/staging/rtl8192e/ieee80211/ |
D | ieee80211_softmac.c | 51 unsigned int ieee80211_MFIE_rate_len(struct ieee80211_device *ieee) in ieee80211_MFIE_rate_len() argument 55 if (ieee->modulation & IEEE80211_CCK_MODULATION) in ieee80211_MFIE_rate_len() 58 if (ieee->modulation & IEEE80211_OFDM_MODULATION) in ieee80211_MFIE_rate_len() 69 void ieee80211_MFIE_Brate(struct ieee80211_device *ieee, u8 **tag_p) in ieee80211_MFIE_Brate() argument 73 if (ieee->modulation & IEEE80211_CCK_MODULATION){ in ieee80211_MFIE_Brate() 86 void ieee80211_MFIE_Grate(struct ieee80211_device *ieee, u8 **tag_p) in ieee80211_MFIE_Grate() argument 90 if (ieee->modulation & IEEE80211_OFDM_MODULATION){ in ieee80211_MFIE_Grate() 110 void ieee80211_WMM_Info(struct ieee80211_device *ieee, u8 **tag_p) { in ieee80211_WMM_Info() argument 122 if(ieee->current_network.wmm_info & 0x80) { in ieee80211_WMM_Info() 134 void ieee80211_TURBO_Info(struct ieee80211_device *ieee, u8 **tag_p) { in ieee80211_TURBO_Info() argument [all …]
|
D | ieee80211_softmac_wx.c | 31 int ieee80211_wx_set_freq(struct ieee80211_device *ieee, struct iw_request_info *a, in ieee80211_wx_set_freq() argument 37 down(&ieee->wx_sem); in ieee80211_wx_set_freq() 39 if(ieee->iw_mode == IW_MODE_INFRA){ in ieee80211_wx_set_freq() 67 if (!(GET_DOT11D_INFO(ieee)->channel_map)[fwrq->m]) { in ieee80211_wx_set_freq() 72 ieee->current_network.channel = fwrq->m; in ieee80211_wx_set_freq() 73 ieee->set_chan(ieee, ieee->current_network.channel); in ieee80211_wx_set_freq() 75 if(ieee->iw_mode == IW_MODE_ADHOC || ieee->iw_mode == IW_MODE_MASTER) in ieee80211_wx_set_freq() 76 if(ieee->state == IEEE80211_LINKED){ in ieee80211_wx_set_freq() 78 ieee80211_stop_send_beacons(ieee); in ieee80211_wx_set_freq() 79 ieee80211_start_send_beacons(ieee); in ieee80211_wx_set_freq() [all …]
|
D | ieee80211_module.c | 62 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 …]
|
D | ieee80211_tx.c | 182 struct ieee80211_device *ieee, in ieee80211_encrypt_fragment() argument 186 struct ieee80211_crypt_data* crypt = ieee->crypt[ieee->tx_keyidx]; in ieee80211_encrypt_fragment() 197 if (ieee->tkip_countermeasures && in ieee80211_encrypt_fragment() 203 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() 304 void ieee80211_tx_query_agg_cap(struct ieee80211_device* ieee, struct sk_buff* skb, cb_desc* tcb_de… in ieee80211_tx_query_agg_cap() argument 306 PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo; in ieee80211_tx_query_agg_cap() 333 if (!ieee->GetNmodeSupportBySecCfg(ieee)) in ieee80211_tx_query_agg_cap() 340 if (!GetTs(ieee, (PTS_COMMON_INFO*)(&pTxTs), hdr->addr1, skb->priority, TX_DIR, true)) in ieee80211_tx_query_agg_cap() [all …]
|
D | rtl819x_BAProc.c | 14 void ActivateBAEntry(struct ieee80211_device* ieee, PBA_RECORD pBA, u16 Time) in ActivateBAEntry() argument 24 void DeActivateBAEntry( struct ieee80211_device* ieee, PBA_RECORD pBA) in DeActivateBAEntry() argument 33 u8 TxTsDeleteBA( struct ieee80211_device* ieee, PTX_TS_RECORD pTxTs) in TxTsDeleteBA() argument 42 DeActivateBAEntry(ieee, pPendingBa); in TxTsDeleteBA() 49 DeActivateBAEntry(ieee, pAdmittedBa); in TxTsDeleteBA() 59 u8 RxTsDeleteBA( struct ieee80211_device* ieee, PRX_TS_RECORD pRxTs) in RxTsDeleteBA() argument 66 DeActivateBAEntry(ieee, pBa); in RxTsDeleteBA() 89 static struct sk_buff* ieee80211_ADDBA(struct ieee80211_device* ieee, u8* Dst, PBA_RECORD pBA, u16 … in ieee80211_ADDBA() argument 95 u16 len = ieee->tx_headroom + 9; in ieee80211_ADDBA() 97 …L_BA, "========>%s(), frame(%d) sentd to:%pM, ieee->dev:%p\n", __FUNCTION__, type, Dst, ieee->dev); in ieee80211_ADDBA() [all …]
|
D | rtl819x_TSProc.c | 28 …struct ieee80211_device *ieee = container_of(pRxTs, struct ieee80211_device, RxTsRecord[pRxTs->num… in RxPktPendingTimeout() local 39 spin_lock_irqsave(&(ieee->reorder_spinlock), flags); in RxPktPendingTimeout() 63 list_add_tail(&pReorderEntry->List, &ieee->RxReorder_Unused_List); in RxPktPendingTimeout() 81 spin_unlock_irqrestore(&(ieee->reorder_spinlock), flags); in RxPktPendingTimeout() 84 ieee80211_indicate_packets(ieee, stats_IndicateArray, index); in RxPktPendingTimeout() 90 mod_timer(&pRxTs->RxPktPendingTimer, jiffies + MSECS(ieee->pHTInfo->RxReorderPendingTime)); in RxPktPendingTimeout() 92 spin_unlock_irqrestore(&(ieee->reorder_spinlock), flags); in RxPktPendingTimeout() 106 struct ieee80211_device *ieee = container_of(pTxTs, struct ieee80211_device, TxTsRecord[num]); in TsAddBaProcess() local 108 TsInitAddBA(ieee, pTxTs, BA_POLICY_IMMEDIATE, false); in TsAddBaProcess() 141 void TSInitialize(struct ieee80211_device *ieee) in TSInitialize() argument [all …]
|
D | rtl819x_HTProc.c | 55 void HTUpdateDefaultSetting(struct ieee80211_device* ieee) in HTUpdateDefaultSetting() argument 57 PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo; in HTUpdateDefaultSetting() 86 ieee->bTxDisableRateFallBack = 0; in HTUpdateDefaultSetting() 87 ieee->bTxUseDriverAssingedRate = 0; in HTUpdateDefaultSetting() 217 bool IsHTHalfNmode40Bandwidth(struct ieee80211_device* ieee) in IsHTHalfNmode40Bandwidth() argument 220 PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo; in IsHTHalfNmode40Bandwidth() 226 else if (!ieee->GetHalfNmodeSupportByAPsHandler(ieee)) // station in half n mode in IsHTHalfNmode40Bandwidth() 236 bool IsHTHalfNmodeSGI(struct ieee80211_device* ieee, bool is40MHz) in IsHTHalfNmodeSGI() argument 239 PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo; in IsHTHalfNmodeSGI() 243 else if (!ieee->GetHalfNmodeSupportByAPsHandler(ieee)) // station in half n mode in IsHTHalfNmodeSGI() [all …]
|
D | ieee80211_wx.c | 56 static inline char *rtl819x_translate_scan(struct ieee80211_device *ieee, in rtl819x_translate_scan() argument 164 max_mcs = HTGetHighestMCSRate(ieee, ht_cap->MCS, MCS_FILTER_ALL); in rtl819x_translate_scan() 200 if (ieee->wpa_enabled && network->wpa_ie_len){ in rtl819x_translate_scan() 214 if (ieee->wpa_enabled && network->rsn_ie_len){ in rtl819x_translate_scan() 263 int ieee80211_wx_get_scan(struct ieee80211_device *ieee, in ieee80211_wx_get_scan() argument 277 down(&ieee->wx_sem); in ieee80211_wx_get_scan() 278 spin_lock_irqsave(&ieee->lock, flags); in ieee80211_wx_get_scan() 280 list_for_each_entry(network, &ieee->network_list, list) { in ieee80211_wx_get_scan() 287 if (ieee->scan_age == 0 || in ieee80211_wx_get_scan() 288 time_after(network->last_scanned + ieee->scan_age, jiffies)) in ieee80211_wx_get_scan() [all …]
|
/linux-2.6.39/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_softmac.c | 49 unsigned int ieee80211_MFIE_rate_len(struct ieee80211_device *ieee) in ieee80211_MFIE_rate_len() argument 53 if (ieee->modulation & IEEE80211_CCK_MODULATION) in ieee80211_MFIE_rate_len() 56 if (ieee->modulation & IEEE80211_OFDM_MODULATION) in ieee80211_MFIE_rate_len() 67 void ieee80211_MFIE_Brate(struct ieee80211_device *ieee, u8 **tag_p) in ieee80211_MFIE_Brate() argument 71 if (ieee->modulation & IEEE80211_CCK_MODULATION){ in ieee80211_MFIE_Brate() 84 void ieee80211_MFIE_Grate(struct ieee80211_device *ieee, u8 **tag_p) in ieee80211_MFIE_Grate() argument 88 if (ieee->modulation & IEEE80211_OFDM_MODULATION){ in ieee80211_MFIE_Grate() 108 void ieee80211_WMM_Info(struct ieee80211_device *ieee, u8 **tag_p) { in ieee80211_WMM_Info() argument 120 if(ieee->current_network.wmm_info & 0x80) { in ieee80211_WMM_Info() 132 void ieee80211_TURBO_Info(struct ieee80211_device *ieee, u8 **tag_p) { in ieee80211_TURBO_Info() argument [all …]
|
D | ieee80211_softmac_wx.c | 29 int ieee80211_wx_set_freq(struct ieee80211_device *ieee, struct iw_request_info *a, in ieee80211_wx_set_freq() argument 35 down(&ieee->wx_sem); in ieee80211_wx_set_freq() 37 if(ieee->iw_mode == IW_MODE_INFRA){ in ieee80211_wx_set_freq() 64 if (!(GET_DOT11D_INFO(ieee)->channel_map)[fwrq->m]) { in ieee80211_wx_set_freq() 68 ieee->current_network.channel = fwrq->m; in ieee80211_wx_set_freq() 69 ieee->set_chan(ieee->dev, ieee->current_network.channel); in ieee80211_wx_set_freq() 71 if(ieee->iw_mode == IW_MODE_ADHOC || ieee->iw_mode == IW_MODE_MASTER) in ieee80211_wx_set_freq() 72 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 | 63 static inline int ieee80211_networks_allocate(struct ieee80211_device *ieee) in ieee80211_networks_allocate() argument 65 if (ieee->networks) in ieee80211_networks_allocate() 68 ieee->networks = kcalloc( in ieee80211_networks_allocate() 71 if (!ieee->networks) { in ieee80211_networks_allocate() 73 ieee->dev->name); in ieee80211_networks_allocate() 80 static inline void ieee80211_networks_free(struct ieee80211_device *ieee) in ieee80211_networks_free() argument 82 if (!ieee->networks) in ieee80211_networks_free() 84 kfree(ieee->networks); in ieee80211_networks_free() 85 ieee->networks = NULL; in ieee80211_networks_free() 88 static inline void ieee80211_networks_initialize(struct ieee80211_device *ieee) in ieee80211_networks_initialize() argument [all …]
|
D | ieee80211_tx.c | 182 struct ieee80211_device *ieee, in ieee80211_encrypt_fragment() argument 186 struct ieee80211_crypt_data* crypt = ieee->crypt[ieee->tx_keyidx]; in ieee80211_encrypt_fragment() 197 if (ieee->tkip_countermeasures && in ieee80211_encrypt_fragment() 203 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 void ieee80211_tx_query_agg_cap(struct ieee80211_device* ieee, struct sk_buff* skb, cb_desc* tcb_de… in ieee80211_tx_query_agg_cap() argument 308 PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo; in ieee80211_tx_query_agg_cap() 327 if(!ieee->GetNmodeSupportBySecCfg(ieee->dev)) in ieee80211_tx_query_agg_cap() 333 if (!GetTs(ieee, (PTS_COMMON_INFO*)(&pTxTs), hdr->addr1, skb->priority, TX_DIR, true)) in ieee80211_tx_query_agg_cap() [all …]
|
D | rtl819x_HTProc.c | 54 void HTUpdateDefaultSetting(struct ieee80211_device* ieee) in HTUpdateDefaultSetting() argument 56 PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo; in HTUpdateDefaultSetting() 88 ieee->bTxDisableRateFallBack = 0; in HTUpdateDefaultSetting() 89 ieee->bTxUseDriverAssingedRate = 0; in HTUpdateDefaultSetting() 222 bool IsHTHalfNmode40Bandwidth(struct ieee80211_device* ieee) in IsHTHalfNmode40Bandwidth() argument 225 PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo; in IsHTHalfNmode40Bandwidth() 231 else if(!ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev)) // station in half n mode in IsHTHalfNmode40Bandwidth() 241 bool IsHTHalfNmodeSGI(struct ieee80211_device* ieee, bool is40MHz) in IsHTHalfNmodeSGI() argument 244 PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo; in IsHTHalfNmodeSGI() 248 else if(!ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev)) // station in half n mode in IsHTHalfNmodeSGI() [all …]
|
D | rtl819x_BAProc.c | 16 void ActivateBAEntry(struct ieee80211_device* ieee, PBA_RECORD pBA, u16 Time) in ActivateBAEntry() argument 28 void DeActivateBAEntry( struct ieee80211_device* ieee, PBA_RECORD pBA) in DeActivateBAEntry() argument 40 u8 TxTsDeleteBA( struct ieee80211_device* ieee, PTX_TS_RECORD pTxTs) in TxTsDeleteBA() argument 49 DeActivateBAEntry(ieee, pPendingBa); in TxTsDeleteBA() 56 DeActivateBAEntry(ieee, pAdmittedBa); in TxTsDeleteBA() 70 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 114 u16 len = ieee->tx_headroom + 9; in ieee80211_ADDBA() 116 …L_BA, "========>%s(), frame(%d) sentd to:%pM, ieee->dev:%p\n", __FUNCTION__, type, Dst, ieee->dev); in ieee80211_ADDBA() [all …]
|
D | rtl819x_TSProc.c | 28 …struct ieee80211_device *ieee = container_of(pRxTs, struct ieee80211_device, RxTsRecord[pRxTs->num… in RxPktPendingTimeout() local 39 spin_lock_irqsave(&(ieee->reorder_spinlock), flags); in RxPktPendingTimeout() 63 list_add_tail(&pReorderEntry->List, &ieee->RxReorder_Unused_List); in RxPktPendingTimeout() 81 spin_unlock_irqrestore(&(ieee->reorder_spinlock), flags); in RxPktPendingTimeout() 84 ieee80211_indicate_packets(ieee, stats_IndicateArray, index); in RxPktPendingTimeout() 90 mod_timer(&pRxTs->RxPktPendingTimer, jiffies + MSECS(ieee->pHTInfo->RxReorderPendingTime)); in RxPktPendingTimeout() 92 spin_unlock_irqrestore(&(ieee->reorder_spinlock), flags); in RxPktPendingTimeout() 106 struct ieee80211_device *ieee = container_of(pTxTs, struct ieee80211_device, TxTsRecord[num]); in TsAddBaProcess() local 108 TsInitAddBA(ieee, pTxTs, BA_POLICY_IMMEDIATE, false); in TsAddBaProcess() 141 void TSInitialize(struct ieee80211_device *ieee) in TSInitialize() argument [all …]
|
D | ieee80211_wx.c | 54 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() 262 int ieee80211_wx_get_scan(struct ieee80211_device *ieee, in ieee80211_wx_get_scan() argument 276 down(&ieee->wx_sem); in ieee80211_wx_get_scan() 277 spin_lock_irqsave(&ieee->lock, flags); in ieee80211_wx_get_scan() 279 list_for_each_entry(network, &ieee->network_list, list) { in ieee80211_wx_get_scan() 286 if (ieee->scan_age == 0 || in ieee80211_wx_get_scan() 287 time_after(network->last_scanned + ieee->scan_age, jiffies)) in ieee80211_wx_get_scan() [all …]
|
/linux-2.6.39/drivers/net/wireless/ipw2x00/ |
D | libipw_geo.c | 45 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 …]
|
D | libipw_module.c | 69 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() 98 static inline void libipw_networks_free(struct libipw_device *ieee) in libipw_networks_free() argument 103 if (ieee->networks[i]->ibss_dfs) in libipw_networks_free() 104 kfree(ieee->networks[i]->ibss_dfs); in libipw_networks_free() 105 kfree(ieee->networks[i]); in libipw_networks_free() 109 void libipw_networks_age(struct libipw_device *ieee, in libipw_networks_age() argument 116 spin_lock_irqsave(&ieee->lock, flags); in libipw_networks_age() [all …]
|
D | libipw_wx.c | 58 static char *libipw_translate_scan(struct libipw_device *ieee, in libipw_translate_scan() argument 106 iwe.u.freq.m = libipw_channel_to_freq(ieee, network->channel); in libipw_translate_scan() 164 if (ieee->perfect_rssi == ieee->worst_rssi) in libipw_translate_scan() 169 (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 - network->stats.rssi) * in libipw_translate_scan() 172 (15 * (ieee->perfect_rssi - ieee->worst_rssi) + in libipw_translate_scan() 173 62 * (ieee->perfect_rssi - in libipw_translate_scan() 175 ((ieee->perfect_rssi - in libipw_translate_scan() 176 ieee->worst_rssi) * (ieee->perfect_rssi - in libipw_translate_scan() [all …]
|
D | libipw_tx.c | 152 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 …]
|