From 913e3cf794cccf19d551d936a16c7d91acb5e834 Mon Sep 17 00:00:00 2001 From: Nicolas Cavallari Date: Sat, 28 Jan 2012 11:35:32 +0200 Subject: [PATCH] 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 --- src/drivers/driver_nl80211.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 659e3ae3e..71465bc17 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -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",