[RFC 2/2] Add IBSS BSSID fixing support to nl80211 driver.

Nicolas Cavallari Nicolas.Cavallari
Wed Jan 25 09:52:35 PST 2012


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

Signed-hostap: Nicolas Cavallari <cavallar at lri.fr>
---

Specifying an BSSID is enought for the kernel to fix the BSSID,
according to the doc.

The latest Linux kernel have somewhat broken fixed_bssid behaviour
and i'm preparing a patch for that.

 src/drivers/driver_nl80211.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 82f5664..fec1d5f 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -6398,6 +6398,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, 6, params->bssid);
+	}
+
 	if (params->wpa_ie) {
 		wpa_hexdump(MSG_DEBUG,
 			    "  * Extra IEs for Beacon/Probe Response frames",
-- 
1.7.8.3




More information about the Hostap mailing list