nl80211: Add IBSS BSSID fixing support

If a BSSID and fixed-bssid are requested, fix the BSSID, so
the driver does not attempt to merge.

Signed-hostap: Nicolas Cavallari <cavallar@lri.fr>
This commit is contained in:
Nicolas Cavallari 2012-01-28 11:35:32 +02:00 committed by Jouni Malinen
parent 9e2af29f9b
commit 913e3cf794

View file

@ -6421,6 +6421,12 @@ retry:
if (ret) if (ret)
goto nla_put_failure; goto nla_put_failure;
if (params->bssid && params->fixed_bssid) {
wpa_printf(MSG_DEBUG, " * BSSID=" MACSTR,
MAC2STR(params->bssid));
NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, params->bssid);
}
if (params->wpa_ie) { if (params->wpa_ie) {
wpa_hexdump(MSG_DEBUG, wpa_hexdump(MSG_DEBUG,
" * Extra IEs for Beacon/Probe Response frames", " * Extra IEs for Beacon/Probe Response frames",