Home
last modified time | relevance | path

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

12

/drivers/staging/rtl8188eu/core/
Drtw_ioctl_set.c508 int keyid, res; in rtw_set_802_11_add_wep() local
513 keyid = wep->KeyIndex & 0x3fffffff; in rtw_set_802_11_add_wep()
515 if (keyid >= 4) { in rtw_set_802_11_add_wep()
537 wep->KeyLength, wep->KeyIndex, keyid)); in rtw_set_802_11_add_wep()
539 memcpy(&(psecuritypriv->dot11DefKey[keyid].skey[0]), &(wep->KeyMaterial), wep->KeyLength); in rtw_set_802_11_add_wep()
541 psecuritypriv->dot11DefKeylen[keyid] = wep->KeyLength; in rtw_set_802_11_add_wep()
543 psecuritypriv->dot11PrivacyKeyIndex = keyid; in rtw_set_802_11_add_wep()
547 psecuritypriv->dot11DefKey[keyid].skey[0], in rtw_set_802_11_add_wep()
548 psecuritypriv->dot11DefKey[keyid].skey[1], in rtw_set_802_11_add_wep()
549 psecuritypriv->dot11DefKey[keyid].skey[2], in rtw_set_802_11_add_wep()
[all …]
Drtw_pwrctrl.c176 int keyid; in ips_leave() local
196 for (keyid = 0; keyid < 4; keyid++) { in ips_leave()
197 if (pmlmepriv->key_mask & BIT(keyid)) { in ips_leave()
198 if (keyid == psecuritypriv->dot11PrivacyKeyIndex) in ips_leave()
199 result = rtw_set_key(padapter, psecuritypriv, keyid, 1); in ips_leave()
201 result = rtw_set_key(padapter, psecuritypriv, keyid, 0); in ips_leave()
Drtw_mlme.c1623 int rtw_set_key(struct adapter *adapter, struct security_priv *psecuritypriv, int keyid, u8 set_tx) in rtw_set_key() argument
1655 psetkeyparm->keyid = (u8)keyid;/* 0~3 */ in rtw_set_key()
1657 pmlmepriv->key_mask |= BIT(psetkeyparm->keyid); in rtw_set_key()
1659 psetkeyparm->algorithm, psetkeyparm->keyid, pmlmepriv->key_mask); in rtw_set_key()
1662 psetkeyparm->algorithm, keyid)); in rtw_set_key()
1667 memcpy(&(psetkeyparm->key[0]), &(psecuritypriv->dot11DefKey[keyid].skey[0]), keylen); in rtw_set_key()
1671 memcpy(&(psetkeyparm->key[0]), &(psecuritypriv->dot11DefKey[keyid].skey[0]), keylen); in rtw_set_key()
1675 memcpy(&psetkeyparm->key, &psecuritypriv->dot118021XGrpKey[keyid], keylen); in rtw_set_key()
1680 memcpy(&psetkeyparm->key, &psecuritypriv->dot118021XGrpKey[keyid], keylen); in rtw_set_key()
/drivers/staging/rtl8712/
Drtl871x_ioctl_set.c347 sint keyid; in r8712_set_802_11_add_wep() local
350 keyid = wep->KeyIndex & 0x3fffffff; in r8712_set_802_11_add_wep()
351 if (keyid >= WEP_KEYS) in r8712_set_802_11_add_wep()
364 memcpy(psecuritypriv->DefKey[keyid].skey, &wep->KeyMaterial, in r8712_set_802_11_add_wep()
366 psecuritypriv->DefKeylen[keyid] = wep->KeyLength; in r8712_set_802_11_add_wep()
367 psecuritypriv->PrivacyKeyIndex = keyid; in r8712_set_802_11_add_wep()
368 if (r8712_set_key(padapter, psecuritypriv, keyid) == _FAIL) in r8712_set_802_11_add_wep()
Drtl871x_mlme.c1233 sint keyid) in r8712_set_key() argument
1256 psetkeyparm->keyid = (u8)keyid; in r8712_set_key()
1262 psecuritypriv->DefKey[keyid].skey, keylen); in r8712_set_key()
1267 psecuritypriv->DefKey[keyid].skey, keylen); in r8712_set_key()
1270 if (keyid < 1 || keyid > 2) { in r8712_set_key()
1276 &psecuritypriv->XGrpKey[keyid - 1], keylen); in r8712_set_key()
1280 if (keyid < 1 || keyid > 2) { in r8712_set_key()
1286 &psecuritypriv->XGrpKey[keyid - 1], keylen); in r8712_set_key()
Drtl871x_cmd.h189 u8 keyid; member
209 u8 keyid; member
Drtl871x_mlme.h202 struct security_priv *psecuritypriv, sint keyid);
Drtl871x_cmd.c978 psta->aid = psta->mac_id = psetstakey_rsp->keyid; /*CAM_ID(CAM_ENTRY)*/ in r8712_setstaKey_cmdrsp_callback()
/drivers/staging/rtl8723au/core/
Drtw_pwrctrl.c62 int keyid; in ips_leave23a() local
90 for (keyid = 0; keyid < 4; keyid++) { in ips_leave23a()
91 if (pmlmepriv->key_mask & BIT(keyid)) { in ips_leave23a()
92 if (keyid == in ips_leave23a()
94 result = rtw_set_key23a(padapter, psecuritypriv, keyid, 1); in ips_leave23a()
96 result = rtw_set_key23a(padapter, psecuritypriv, keyid, 0); in ips_leave23a()
Drtw_mlme.c1779 struct security_priv *psecuritypriv, int keyid, u8 set_tx) in rtw_set_key23a() argument
1788 if (keyid >= 4) { in rtw_set_key23a()
1817 psetkeyparm->keyid = keyid;/* 0~3 */ in rtw_set_key23a()
1820 pmlmepriv->key_mask |= BIT(psetkeyparm->keyid); in rtw_set_key23a()
1823 psetkeyparm->algorithm, psetkeyparm->keyid, in rtw_set_key23a()
1827 psetkeyparm->algorithm, keyid); in rtw_set_key23a()
1833 &psecuritypriv->wep_key[keyid].key, keylen); in rtw_set_key23a()
1838 &psecuritypriv->wep_key[keyid].key, keylen); in rtw_set_key23a()
1843 &psecuritypriv->dot118021XGrpKey[keyid], keylen); in rtw_set_key23a()
1849 &psecuritypriv->dot118021XGrpKey[keyid], keylen); in rtw_set_key23a()
Drtw_mlme_ext.c5868 pmlmeinfo->key_index = pparm->keyid; in setkey_hdl23a()
5871 ctrl = BIT(15) | (pparm->algorithm) << 2 | pparm->keyid; in setkey_hdl23a()
5875 pparm->algorithm, pparm->keyid); in setkey_hdl23a()
5876 rtl8723a_cam_write(padapter, pparm->keyid, ctrl, null_sta, pparm->key); in setkey_hdl23a()
/drivers/staging/rtl8723au/os_dep/
Dioctl_cfg80211.c423 u32 alg, u8 keyid) in set_group_key() argument
432 if (keyid >= 4) { in set_group_key()
449 psetkeyparm->keyid = keyid; in set_group_key()
451 padapter->mlmepriv.key_mask |= BIT(psetkeyparm->keyid); in set_group_key()
1736 struct rtw_wep_key *wep, u8 keyid) in rtw_cfg80211_add_wep() argument
1741 if (keyid >= NUM_WEP_KEYS) { in rtw_cfg80211_add_wep()
1769 __func__, wep->keylen, keyid); in rtw_cfg80211_add_wep()
1771 memcpy(&psecuritypriv->wep_key[keyid], wep, sizeof(struct rtw_wep_key)); in rtw_cfg80211_add_wep()
1773 psecuritypriv->dot11PrivacyKeyIndex = keyid; in rtw_cfg80211_add_wep()
1778 psecuritypriv->wep_key[keyid].key[0], in rtw_cfg80211_add_wep()
[all …]
/drivers/staging/rtl8188eu/include/
Drtw_cmd.h168 u8 keyid; member
194 u8 keyid; member
Drtw_mlme.h444 int keyid, u8 set_tx);
/drivers/net/wireless/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.c673 void ath6kl_tkip_micerr_event(struct ath6kl_vif *vif, u8 keyid, bool ismcast) in ath6kl_tkip_micerr_event() argument
684 sta = ath6kl_find_sta_by_aid(ar, (keyid >> 2)); in ath6kl_tkip_micerr_event()
689 "ap tkip mic error received from aid=%d\n", keyid); in ath6kl_tkip_micerr_event()
693 NL80211_KEYTYPE_PAIRWISE, keyid, in ath6kl_tkip_micerr_event()
696 ath6kl_cfg80211_tkip_micerr_event(vif, keyid, ismcast); in ath6kl_tkip_micerr_event()
Dcore.h950 void ath6kl_tkip_micerr_event(struct ath6kl_vif *vif, u8 keyid, bool ismcast);
Dcfg80211.c1356 void ath6kl_cfg80211_tkip_micerr_event(struct ath6kl_vif *vif, u8 keyid, in ath6kl_cfg80211_tkip_micerr_event() argument
1360 "%s: keyid %d, ismcast %d\n", __func__, keyid, ismcast); in ath6kl_cfg80211_tkip_micerr_event()
1364 NL80211_KEYTYPE_PAIRWISE), keyid, NULL, in ath6kl_cfg80211_tkip_micerr_event()
/drivers/staging/rtl8723au/include/
Drtw_cmd.h221 u8 keyid; member
245 u8 keyid; member
Drtw_mlme.h220 struct security_priv *psecuritypriv, int keyid, u8 set_tx);
/drivers/net/wireless/
Dadm8211.h483 u8 keyid; member
/drivers/staging/rtl8188eu/os_dep/
Dioctl_linux.c2146 static int set_group_key(struct adapter *padapter, u8 *key, u8 alg, int keyid) in set_group_key() argument
2170 psetkeyparm->keyid = (u8)keyid; in set_group_key()
2207 static int set_wep_key(struct adapter *padapter, u8 *key, u8 keylen, int keyid) in set_wep_key() argument
2222 return set_group_key(padapter, key, alg, keyid); in set_wep_key()
/drivers/staging/wlan-ng/
Dhfa384x.h736 u16 keyid; member

12