Lines Matching refs:sta_id

118 				 struct ieee80211_key_conf *keyconf, u8 sta_id)  in il3945_set_ccmp_dynamic_key_info()  argument
127 if (sta_id == il->hw_params.bcast_id) in il3945_set_ccmp_dynamic_key_info()
135 il->stations[sta_id].keyinfo.cipher = keyconf->cipher; in il3945_set_ccmp_dynamic_key_info()
136 il->stations[sta_id].keyinfo.keylen = keyconf->keylen; in il3945_set_ccmp_dynamic_key_info()
137 memcpy(il->stations[sta_id].keyinfo.key, keyconf->key, keyconf->keylen); in il3945_set_ccmp_dynamic_key_info()
139 memcpy(il->stations[sta_id].sta.key.key, keyconf->key, keyconf->keylen); in il3945_set_ccmp_dynamic_key_info()
141 if ((il->stations[sta_id].sta.key. in il3945_set_ccmp_dynamic_key_info()
143 il->stations[sta_id].sta.key.key_offset = in il3945_set_ccmp_dynamic_key_info()
148 WARN(il->stations[sta_id].sta.key.key_offset == WEP_INVALID_OFFSET, in il3945_set_ccmp_dynamic_key_info()
151 il->stations[sta_id].sta.key.key_flags = key_flags; in il3945_set_ccmp_dynamic_key_info()
152 il->stations[sta_id].sta.sta.modify_mask = STA_MODIFY_KEY_MASK; in il3945_set_ccmp_dynamic_key_info()
153 il->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; in il3945_set_ccmp_dynamic_key_info()
157 ret = il_send_add_sta(il, &il->stations[sta_id].sta, CMD_ASYNC); in il3945_set_ccmp_dynamic_key_info()
166 struct ieee80211_key_conf *keyconf, u8 sta_id) in il3945_set_tkip_dynamic_key_info() argument
173 struct ieee80211_key_conf *keyconf, u8 sta_id) in il3945_set_wep_dynamic_key_info() argument
179 il3945_clear_sta_key_info(struct il_priv *il, u8 sta_id) in il3945_clear_sta_key_info() argument
185 memset(&il->stations[sta_id].keyinfo, 0, sizeof(struct il_hw_key)); in il3945_clear_sta_key_info()
186 memset(&il->stations[sta_id].sta.key, 0, sizeof(struct il4965_keyinfo)); in il3945_clear_sta_key_info()
187 il->stations[sta_id].sta.key.key_flags = STA_KEY_FLG_NO_ENC; in il3945_clear_sta_key_info()
188 il->stations[sta_id].sta.sta.modify_mask = STA_MODIFY_KEY_MASK; in il3945_clear_sta_key_info()
189 il->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; in il3945_clear_sta_key_info()
190 memcpy(&sta_cmd, &il->stations[sta_id].sta, in il3945_clear_sta_key_info()
200 u8 sta_id) in il3945_set_dynamic_key() argument
208 ret = il3945_set_ccmp_dynamic_key_info(il, keyconf, sta_id); in il3945_set_dynamic_key()
211 ret = il3945_set_tkip_dynamic_key_info(il, keyconf, sta_id); in il3945_set_dynamic_key()
215 ret = il3945_set_wep_dynamic_key_info(il, keyconf, sta_id); in il3945_set_dynamic_key()
223 keyconf->cipher, keyconf->keylen, keyconf->keyidx, sta_id, ret); in il3945_set_dynamic_key()
349 struct sk_buff *skb_frag, int sta_id) in il3945_build_tx_cmd_hwcrypto() argument
352 struct il_hw_key *keyinfo = &il->stations[sta_id].keyinfo; in il3945_build_tx_cmd_hwcrypto()
412 tx_cmd->sta_id = std_id; in il3945_build_tx_cmd_basic()
461 u8 sta_id; in il3945_tx_skb() local
495 sta_id = il_sta_id_or_broadcast(il, sta); in il3945_tx_skb()
496 if (sta_id == IL_INVALID_STATION) { in il3945_tx_skb()
501 D_RATE("station Id %d\n", sta_id); in il3945_tx_skb()
545 il3945_build_tx_cmd_hwcrypto(il, info, out_cmd, skb, sta_id); in il3945_tx_skb()
548 il3945_build_tx_cmd_basic(il, out_cmd, info, hdr, sta_id); in il3945_tx_skb()
550 il3945_hw_build_tx_cmd_rate(il, out_cmd, info, hdr, sta_id); in il3945_tx_skb()
2324 u8 sta_id; in il3945_alloc_bcast_station() local
2327 sta_id = il_prep_station(il, il_bcast_addr, false, NULL); in il3945_alloc_bcast_station()
2328 if (sta_id == IL_INVALID_STATION) { in il3945_alloc_bcast_station()
2335 il->stations[sta_id].used |= IL_STA_DRIVER_ACTIVE; in il3945_alloc_bcast_station()
2336 il->stations[sta_id].used |= IL_STA_BCAST; in il3945_alloc_bcast_station()
2584 scan->tx_cmd.sta_id = il->hw_params.bcast_id; in il3945_request_scan()
2913 u8 sta_id = IL_INVALID_STATION; in il3945_mac_set_key() local
2936 sta_id = il_sta_id_or_broadcast(il, sta); in il3945_mac_set_key()
2937 if (sta_id == IL_INVALID_STATION) { in il3945_mac_set_key()
2951 ret = il3945_set_dynamic_key(il, key, sta_id); in il3945_mac_set_key()
2958 ret = il3945_clear_sta_key_info(il, sta_id); in il3945_mac_set_key()
2979 u8 sta_id; in il3945_mac_sta_add() local
2983 sta_priv->common.sta_id = IL_INVALID_STATION; in il3945_mac_sta_add()
2985 ret = il_add_station_common(il, sta->addr, is_ap, sta, &sta_id); in il3945_mac_sta_add()
2993 sta_priv->common.sta_id = sta_id; in il3945_mac_sta_add()
2997 il3945_rs_rate_init(il, sta, sta_id); in il3945_mac_sta_add()