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

login
register
mail settings
Submitter Nicolas Cavallari
Date Jan. 25, 2012, 5:52 p.m.
Message ID <1327513955-9992-2-git-send-email-cavallar@lri.fr>
Download mbox | patch
Permalink /patch/137810/
State Accepted
Commit 913e3cf794cccf19d551d936a16c7d91acb5e834
Headers show

Comments

Nicolas Cavallari - Jan. 25, 2012, 5:52 p.m.
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>
---

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(-)

Patch

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",