Home
last modified time | relevance | path

Searched refs:keyid (Results 1 – 20 of 20) sorted by relevance

/drivers/staging/rtl8188eu/core/
Drtw_ioctl_set.c495 int keyid, res; in rtw_set_802_11_add_wep() local
500 keyid = wep->KeyIndex & 0x3fffffff; in rtw_set_802_11_add_wep()
502 if (keyid >= 4) { in rtw_set_802_11_add_wep()
524 wep->KeyLength, wep->KeyIndex, keyid)); in rtw_set_802_11_add_wep()
526 memcpy(&(psecuritypriv->dot11DefKey[keyid].skey[0]), &(wep->KeyMaterial), wep->KeyLength); in rtw_set_802_11_add_wep()
528 psecuritypriv->dot11DefKeylen[keyid] = wep->KeyLength; in rtw_set_802_11_add_wep()
530 psecuritypriv->dot11PrivacyKeyIndex = keyid; in rtw_set_802_11_add_wep()
534 psecuritypriv->dot11DefKey[keyid].skey[0], in rtw_set_802_11_add_wep()
535 psecuritypriv->dot11DefKey[keyid].skey[1], in rtw_set_802_11_add_wep()
536 psecuritypriv->dot11DefKey[keyid].skey[2], in rtw_set_802_11_add_wep()
[all …]
Drtw_pwrctrl.c171 int keyid; in ips_leave() local
191 for (keyid = 0; keyid < 4; keyid++) { in ips_leave()
192 if (pmlmepriv->key_mask & BIT(keyid)) { in ips_leave()
193 if (keyid == psecuritypriv->dot11PrivacyKeyIndex) in ips_leave()
194 result = rtw_set_key(padapter, psecuritypriv, keyid, 1); in ips_leave()
196 result = rtw_set_key(padapter, psecuritypriv, keyid, 0); in ips_leave()
Drtw_mlme.c1594 int rtw_set_key(struct adapter *adapter, struct security_priv *psecuritypriv, int keyid, u8 set_tx) in rtw_set_key() argument
1626 psetkeyparm->keyid = (u8)keyid;/* 0~3 */ in rtw_set_key()
1628 pmlmepriv->key_mask |= BIT(psetkeyparm->keyid); in rtw_set_key()
1630 psetkeyparm->algorithm, psetkeyparm->keyid, pmlmepriv->key_mask); in rtw_set_key()
1633 psetkeyparm->algorithm, keyid)); in rtw_set_key()
1638 memcpy(&(psetkeyparm->key[0]), &(psecuritypriv->dot11DefKey[keyid].skey[0]), keylen); in rtw_set_key()
1642 memcpy(&(psetkeyparm->key[0]), &(psecuritypriv->dot11DefKey[keyid].skey[0]), keylen); in rtw_set_key()
1646 memcpy(&psetkeyparm->key, &psecuritypriv->dot118021XGrpKey[keyid], keylen); in rtw_set_key()
1651 memcpy(&psetkeyparm->key, &psecuritypriv->dot118021XGrpKey[keyid], keylen); in rtw_set_key()
Drtw_mlme_ext.c5293 pmlmeinfo->key_index = pparm->keyid; in setkey_hdl()
5296 ctrl = BIT(15) | ((pparm->algorithm) << 2) | pparm->keyid; in setkey_hdl()
5299 "keyid:%d\n", pparm->algorithm, pparm->keyid); in setkey_hdl()
5300 write_cam(padapter, pparm->keyid, ctrl, null_sta, pparm->key); in setkey_hdl()
/drivers/staging/rtl8712/
Drtl871x_ioctl_set.c345 sint keyid; in r8712_set_802_11_add_wep() local
348 keyid = wep->KeyIndex & 0x3fffffff; in r8712_set_802_11_add_wep()
349 if (keyid >= WEP_KEYS) in r8712_set_802_11_add_wep()
362 memcpy(psecuritypriv->DefKey[keyid].skey, &wep->KeyMaterial, in r8712_set_802_11_add_wep()
364 psecuritypriv->DefKeylen[keyid] = wep->KeyLength; in r8712_set_802_11_add_wep()
365 psecuritypriv->PrivacyKeyIndex = keyid; in r8712_set_802_11_add_wep()
366 if (r8712_set_key(padapter, psecuritypriv, keyid) == _FAIL) in r8712_set_802_11_add_wep()
Drtl871x_mlme.c1228 sint keyid) in r8712_set_key() argument
1251 psetkeyparm->keyid = (u8)keyid; in r8712_set_key()
1257 psecuritypriv->DefKey[keyid].skey, keylen); in r8712_set_key()
1262 psecuritypriv->DefKey[keyid].skey, keylen); in r8712_set_key()
1265 if (keyid < 1 || keyid > 2) { in r8712_set_key()
1271 &psecuritypriv->XGrpKey[keyid - 1], keylen); in r8712_set_key()
1275 if (keyid < 1 || keyid > 2) { in r8712_set_key()
1281 &psecuritypriv->XGrpKey[keyid - 1], keylen); in r8712_set_key()
Drtl871x_cmd.h190 u8 keyid; member
211 u8 keyid; member
Drtl871x_mlme.h206 struct security_priv *psecuritypriv, sint keyid);
Drtl871x_cmd.c930 psta->aid = psta->mac_id = psetstakey_rsp->keyid; /*CAM_ID(CAM_ENTRY)*/ in r8712_setstaKey_cmdrsp_callback()
/drivers/staging/rtl8188eu/include/
Drtw_cmd.h163 u8 keyid; member
189 u8 keyid; member
Drtw_mlme.h424 int keyid, u8 set_tx);
/drivers/net/wireless/st/cw1200/
Dwsm.h1024 u8 keyid; /* Unique per key identifier (0..3) */ member
1039 u8 keyid; /* Key ID */ member
1050 u8 keyid; /* Key ID */ member
1056 u8 keyid; /* Key ID */ member
1064 u8 keyid; /* Key ID */ member
Dsta.c732 wsm_key->wep_group.keyid = key->keyidx; in cw1200_set_key()
766 wsm_key->tkip_group.keyid = key->keyidx; in cw1200_set_key()
790 wsm_key->aes_group.keyid = key->keyidx; in cw1200_set_key()
802 wsm_key->wapi_pairwise.keyid = key->keyidx; in cw1200_set_key()
809 wsm_key->wapi_group.keyid = key->keyidx; in cw1200_set_key()
/drivers/net/wireless/ath/ath6kl/
Dcfg80211.h46 void ath6kl_cfg80211_tkip_micerr_event(struct ath6kl_vif *vif, u8 keyid,
Dmain.c670 void ath6kl_tkip_micerr_event(struct ath6kl_vif *vif, u8 keyid, bool ismcast) in ath6kl_tkip_micerr_event() argument
681 sta = ath6kl_find_sta_by_aid(ar, (keyid >> 2)); in ath6kl_tkip_micerr_event()
686 "ap tkip mic error received from aid=%d\n", keyid); in ath6kl_tkip_micerr_event()
690 NL80211_KEYTYPE_PAIRWISE, keyid, in ath6kl_tkip_micerr_event()
693 ath6kl_cfg80211_tkip_micerr_event(vif, keyid, ismcast); in ath6kl_tkip_micerr_event()
Dcore.h951 void ath6kl_tkip_micerr_event(struct ath6kl_vif *vif, u8 keyid, bool ismcast);
Dcfg80211.c1362 void ath6kl_cfg80211_tkip_micerr_event(struct ath6kl_vif *vif, u8 keyid, in ath6kl_cfg80211_tkip_micerr_event() argument
1366 "%s: keyid %d, ismcast %d\n", __func__, keyid, ismcast); in ath6kl_cfg80211_tkip_micerr_event()
1370 NL80211_KEYTYPE_PAIRWISE), keyid, NULL, in ath6kl_cfg80211_tkip_micerr_event()
/drivers/net/wireless/admtek/
Dadm8211.h483 u8 keyid; member
/drivers/staging/rtl8188eu/os_dep/
Dioctl_linux.c2142 static int set_group_key(struct adapter *padapter, u8 *key, u8 alg, int keyid) in set_group_key() argument
2166 psetkeyparm->keyid = (u8)keyid; in set_group_key()
2203 static int set_wep_key(struct adapter *padapter, u8 *key, u8 keylen, int keyid) in set_wep_key() argument
2218 return set_group_key(padapter, key, alg, keyid); in set_wep_key()
/drivers/staging/wlan-ng/
Dhfa384x.h760 u16 keyid; member