aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ap.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/ap.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/ap.c')
-rw-r--r--wpa_supplicant/ap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index 1ba2ab3..1e00f35 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -660,6 +660,11 @@ int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s,
if (ieee80211_is_dfs(params.freq.freq))
params.freq.freq = 0; /* set channel after CAC */
+ if (params.p2p)
+ wpa_drv_get_ext_capa(wpa_s, WPA_IF_P2P_GO);
+ else
+ wpa_drv_get_ext_capa(wpa_s, WPA_IF_AP_BSS);
+
if (wpa_drv_associate(wpa_s, &params) < 0) {
wpa_msg(wpa_s, MSG_INFO, "Failed to start AP functionality");
return -1;