Lines Matching refs:key_index

1127 				   int link_id, u8 key_index, bool pairwise,  in ath6kl_cfg80211_add_key()  argument
1148 if (key_index > WMI_MAX_KEY_INDEX) { in ath6kl_cfg80211_add_key()
1151 key_index); in ath6kl_cfg80211_add_key()
1155 key = &vif->keys[key_index]; in ath6kl_cfg80211_add_key()
1207 __func__, key_index, key->key_len, key_type, in ath6kl_cfg80211_add_key()
1214 ar->ap_mode_bkey.key_index = key_index; in ath6kl_cfg80211_add_key()
1238 vif->wep_key_list[key_index].key_len = key->key_len; in ath6kl_cfg80211_add_key()
1239 memcpy(vif->wep_key_list[key_index].key, key->key, in ath6kl_cfg80211_add_key()
1244 return ath6kl_wmi_addkey_cmd(ar->wmi, vif->fw_vif_idx, key_index, in ath6kl_cfg80211_add_key()
1252 int link_id, u8 key_index, bool pairwise, in ath6kl_cfg80211_del_key() argument
1258 ath6kl_dbg(ATH6KL_DBG_WLAN_CFG, "%s: index %d\n", __func__, key_index); in ath6kl_cfg80211_del_key()
1263 if (key_index > WMI_MAX_KEY_INDEX) { in ath6kl_cfg80211_del_key()
1266 key_index); in ath6kl_cfg80211_del_key()
1270 if (!vif->keys[key_index].key_len) { in ath6kl_cfg80211_del_key()
1272 "%s: index %d is empty\n", __func__, key_index); in ath6kl_cfg80211_del_key()
1276 vif->keys[key_index].key_len = 0; in ath6kl_cfg80211_del_key()
1278 return ath6kl_wmi_deletekey_cmd(ar->wmi, vif->fw_vif_idx, key_index); in ath6kl_cfg80211_del_key()
1282 int link_id, u8 key_index, bool pairwise, in ath6kl_cfg80211_get_key() argument
1291 ath6kl_dbg(ATH6KL_DBG_WLAN_CFG, "%s: index %d\n", __func__, key_index); in ath6kl_cfg80211_get_key()
1296 if (key_index > WMI_MAX_KEY_INDEX) { in ath6kl_cfg80211_get_key()
1299 key_index); in ath6kl_cfg80211_get_key()
1303 key = &vif->keys[key_index]; in ath6kl_cfg80211_get_key()
1318 u8 key_index, bool unicast, in ath6kl_cfg80211_set_default_key() argument
1327 ath6kl_dbg(ATH6KL_DBG_WLAN_CFG, "%s: index %d\n", __func__, key_index); in ath6kl_cfg80211_set_default_key()
1332 if (key_index > WMI_MAX_KEY_INDEX) { in ath6kl_cfg80211_set_default_key()
1335 __func__, key_index); in ath6kl_cfg80211_set_default_key()
1339 if (!vif->keys[key_index].key_len) { in ath6kl_cfg80211_set_default_key()
1341 __func__, key_index); in ath6kl_cfg80211_set_default_key()
1345 vif->def_txkey_index = key_index; in ath6kl_cfg80211_set_default_key()