WPS: Set currently used RF band in RF Bands attribute
authorDavid Spinadel <david.spinadel@intel.com>
Sun, 25 Aug 2013 07:55:53 +0000 (10:55 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 25 Aug 2013 07:55:53 +0000 (10:55 +0300)
commit239abaf2ab42fc84217533308caf3da7cd0a0950
tree060eb54916bb56634020bb6f14164d7ee63cd364
parentbf83eab553440e36431a8d835cf23aa7e1395725
WPS: Set currently used RF band in RF Bands attribute

According to WSC specification (Ver 2.0.2, section 8.3), RF Bands
attribute should be set to the specific RF band used for the current
message. Add an option to set wanted band in wps_build_rf_bands() and
add a callback to get the current band from wpa_supplicant and hostapd.

Signed-hostap: David Spinadel <david.spinadel@intel.com>
src/ap/wps_hostapd.c
src/wps/wps.c
src/wps/wps.h
src/wps/wps_dev_attr.c
src/wps/wps_dev_attr.h
src/wps/wps_enrollee.c
src/wps/wps_registrar.c
wpa_supplicant/wps_supplicant.c