/drivers/net/wireless/hostap/ |
D | hostap_ap.c | 49 static struct sta_info* ap_get_sta(struct ap_data *ap, u8 *sta); 51 struct sta_info *sta); 88 static void ap_sta_hash_add(struct ap_data *ap, struct sta_info *sta) in ap_sta_hash_add() argument 90 sta->hnext = ap->sta_hash[STA_HASH(sta->addr)]; in ap_sta_hash_add() 91 ap->sta_hash[STA_HASH(sta->addr)] = sta; in ap_sta_hash_add() 94 static void ap_sta_hash_del(struct ap_data *ap, struct sta_info *sta) in ap_sta_hash_del() argument 98 s = ap->sta_hash[STA_HASH(sta->addr)]; in ap_sta_hash_del() 100 if (memcmp(s->addr, sta->addr, ETH_ALEN) == 0) { in ap_sta_hash_del() 101 ap->sta_hash[STA_HASH(sta->addr)] = s->hnext; in ap_sta_hash_del() 105 while (s->hnext != NULL && memcmp(s->hnext->addr, sta->addr, ETH_ALEN) in ap_sta_hash_del() [all …]
|
/drivers/staging/otus/80211core/ |
D | cmmsta.c | 63 if(wd->sta.blockingApList[i].addr[j]!= bssid[j]) in zfStaPutApIntoBlockingList() 79 if (wd->sta.blockingApList[i].weight == 0) in zfStaPutApIntoBlockingList() 95 wd->sta.blockingApList[i].addr[j] = bssid[j]; in zfStaPutApIntoBlockingList() 98 wd->sta.blockingApList[i].weight = weight; in zfStaPutApIntoBlockingList() 132 if (wd->sta.blockingApList[i].weight != 0) in zfStaIsApInBlockingList() 136 if (wd->sta.blockingApList[i].addr[j] != bssid[j]) in zfStaIsApInBlockingList() 178 if (wd->sta.blockingApList[i].weight != 0) in zfStaRefreshBlockList() 182 wd->sta.blockingApList[i].weight = 0; in zfStaRefreshBlockList() 186 wd->sta.blockingApList[i].weight--; in zfStaRefreshBlockList() 232 if ( wd->sta.bAutoReconnect ) in zfStaConnectFail() [all …]
|
D | cscanmgr.c | 23 wd->sta.scanMgr.scanReqs[0] = 0; in zfScanMgrInit() 24 wd->sta.scanMgr.scanReqs[1] = 0; in zfScanMgrInit() 26 wd->sta.scanMgr.currScanType = ZM_SCAN_MGR_SCAN_NONE; in zfScanMgrInit() 27 wd->sta.scanMgr.scanStartDelay = 3; in zfScanMgrInit() 57 if ( wd->sta.scanMgr.scanReqs[i] == 1 ) in zfScanMgrScanStart() 63 wd->sta.scanMgr.scanReqs[i] = 1; in zfScanMgrScanStart() 69 if ( wd->sta.scanMgr.currScanType == ZM_SCAN_MGR_SCAN_NONE ) in zfScanMgrScanStart() 73 else if ( wd->sta.scanMgr.currScanType == ZM_SCAN_MGR_SCAN_INTERNAL && in zfScanMgrScanStart() 81 wd->sta.bScheduleScan = FALSE; in zfScanMgrScanStart() 86 wd->sta.bChannelScan = FALSE; in zfScanMgrScanStart() [all …]
|
D | cpsmgr.c | 31 wd->sta.powerSaveMode = ZM_STA_PS_NONE; in zfPowerSavingMgrInit() 32 wd->sta.psMgr.state = ZM_PS_MSG_STATE_ACTIVE; in zfPowerSavingMgrInit() 33 wd->sta.psMgr.isSleepAllowed = 0; in zfPowerSavingMgrInit() 34 wd->sta.psMgr.maxSleepPeriods = 1; in zfPowerSavingMgrInit() 35 wd->sta.psMgr.ticks = 0; in zfPowerSavingMgrInit() 36 wd->sta.psMgr.sleepAllowedtick = 0; in zfPowerSavingMgrInit() 44 switch(wd->sta.psMgr.state) in zfPowerSavingMgrHandlePsNone() 63 wd->sta.psMgr.state = ZM_PS_MSG_STATE_ACTIVE; in zfPowerSavingMgrHandlePsNone() 73 switch(wd->sta.psMgr.state) in zfPowerSavingMgrHandlePs() 115 wd->sta.psMgr.maxSleepPeriods = 1; in zfPowerSavingMgrSetMode() [all …]
|
D | cinit.c | 107 if ( zfPowerSavingMgrIsSleeping(dev) || wd->sta.psMgr.tempWakeUp == 1 ) in zfTxGenWlanHeader() 113 header[6] = wd->sta.bssid[0]; in zfTxGenWlanHeader() 114 header[7] = wd->sta.bssid[1]; in zfTxGenWlanHeader() 115 header[8] = wd->sta.bssid[2]; in zfTxGenWlanHeader() 153 header[12] = wd->sta.bssid[0]; in zfTxGenWlanHeader() 154 header[13] = wd->sta.bssid[1]; in zfTxGenWlanHeader() 155 header[14] = wd->sta.bssid[2]; in zfTxGenWlanHeader() 646 wd->sta.iv16++; in zfTxGenWlanHeader() 648 if ( wd->sta.iv16 == 0 ) in zfTxGenWlanHeader() 650 wd->sta.iv32++; in zfTxGenWlanHeader() [all …]
|
D | ccmd.c | 140 wd->sta.mTxRate = 0x0; in zfiWlanOpen() 141 wd->sta.uTxRate = 0x3; in zfiWlanOpen() 142 wd->sta.mmTxRate = 0x0; in zfiWlanOpen() 143 wd->sta.adapterState = ZM_STA_STATE_DISCONNECT; in zfiWlanOpen() 144 wd->sta.capability[0] = 0x01; in zfiWlanOpen() 145 wd->sta.capability[1] = 0x00; in zfiWlanOpen() 147 wd->sta.preambleTypeHT = 0; in zfiWlanOpen() 148 wd->sta.htCtrlBandwidth = 0; in zfiWlanOpen() 149 wd->sta.htCtrlSTBC = 0; in zfiWlanOpen() 150 wd->sta.htCtrlSG = 0; in zfiWlanOpen() [all …]
|
D | coid.c | 88 pBssInfo = wd->sta.bssList.head; in zfiWlanQueryBssList() 90 pBssList->bssCount = wd->sta.bssList.bssCount; in zfiWlanQueryBssList() 92 for( i=0; i<wd->sta.bssList.bssCount; i++ ) in zfiWlanQueryBssList() 105 zm_assert(i==(wd->sta.bssList.bssCount-1)); in zfiWlanQueryBssList() 127 bssListV1->bssCount = wd->sta.bssList.bssCount; in zfiWlanQueryBssListV1() 129 pBssInfo = wd->sta.bssList.head; in zfiWlanQueryBssListV1() 130 ZM_MAC_WORD_TO_BYTE(wd->sta.bssid, bssid); in zfiWlanQueryBssListV1() 132 for( i=0; i<wd->sta.bssList.bssCount; i++ ) in zfiWlanQueryBssListV1() 147 …&&((pBssInfo->ssid[1] == wd->sta.ssidLen) || (pBssInfo->ssid[1] == 0) )&& (pBssInfo->frequency == … in zfiWlanQueryBssListV1() 150 pBssInfo->ssid[1] = wd->sta.ssidLen; in zfiWlanQueryBssListV1() [all …]
|
D | chb.c | 79 if ( (wd->sta.ibssSiteSurveyStatus == 2) && in zfiHeartBeat() 81 (wd->sta.ibssReceiveBeaconCount < 3) ) in zfiHeartBeat() 89 if(wd->sta.ReceivedPacketRateCounter <= 0) in zfiHeartBeat() 91 wd->sta.ReceivedPktRatePerSecond = wd->sta.TotalNumberOfReceivePackets; in zfiHeartBeat() 93 if (wd->sta.TotalNumberOfReceivePackets != 0) in zfiHeartBeat() 95 …wd->sta.avgSizeOfReceivePackets = wd->sta.TotalNumberOfReceiveBytes/wd->sta.TotalNumberOfReceivePa… in zfiHeartBeat() 99 wd->sta.avgSizeOfReceivePackets = 640; in zfiHeartBeat() 101 wd->sta.TotalNumberOfReceivePackets = 0; in zfiHeartBeat() 102 wd->sta.TotalNumberOfReceiveBytes = 0; in zfiHeartBeat() 103 wd->sta.ReceivedPacketRateCounter = 100; /*for another 1s*/ in zfiHeartBeat() [all …]
|
D | cfunc.c | 34 return wd->sta.mTxRate; in zfQueryOppositeRate() 38 return wd->sta.uTxRate; in zfQueryOppositeRate() 42 return wd->sta.mmTxRate; in zfQueryOppositeRate() 458 wd->sta.flagKeyChanging++; in zfCoreSetKey() 459 zm_debug_msg1(" zfCoreSetKey++++ ", wd->sta.flagKeyChanging); in zfCoreSetKey() 472 wd->sta.flagKeyChanging = 0; in zfCoreSetKeyComplete() 474 if(wd->sta.flagKeyChanging) in zfCoreSetKeyComplete() 477 wd->sta.flagKeyChanging--; in zfCoreSetKeyComplete() 481 zm_debug_msg1(" zfCoreSetKeyComplete--- ", wd->sta.flagKeyChanging); in zfCoreSetKeyComplete() 598 wd->sta.cmMicFailureCount = 0; in zfProcessEvent() [all …]
|
D | freqctrl.c | 53 if ((wd->sta.currentFrequency == frequency) in zfCoreSetFrequencyExV2() 54 && (wd->sta.currentBw40 == bw40) in zfCoreSetFrequencyExV2() 55 && (wd->sta.currentExtOffset == extOffset)) in zfCoreSetFrequencyExV2() 57 if ( forceSetFreq == 0 && wd->sta.flagFreqChanging == 0 ) in zfCoreSetFrequencyExV2() 73 if ( wd->sta.flagFreqChanging == 0 ) in zfCoreSetFrequencyExV2() 75 if ((wd->sta.currentBw40 != bw40) || (wd->sta.currentExtOffset != extOffset)) in zfCoreSetFrequencyExV2() 79 wd->sta.currentFrequency = frequency; in zfCoreSetFrequencyExV2() 80 wd->sta.currentBw40 = bw40; in zfCoreSetFrequencyExV2() 81 wd->sta.currentExtOffset = extOffset; in zfCoreSetFrequencyExV2() 84 wd->sta.flagFreqChanging++; in zfCoreSetFrequencyExV2() [all …]
|
D | cic.c | 29 wd->sta.bssid[0] = bssid[0] + (((u16_t) bssid[1]) << 8); in zfUpdateBssid() 30 wd->sta.bssid[1] = bssid[2] + (((u16_t) bssid[3]) << 8); in zfUpdateBssid() 31 wd->sta.bssid[2] = bssid[4] + (((u16_t) bssid[5]) << 8); in zfUpdateBssid() 301 if ( wd->sta.powerSaveMode > ZM_STA_PS_NONE ) in zfCoreEvent() 304 for(i=0; i<wd->sta.staPSDataCount; i++) in zfCoreEvent() 306 zfTxSendEth(dev, wd->sta.staPSDataQueue[i], 0, in zfCoreEvent() 310 wd->sta.staPSDataCount = 0; in zfCoreEvent() 316 wd->sta.ibssAtimTimer = ZM_BIT_15 | wd->sta.atimWindow; in zfCoreEvent() 344 …zfRateCtrlTxFailEvent(dev, &wd->sta.oppositeInfo[peerIdx].rcCell, 0,(u32_t)zfPhyCtrlToRate(retryRa… in zfCoreEvent() 374 …zfRateCtrlTxFailEvent(dev, &wd->sta.oppositeInfo[peerIdx].rcCell, 0,(u32_t)zfPhyCtrlToRate(retryRa… in zfCoreEvent() [all …]
|
D | ctxrx.c | 998 switch (wd->sta.encryMode) in zfTxSendEth() 1003 keyIdx = wd->sta.keyId; in zfTxSendEth() 1014 keyIdx = wd->sta.cencKeyId; in zfTxSendEth() 1047 if ( wd->sta.encryMode == ZM_TKIP ) in zfTxSendEth() 1068 if (wd->sta.wmeConnected == 0) in zfTxSendEth() 1237 if ( wd->sta.adapterState == ZM_STA_STATE_DISCONNECT ) in zfTxPortControl() 2078 (wd->sta.ibssPartnerStatus != ZM_IBSS_PARTNER_ALIVE) ) in zfiRecv80211() 2087 wd->sta.TotalNumberOfReceivePackets++; in zfiRecv80211() 2088 wd->sta.TotalNumberOfReceiveBytes += zfwBufGetSize(dev, buf); in zfiRecv80211() 2165 if( wd->sta.EnableHT ) in zfiRecv80211() [all …]
|
D | cmm.c | 696 zmw_buf_writeb(dev, buf, offset++, wd->sta.HTCap.Data.Length + 4); in zfMmAddHTCapability() 705 zmw_buf_writeb(dev, buf, offset++, wd->sta.HTCap.Data.ElementID); in zfMmAddHTCapability() 710 zmw_buf_writeb(dev, buf, offset++, wd->sta.HTCap.Byte[i+2]); in zfMmAddHTCapability() 742 zmw_buf_writeb(dev, buf, offset++, wd->sta.HTCap.Data.Length); in zfMmAddPreNHTCapability() 747 zmw_buf_writeb(dev, buf, offset++, wd->sta.HTCap.Byte[i+2]); in zfMmAddPreNHTCapability() 804 zmw_buf_writeb(dev, buf, offset++, wd->sta.ExtHTCap.Data.Length + 4); in zfMmAddExtendedHTCapability() 813 zmw_buf_writeb(dev, buf, offset++, wd->sta.ExtHTCap.Data.ElementID); in zfMmAddExtendedHTCapability() 818 zmw_buf_writeb(dev, buf, offset++, wd->sta.ExtHTCap.Byte[i+2]); in zfMmAddExtendedHTCapability() 915 zmw_tx_buf_writeb(dev, buf, offset++, wd->sta.capability[0]); in zfSendMmFrame() 916 zmw_tx_buf_writeb(dev, buf, offset++, wd->sta.capability[1]); in zfSendMmFrame() [all …]
|
D | ledmgr.c | 209 if (((wd->state == ZM_WLAN_STATE_DISABLED) && (wd->sta.bChannelScan)) in zfLedCtrlType2() 210 || ((wd->state != ZM_WLAN_STATE_DISABLED) && (wd->sta.bAutoReconnect))) in zfLedCtrlType2() 224 if( wd->sta.bChannelScan ) in zfLedCtrlType2() 372 if (((wd->state == ZM_WLAN_STATE_DISABLED) && (wd->sta.bChannelScan)) in zfLedCtrlType3() 373 || ((wd->state != ZM_WLAN_STATE_DISABLED) && (wd->sta.bAutoReconnect))) in zfLedCtrlType3() 387 if( wd->sta.bChannelScan ) in zfLedCtrlType3()
|
/drivers/net/wireless/iwlwifi/ |
D | iwl-sta.c | 57 (!compare_ether_addr(priv->stations[i].sta.sta.addr, in iwl_find_station() 94 priv->stations[sta_id].sta.sta.addr); in iwl_sta_ucode_activate() 105 u8 sta_id = addsta->sta.sta_id; in iwl_add_sta_callback() 134 struct iwl_addsta_cmd *sta, u8 flags) in iwl_send_add_sta() argument 138 u8 data[sizeof(*sta)]; in iwl_send_add_sta() 150 cmd.len = priv->cfg->ops->utils->build_addsta_hcmd(sta, data); in iwl_send_add_sta() 166 iwl_sta_ucode_activate(priv, sta->sta.sta_id); in iwl_send_add_sta() 193 sta_flags = priv->stations[index].sta.station_flags; in iwl_set_ht_add_station() 222 priv->stations[index].sta.station_flags = sta_flags; in iwl_set_ht_add_station() 245 if (!compare_ether_addr(priv->stations[i].sta.sta.addr, in iwl_add_station_flags() [all …]
|
D | iwl-agn-rs.c | 170 struct ieee80211_sta *sta, 356 struct ieee80211_sta *sta) in rs_tl_turn_on_agg_for_tid() argument 360 sta->addr, tid); in rs_tl_turn_on_agg_for_tid() 361 ieee80211_start_tx_ba_session(priv->hw, sta->addr, tid); in rs_tl_turn_on_agg_for_tid() 367 struct ieee80211_sta *sta) in rs_tl_turn_on_agg() argument 370 rs_tl_turn_on_agg_for_tid(priv, lq_data, tid, sta); in rs_tl_turn_on_agg() 373 rs_tl_turn_on_agg_for_tid(priv, lq_data, tid, sta); in rs_tl_turn_on_agg() 768 struct ieee80211_sta *sta, void *priv_sta, in rs_tx_status() argument 947 if (sta && sta->supp_rates[sband->band]) in rs_tx_status() 948 rs_rate_scale_perform(priv, hdr, sta, lq_sta); in rs_tx_status() [all …]
|
D | iwl-3945-rs.c | 339 struct ieee80211_sta *sta, void *priv_sta) in rs_rate_init() argument 353 if (sta->supp_rates[sband->band] & (1 << i)) { in rs_rate_init() 359 priv->sta_supp_rates = sta->supp_rates[sband->band]; in rs_rate_init() 382 static void *rs_alloc_sta(void *priv, struct ieee80211_sta *sta, gfp_t gfp) in rs_alloc_sta() argument 385 struct iwl3945_sta_priv *psta = (void *) sta->drv_priv; in rs_alloc_sta() 428 static void rs_free_sta(void *priv, struct ieee80211_sta *sta, in rs_free_sta() argument 431 struct iwl3945_sta_priv *psta = (void *) sta->drv_priv; in rs_free_sta() 450 struct ieee80211_sta *sta, void *priv_sta, in rs_tx_status() argument 623 static void rs_get_rate(void *priv_r, struct ieee80211_sta *sta, in rs_get_rate() argument 648 if (sta) in rs_get_rate() [all …]
|
/drivers/i2c/algos/ |
D | i2c-algo-pca.c | 53 int sta = pca_get_con(adap); in pca_start() local 55 sta |= I2C_PCA_CON_STA; in pca_start() 56 sta &= ~(I2C_PCA_CON_STO|I2C_PCA_CON_SI); in pca_start() 57 pca_set_con(adap, sta); in pca_start() 68 int sta = pca_get_con(adap); in pca_repeated_start() local 70 sta |= I2C_PCA_CON_STA; in pca_repeated_start() 71 sta &= ~(I2C_PCA_CON_STO|I2C_PCA_CON_SI); in pca_repeated_start() 72 pca_set_con(adap, sta); in pca_repeated_start() 87 int sta = pca_get_con(adap); in pca_stop() local 89 sta |= I2C_PCA_CON_STO; in pca_stop() [all …]
|
/drivers/staging/agnx/ |
D | debug.h | 245 struct agnx_sta *sta = &station; in agnx_print_sta() local 249 get_sta(priv, sta, sta_idx); in agnx_print_sta() 252 PRINTK_LE32(STA, sta->tx_session_keys[i]); in agnx_print_sta() 254 PRINTK_LE32(STA, sta->rx_session_keys[i]); in agnx_print_sta() 256 reg = le32_to_cpu(sta->reg); in agnx_print_sta() 270 PRINTK_LE32(STA, sta->tx_aes_blks_unicast); in agnx_print_sta() 271 PRINTK_LE32(STA, sta->rx_aes_blks_unicast); in agnx_print_sta() 273 PRINTK_LE16(STA, sta->aes_format_err_unicast_cnt); in agnx_print_sta() 274 PRINTK_LE16(STA, sta->aes_replay_unicast); in agnx_print_sta() 276 PRINTK_LE16(STA, sta->aes_decrypt_err_unicast); in agnx_print_sta() [all …]
|
D | sta.c | 126 void get_sta(struct agnx_priv *priv, struct agnx_sta *sta, unsigned int sta_idx) in get_sta() argument 130 memcpy_fromio(sta, data + AGNX_PDUPOOL + sizeof(*sta) * sta_idx, in get_sta() 131 sizeof(*sta)); in get_sta() 134 inline void set_sta(struct agnx_priv *priv, struct agnx_sta *sta, unsigned int sta_idx) in set_sta() argument 138 memcpy_toio(data + AGNX_PDUPOOL + sizeof(*sta) * sta_idx, in set_sta() 139 sta, sizeof(*sta)); in set_sta() 198 struct agnx_sta sta; in sta_init() local 202 memset(&sta, 0, sizeof(sta)); in sta_init() 209 sta.reg = cpu_to_le32(reg); in sta_init() 213 sta_traffic_init(sta.traffic + i); in sta_init() [all …]
|
/drivers/staging/rt2860/ |
D | Makefile | 27 sta/assoc.o \ 28 sta/aironet.o \ 29 sta/auth.o \ 30 sta/auth_rsp.o \ 31 sta/sync.o \ 32 sta/sanity.o \ 33 sta/rtmp_data.o \ 34 sta/connect.o \ 35 sta/wpa.o \
|
/drivers/staging/rt2870/ |
D | Makefile | 27 sta/assoc.o \ 28 sta/aironet.o \ 29 sta/auth.o \ 30 sta/auth_rsp.o \ 31 sta/sync.o \ 32 sta/sanity.o \ 33 sta/rtmp_data.o \ 34 sta/connect.o \ 35 sta/wpa.o \
|
/drivers/char/ |
D | ser_a2232fw.ax | 155 sta CommonCDb ; save current state ; 157 sta CommonCDc ; ; 164 sta cdbuf,x ; save status in buffer ; 169 sta CommonCDo ; save state for the next check ; 184 sta XonOff\1 ; save it ; 187 sta ACIA\1+A_CTRL ; store in control register ; 200 sta ACIA\1+A_CMD ; set/clear RTS ; 205 sta OutTail\1 ; save as tail ; 224 sta ictl\1,x ; save it in InCtl buffer ; 226 sta ibuf\1,x ; save it as well ; [all …]
|
/drivers/net/wireless/ |
D | mac80211_hwsim.c | 67 static inline void hwsim_check_sta_magic(struct ieee80211_sta *sta) in hwsim_check_sta_magic() argument 69 struct hwsim_sta_priv *sp = (void *)sta->drv_priv; in hwsim_check_sta_magic() 73 static inline void hwsim_set_sta_magic(struct ieee80211_sta *sta) in hwsim_set_sta_magic() argument 75 struct hwsim_sta_priv *sp = (void *)sta->drv_priv; in hwsim_set_sta_magic() 79 static inline void hwsim_clear_sta_magic(struct ieee80211_sta *sta) in hwsim_clear_sta_magic() argument 81 struct hwsim_sta_priv *sp = (void *)sta->drv_priv; in hwsim_clear_sta_magic() 311 if (txi->control.sta) in mac80211_hwsim_tx() 312 hwsim_check_sta_magic(txi->control.sta); in mac80211_hwsim_tx() 513 struct ieee80211_sta *sta) in mac80211_hwsim_sta_notify() argument 518 hwsim_set_sta_magic(sta); in mac80211_hwsim_sta_notify() [all …]
|
/drivers/net/ |
D | pasemi_mac.c | 1287 unsigned int sta, retries; in pasemi_mac_pause_txchan() local 1294 sta = read_dma_reg(PAS_DMA_TXCHAN_TCMDSTA(txch)); in pasemi_mac_pause_txchan() 1295 if (!(sta & PAS_DMA_TXCHAN_TCMDSTA_ACT)) in pasemi_mac_pause_txchan() 1300 if (sta & PAS_DMA_TXCHAN_TCMDSTA_ACT) in pasemi_mac_pause_txchan() 1302 "Failed to stop tx channel, tcmdsta %08x\n", sta); in pasemi_mac_pause_txchan() 1309 unsigned int sta, retries; in pasemi_mac_pause_rxchan() local 1315 sta = read_dma_reg(PAS_DMA_RXCHAN_CCMDSTA(rxch)); in pasemi_mac_pause_rxchan() 1316 if (!(sta & PAS_DMA_RXCHAN_CCMDSTA_ACT)) in pasemi_mac_pause_rxchan() 1321 if (sta & PAS_DMA_RXCHAN_CCMDSTA_ACT) in pasemi_mac_pause_rxchan() 1323 "Failed to stop rx channel, ccmdsta 08%x\n", sta); in pasemi_mac_pause_rxchan() [all …]
|