aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/sme.c
diff options
context:
space:
mode:
authorKanchanapally, Vidyullatha <vkanchan@qti.qualcomm.com>2016-04-12 08:01:42 (GMT)
committerJouni Malinen <j@w1.fi>2016-05-31 18:35:54 (GMT)
commitcc9a2575cabd2adb975df3677c6df5829f4279ad (patch)
tree9cad73bfb49f4e89311b65f674324a12bad4f5d7 /wpa_supplicant/sme.c
parentc6edea0df6a59d9847c6f8239f279b8446411a60 (diff)
downloadhostap-cc9a2575cabd2adb975df3677c6df5829f4279ad.zip
hostap-cc9a2575cabd2adb975df3677c6df5829f4279ad.tar.gz
hostap-cc9a2575cabd2adb975df3677c6df5829f4279ad.tar.bz2
nl80211: Use extended capabilities per interface type
This adds the necessary changes to support extraction and use of the extended capabilities specified per interface type (a recent cfg80211/nl80211 extension). If that information is available, per-interface values will be used to override the global per-radio value. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/sme.c')
-rw-r--r--wpa_supplicant/sme.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c
index 2fbb2c6..3a8f5b1 100644
--- a/wpa_supplicant/sme.c
+++ b/wpa_supplicant/sme.c
@@ -455,6 +455,11 @@ static void sme_send_authentication(struct wpa_supplicant *wpa_s,
}
#endif /* CONFIG_MBO */
+ if (params.p2p)
+ wpa_drv_get_ext_capa(wpa_s, WPA_IF_P2P_CLIENT);
+ else
+ wpa_drv_get_ext_capa(wpa_s, WPA_IF_STATION);
+
ext_capab_len = wpas_build_ext_capab(wpa_s, ext_capab,
sizeof(ext_capab));
if (ext_capab_len > 0) {