aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ap.c
diff options
context:
space:
mode:
authorSunil Dutt <usdutt@qti.qualcomm.com>2017-07-31 12:35:05 (GMT)
committerJouni Malinen <j@w1.fi>2017-10-05 11:42:16 (GMT)
commit63bc0ab0ed2d3766db37a9dad4ecc21233e25d88 (patch)
tree732174e18960947115126250dde3229e1f7b86ec /wpa_supplicant/ap.c
parent3567641ebb7baaf9d9ba4a9091661c8befc386be (diff)
downloadhostap-63bc0ab0ed2d3766db37a9dad4ecc21233e25d88.zip
hostap-63bc0ab0ed2d3766db37a9dad4ecc21233e25d88.tar.gz
hostap-63bc0ab0ed2d3766db37a9dad4ecc21233e25d88.tar.bz2
P2P: Allow GO to advertise Interworking element
This adds new wpa_supplicant configuration parameters (go_interworking, go_access_network_type, go_internet, go_venue_group, go_venue_type) to add a possibility of configuring the P2P GO to advertise Interworking element. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/ap.c')
-rw-r--r--wpa_supplicant/ap.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index 3fc8e94..6668d58 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -354,6 +354,24 @@ static int wpa_supplicant_conf_ap(struct wpa_supplicant *wpa_s,
wep->keys_set = 1;
}
+ if (wpa_s->conf->go_interworking) {
+ wpa_printf(MSG_DEBUG,
+ "P2P: Enable Interworking with access_network_type: %d",
+ wpa_s->conf->go_access_network_type);
+ bss->interworking = wpa_s->conf->go_interworking;
+ bss->access_network_type = wpa_s->conf->go_access_network_type;
+ bss->internet = wpa_s->conf->go_internet;
+ if (wpa_s->conf->go_venue_group) {
+ wpa_printf(MSG_DEBUG,
+ "P2P: Venue group: %d Venue type: %d",
+ wpa_s->conf->go_venue_group,
+ wpa_s->conf->go_venue_type);
+ bss->venue_group = wpa_s->conf->go_venue_group;
+ bss->venue_type = wpa_s->conf->go_venue_type;
+ bss->venue_info_set = 1;
+ }
+ }
+
if (ssid->ap_max_inactivity)
bss->ap_max_inactivity = ssid->ap_max_inactivity;