]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Add IBSS BSSID fixing support
authorNicolas Cavallari <Nicolas.Cavallari@lri.fr>
Sat, 28 Jan 2012 09:35:32 +0000 (11:35 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 28 Jan 2012 09:35:32 +0000 (11:35 +0200)
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>

src/drivers/driver_nl80211.c

index 659e3ae3eabe45f46ac00a67f1cec4f692336a68..71465bc17f50a3a18c72eee334bbd5f91d17cca2 100644 (file)
@@ -6421,6 +6421,12 @@ retry:
        if (ret)
                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) {
                wpa_hexdump(MSG_DEBUG,
                            "  * Extra IEs for Beacon/Probe Response frames",