Lines Matching refs:sta_id

134 				 struct ieee80211_key_conf *keyconf, u8 sta_id)  in il3945_set_ccmp_dynamic_key_info()  argument
143 if (sta_id == il->hw_params.bcast_id) in il3945_set_ccmp_dynamic_key_info()
151 il->stations[sta_id].keyinfo.cipher = keyconf->cipher; in il3945_set_ccmp_dynamic_key_info()
152 il->stations[sta_id].keyinfo.keylen = keyconf->keylen; in il3945_set_ccmp_dynamic_key_info()
153 memcpy(il->stations[sta_id].keyinfo.key, keyconf->key, keyconf->keylen); in il3945_set_ccmp_dynamic_key_info()
155 memcpy(il->stations[sta_id].sta.key.key, keyconf->key, keyconf->keylen); in il3945_set_ccmp_dynamic_key_info()
157 if ((il->stations[sta_id].sta.key. in il3945_set_ccmp_dynamic_key_info()
159 il->stations[sta_id].sta.key.key_offset = in il3945_set_ccmp_dynamic_key_info()
164 WARN(il->stations[sta_id].sta.key.key_offset == WEP_INVALID_OFFSET, in il3945_set_ccmp_dynamic_key_info()
167 il->stations[sta_id].sta.key.key_flags = key_flags; in il3945_set_ccmp_dynamic_key_info()
168 il->stations[sta_id].sta.sta.modify_mask = STA_MODIFY_KEY_MASK; in il3945_set_ccmp_dynamic_key_info()
169 il->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; in il3945_set_ccmp_dynamic_key_info()
173 ret = il_send_add_sta(il, &il->stations[sta_id].sta, CMD_ASYNC); in il3945_set_ccmp_dynamic_key_info()
182 struct ieee80211_key_conf *keyconf, u8 sta_id) in il3945_set_tkip_dynamic_key_info() argument
189 struct ieee80211_key_conf *keyconf, u8 sta_id) in il3945_set_wep_dynamic_key_info() argument
195 il3945_clear_sta_key_info(struct il_priv *il, u8 sta_id) in il3945_clear_sta_key_info() argument
201 memset(&il->stations[sta_id].keyinfo, 0, sizeof(struct il_hw_key)); in il3945_clear_sta_key_info()
202 memset(&il->stations[sta_id].sta.key, 0, sizeof(struct il4965_keyinfo)); in il3945_clear_sta_key_info()
203 il->stations[sta_id].sta.key.key_flags = STA_KEY_FLG_NO_ENC; in il3945_clear_sta_key_info()
204 il->stations[sta_id].sta.sta.modify_mask = STA_MODIFY_KEY_MASK; in il3945_clear_sta_key_info()
205 il->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; in il3945_clear_sta_key_info()
206 memcpy(&sta_cmd, &il->stations[sta_id].sta, in il3945_clear_sta_key_info()
216 u8 sta_id) in il3945_set_dynamic_key() argument
224 ret = il3945_set_ccmp_dynamic_key_info(il, keyconf, sta_id); in il3945_set_dynamic_key()
227 ret = il3945_set_tkip_dynamic_key_info(il, keyconf, sta_id); in il3945_set_dynamic_key()
231 ret = il3945_set_wep_dynamic_key_info(il, keyconf, sta_id); in il3945_set_dynamic_key()
239 keyconf->cipher, keyconf->keylen, keyconf->keyidx, sta_id, ret); in il3945_set_dynamic_key()
367 struct sk_buff *skb_frag, int sta_id) in il3945_build_tx_cmd_hwcrypto() argument
370 struct il_hw_key *keyinfo = &il->stations[sta_id].keyinfo; in il3945_build_tx_cmd_hwcrypto()
430 tx_cmd->sta_id = std_id; in il3945_build_tx_cmd_basic()
481 u8 sta_id; in il3945_tx_skb() local
518 sta_id = il_sta_id_or_broadcast(il, sta); in il3945_tx_skb()
519 if (sta_id == IL_INVALID_STATION) { in il3945_tx_skb()
524 D_RATE("station Id %d\n", sta_id); in il3945_tx_skb()
568 il3945_build_tx_cmd_hwcrypto(il, info, out_cmd, skb, sta_id); in il3945_tx_skb()
571 il3945_build_tx_cmd_basic(il, out_cmd, info, hdr, sta_id); in il3945_tx_skb()
573 il3945_hw_build_tx_cmd_rate(il, out_cmd, info, hdr, sta_id); in il3945_tx_skb()
2352 u8 sta_id; in il3945_alloc_bcast_station() local
2355 sta_id = il_prep_station(il, il_bcast_addr, false, NULL); in il3945_alloc_bcast_station()
2356 if (sta_id == IL_INVALID_STATION) { in il3945_alloc_bcast_station()
2363 il->stations[sta_id].used |= IL_STA_DRIVER_ACTIVE; in il3945_alloc_bcast_station()
2364 il->stations[sta_id].used |= IL_STA_BCAST; in il3945_alloc_bcast_station()
2612 scan->tx_cmd.sta_id = il->hw_params.bcast_id; in il3945_request_scan()
2944 u8 sta_id = IL_INVALID_STATION; in il3945_mac_set_key() local
2967 sta_id = il_sta_id_or_broadcast(il, sta); in il3945_mac_set_key()
2968 if (sta_id == IL_INVALID_STATION) { in il3945_mac_set_key()
2982 ret = il3945_set_dynamic_key(il, key, sta_id); in il3945_mac_set_key()
2989 ret = il3945_clear_sta_key_info(il, sta_id); in il3945_mac_set_key()
3010 u8 sta_id; in il3945_mac_sta_add() local
3014 sta_priv->common.sta_id = IL_INVALID_STATION; in il3945_mac_sta_add()
3016 ret = il_add_station_common(il, sta->addr, is_ap, sta, &sta_id); in il3945_mac_sta_add()
3024 sta_priv->common.sta_id = sta_id; in il3945_mac_sta_add()
3028 il3945_rs_rate_init(il, sta, sta_id); in il3945_mac_sta_add()