nl80211: Indicate HS 2.0 OSEN AKM in connect/associate command
This allows drivers that build the WPA/RSN IEs internally to use similar design for building the OSEN IE. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
9d1e11725d
commit
163f801ef2
3 changed files with 9 additions and 1 deletions
|
@ -1099,6 +1099,7 @@ enum wifi_display_subelem {
|
|||
#define WLAN_AKM_SUITE_FT_8021X 0x000FAC03
|
||||
#define WLAN_AKM_SUITE_FT_PSK 0x000FAC04
|
||||
#define WLAN_AKM_SUITE_CCKM 0x00409600
|
||||
#define WLAN_AKM_SUITE_OSEN 0x506f9a01
|
||||
|
||||
|
||||
/* IEEE 802.11v - WNM Action field values */
|
||||
|
|
|
@ -8551,7 +8551,8 @@ static int nl80211_connect_common(struct wpa_driver_nl80211_data *drv,
|
|||
params->key_mgmt_suite == WPA_KEY_MGMT_PSK ||
|
||||
params->key_mgmt_suite == WPA_KEY_MGMT_FT_IEEE8021X ||
|
||||
params->key_mgmt_suite == WPA_KEY_MGMT_FT_PSK ||
|
||||
params->key_mgmt_suite == WPA_KEY_MGMT_CCKM) {
|
||||
params->key_mgmt_suite == WPA_KEY_MGMT_CCKM ||
|
||||
params->key_mgmt_suite == WPA_KEY_MGMT_OSEN) {
|
||||
int mgmt = WLAN_AKM_SUITE_PSK;
|
||||
|
||||
switch (params->key_mgmt_suite) {
|
||||
|
@ -8567,11 +8568,15 @@ static int nl80211_connect_common(struct wpa_driver_nl80211_data *drv,
|
|||
case WPA_KEY_MGMT_FT_PSK:
|
||||
mgmt = WLAN_AKM_SUITE_FT_PSK;
|
||||
break;
|
||||
case WPA_KEY_MGMT_OSEN:
|
||||
mgmt = WLAN_AKM_SUITE_OSEN;
|
||||
break;
|
||||
case WPA_KEY_MGMT_PSK:
|
||||
default:
|
||||
mgmt = WLAN_AKM_SUITE_PSK;
|
||||
break;
|
||||
}
|
||||
wpa_printf(MSG_DEBUG, " * akm=0x%x", mgmt);
|
||||
NLA_PUT_U32(msg, NL80211_ATTR_AKM_SUITES, mgmt);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue