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.c1614 int rtw_set_key(struct adapter *adapter, struct security_priv *psecuritypriv, int keyid, u8 set_tx) in rtw_set_key() argument
1646 psetkeyparm->keyid = (u8)keyid;/* 0~3 */ in rtw_set_key()
1648 pmlmepriv->key_mask |= BIT(psetkeyparm->keyid); in rtw_set_key()
1650 psetkeyparm->algorithm, psetkeyparm->keyid, pmlmepriv->key_mask); in rtw_set_key()
1653 psetkeyparm->algorithm, keyid)); in rtw_set_key()
1658 memcpy(&(psetkeyparm->key[0]), &(psecuritypriv->dot11DefKey[keyid].skey[0]), keylen); in rtw_set_key()
1662 memcpy(&(psetkeyparm->key[0]), &(psecuritypriv->dot11DefKey[keyid].skey[0]), keylen); in rtw_set_key()
1666 memcpy(&psetkeyparm->key, &psecuritypriv->dot118021XGrpKey[keyid], keylen); in rtw_set_key()
1671 memcpy(&psetkeyparm->key, &psecuritypriv->dot118021XGrpKey[keyid], keylen); in rtw_set_key()
/drivers/staging/rtl8712/
Drtl871x_ioctl_set.c350 sint keyid; in r8712_set_802_11_add_wep() local
355 keyid = wep->KeyIndex & 0x3fffffff; in r8712_set_802_11_add_wep()
356 if (keyid >= WEP_KEYS) in r8712_set_802_11_add_wep()
369 memcpy(psecuritypriv->DefKey[keyid].skey, &wep->KeyMaterial, in r8712_set_802_11_add_wep()
371 psecuritypriv->DefKeylen[keyid] = wep->KeyLength; in r8712_set_802_11_add_wep()
372 psecuritypriv->PrivacyKeyIndex = keyid; in r8712_set_802_11_add_wep()
373 if (r8712_set_key(padapter, psecuritypriv, keyid) == _FAIL) in r8712_set_802_11_add_wep()
Drtl871x_mlme.c1237 sint keyid) in r8712_set_key() argument
1260 psetkeyparm->keyid = (u8)keyid; in r8712_set_key()
1266 psecuritypriv->DefKey[keyid].skey, keylen); in r8712_set_key()
1271 psecuritypriv->DefKey[keyid].skey, keylen); in r8712_set_key()
1274 if (keyid < 1 || keyid > 2) { in r8712_set_key()
1280 &psecuritypriv->XGrpKey[keyid - 1], keylen); in r8712_set_key()
1284 if (keyid < 1 || keyid > 2) { in r8712_set_key()
1290 &psecuritypriv->XGrpKey[keyid - 1], keylen); in r8712_set_key()
Drtl871x_cmd.h207 u8 keyid; member
227 u8 keyid; member
Drtl871x_mlme.h202 struct security_priv *psecuritypriv, sint keyid);
Drtl871x_cmd.c987 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.c1810 struct security_priv *psecuritypriv, int keyid, u8 set_tx) in rtw_set_key23a() argument
1819 if (keyid >= 4) { in rtw_set_key23a()
1850 psetkeyparm->keyid = keyid;/* 0~3 */ in rtw_set_key23a()
1853 pmlmepriv->key_mask |= BIT(psetkeyparm->keyid); in rtw_set_key23a()
1856 psetkeyparm->algorithm, psetkeyparm->keyid, in rtw_set_key23a()
1860 "keyid = (u8)keyid =%d\n", psetkeyparm->algorithm, keyid)); in rtw_set_key23a()
1866 &psecuritypriv->wep_key[keyid].key, keylen); in rtw_set_key23a()
1871 &psecuritypriv->wep_key[keyid].key, keylen); in rtw_set_key23a()
1876 &psecuritypriv->dot118021XGrpKey[keyid], keylen); in rtw_set_key23a()
1882 &psecuritypriv->dot118021XGrpKey[keyid], keylen); in rtw_set_key23a()
Drtw_mlme_ext.c5898 pmlmeinfo->key_index = pparm->keyid; in setkey_hdl23a()
5901 ctrl = BIT(15) | (pparm->algorithm) << 2 | pparm->keyid; in setkey_hdl23a()
5905 pparm->algorithm, pparm->keyid); in setkey_hdl23a()
5906 rtl8723a_cam_write(padapter, pparm->keyid, ctrl, null_sta, pparm->key); in setkey_hdl23a()
/drivers/staging/rtl8723au/os_dep/
Dioctl_cfg80211.c422 u32 alg, u8 keyid) in set_group_key() argument
431 if (keyid >= 4) { in set_group_key()
448 psetkeyparm->keyid = keyid; in set_group_key()
450 padapter->mlmepriv.key_mask |= BIT(psetkeyparm->keyid); in set_group_key()
1744 struct rtw_wep_key *wep, u8 keyid) in rtw_cfg80211_add_wep() argument
1749 if (keyid >= NUM_WEP_KEYS) { in rtw_cfg80211_add_wep()
1777 __func__, wep->keylen, keyid)); in rtw_cfg80211_add_wep()
1779 memcpy(&psecuritypriv->wep_key[keyid], wep, sizeof(struct rtw_wep_key)); in rtw_cfg80211_add_wep()
1781 psecuritypriv->dot11PrivacyKeyIndex = keyid; in rtw_cfg80211_add_wep()
1786 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.c734 wsm_key->wep_group.keyid = key->keyidx; in cw1200_set_key()
768 wsm_key->tkip_group.keyid = key->keyidx; in cw1200_set_key()
792 wsm_key->aes_group.keyid = key->keyidx; in cw1200_set_key()
804 wsm_key->wapi_pairwise.keyid = key->keyidx; in cw1200_set_key()
811 wsm_key->wapi_group.keyid = key->keyidx; in cw1200_set_key()
/drivers/net/wireless/ath/ath6kl/
Dcfg80211.h45 void ath6kl_cfg80211_tkip_micerr_event(struct ath6kl_vif *vif, u8 keyid,
Dmain.c671 void ath6kl_tkip_micerr_event(struct ath6kl_vif *vif, u8 keyid, bool ismcast) in ath6kl_tkip_micerr_event() argument
682 sta = ath6kl_find_sta_by_aid(ar, (keyid >> 2)); in ath6kl_tkip_micerr_event()
687 "ap tkip mic error received from aid=%d\n", keyid); in ath6kl_tkip_micerr_event()
691 NL80211_KEYTYPE_PAIRWISE, keyid, in ath6kl_tkip_micerr_event()
694 ath6kl_cfg80211_tkip_micerr_event(vif, keyid, ismcast); in ath6kl_tkip_micerr_event()
Dcore.h948 void ath6kl_tkip_micerr_event(struct ath6kl_vif *vif, u8 keyid, bool ismcast);
Dcfg80211.c1355 void ath6kl_cfg80211_tkip_micerr_event(struct ath6kl_vif *vif, u8 keyid, in ath6kl_cfg80211_tkip_micerr_event() argument
1359 "%s: keyid %d, ismcast %d\n", __func__, keyid, ismcast); in ath6kl_cfg80211_tkip_micerr_event()
1363 NL80211_KEYTYPE_PAIRWISE), keyid, NULL, in ath6kl_cfg80211_tkip_micerr_event()
/drivers/staging/rtl8723au/include/
Drtw_cmd.h223 u8 keyid; member
247 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.c2143 static int set_group_key(struct adapter *padapter, u8 *key, u8 alg, int keyid) in set_group_key() argument
2167 psetkeyparm->keyid = (u8)keyid; in set_group_key()
2204 static int set_wep_key(struct adapter *padapter, u8 *key, u8 keylen, int keyid) in set_wep_key() argument
2219 return set_group_key(padapter, key, alg, keyid); in set_wep_key()
/drivers/staging/wlan-ng/
Dhfa384x.h736 u16 keyid; member

12