aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ap.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-02-15 10:34:55 (GMT)
committerJouni Malinen <j@w1.fi>2013-02-15 10:34:55 (GMT)
commit5ab9a6a53e8fcd667aa96dfe1022ae1ca6def892 (patch)
tree06c214902600c2551a6b284b0a15c8aafb45a7d1 /wpa_supplicant/ap.c
parent7bfe27778bbf980d596480ee5c2e5686378c9d37 (diff)
downloadhostap-5ab9a6a53e8fcd667aa96dfe1022ae1ca6def892.zip
hostap-5ab9a6a53e8fcd667aa96dfe1022ae1ca6def892.tar.gz
hostap-5ab9a6a53e8fcd667aa96dfe1022ae1ca6def892.tar.bz2
WPS: Add support for NFC handover select generation with wpa_supplicant
When wpa_supplicant is controlling an AP mode interface, it can generate the alternative carrier record for NFC connection handover select message similarly to the way this is done in hostapd. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/ap.c')
-rw-r--r--wpa_supplicant/ap.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index df0bba0..23c7025 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -860,6 +860,18 @@ struct wpabuf * wpas_ap_wps_nfc_config_token(struct wpa_supplicant *wpa_s,
return hostapd_wps_nfc_config_token(hapd, ndef);
}
+
+struct wpabuf * wpas_ap_wps_nfc_handover_sel(struct wpa_supplicant *wpa_s,
+ int ndef)
+{
+ struct hostapd_data *hapd;
+
+ if (wpa_s->ap_iface == NULL)
+ return NULL;
+ hapd = wpa_s->ap_iface->bss[0];
+ return hostapd_wps_nfc_hs_cr(hapd, ndef);
+}
+
#endif /* CONFIG_WPS */