aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wps_supplicant.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-12-04 03:44:56 (GMT)
committerJouni Malinen <j@w1.fi>2014-01-27 19:44:31 (GMT)
commitb56f6c886919da38a795f14832dea51a495df672 (patch)
tree0948d89cf2860b5815c74346cb1e406f467e8edf /wpa_supplicant/wps_supplicant.c
parent91a65018d83a7093c860962b5e05eb84c3dde016 (diff)
downloadhostap-b56f6c886919da38a795f14832dea51a495df672.zip
hostap-b56f6c886919da38a795f14832dea51a495df672.tar.gz
hostap-b56f6c886919da38a795f14832dea51a495df672.tar.bz2
P2P NFC: Add support for freq option in NFC ctrl_iface commands
This can be used to force an operating channel for P2P group formation triggered by NFC operations. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/wps_supplicant.c')
-rw-r--r--wpa_supplicant/wps_supplicant.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c
index a4b6da5..537aac3 100644
--- a/wpa_supplicant/wps_supplicant.c
+++ b/wpa_supplicant/wps_supplicant.c
@@ -2289,7 +2289,7 @@ static int wpas_wps_nfc_tag_process(struct wpa_supplicant *wpa_s,
int wpas_wps_nfc_tag_read(struct wpa_supplicant *wpa_s,
- const struct wpabuf *data)
+ const struct wpabuf *data, int forced_freq)
{
const struct wpabuf *wps = data;
struct wpabuf *tmp = NULL;
@@ -2305,7 +2305,8 @@ int wpas_wps_nfc_tag_read(struct wpa_supplicant *wpa_s,
#ifdef CONFIG_P2P
tmp = ndef_parse_p2p(data);
if (tmp) {
- ret = wpas_p2p_nfc_tag_process(wpa_s, tmp);
+ ret = wpas_p2p_nfc_tag_process(wpa_s, tmp,
+ forced_freq);
wpabuf_free(tmp);
return ret;
}