From: Jouni Malinen Date: Mon, 17 Dec 2012 14:08:23 +0000 (+0200) Subject: WPS: Add RF bands attribute conditionally to Probe Response frame X-Git-Tag: hostap_2_0~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9904ff876a34e2f50a42127825bc7c879909b721;p=thirdparty%2Fhostap.git WPS: Add RF bands attribute conditionally to Probe Response frame WSC IE in Beacon and Probe Response frames should behave consistently as far as the RF Bands attribute is concerned. Use the same dualband condition for adding this into Probe Response frames since the value is not really needed if the AP is not a dualband AP. Signed-hostap: Jouni Malinen --- diff --git a/src/wps/wps_registrar.c b/src/wps/wps_registrar.c index d8e0d6fbc..b650a3c0a 100644 --- a/src/wps/wps_registrar.c +++ b/src/wps/wps_registrar.c @@ -1293,7 +1293,7 @@ static int wps_set_ie(struct wps_registrar *reg) wps_build_uuid_e(probe, reg->wps->uuid) || wps_build_device_attrs(®->wps->dev, probe) || wps_build_probe_config_methods(reg, probe) || - wps_build_rf_bands(®->wps->dev, probe) || + (reg->dualband && wps_build_rf_bands(®->wps->dev, probe)) || wps_build_wfa_ext(probe, 0, auth_macs, count) || wps_build_vendor_ext(®->wps->dev, probe)) { wpabuf_free(beacon);