aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Cavallari <Nicolas.Cavallari@lri.fr>2012-01-28 09:35:32 (GMT)
committerJouni Malinen <j@w1.fi>2012-01-28 09:35:32 (GMT)
commit913e3cf794cccf19d551d936a16c7d91acb5e834 (patch)
tree32a7d191231455809283d97a750117e99e0369d0
parent9e2af29f9bf065099b9a2abceaf40ac0e1bf86fa (diff)
downloadhostap-913e3cf794cccf19d551d936a16c7d91acb5e834.zip
hostap-913e3cf794cccf19d551d936a16c7d91acb5e834.tar.gz
hostap-913e3cf794cccf19d551d936a16c7d91acb5e834.tar.bz2
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>
-rw-r--r--src/drivers/driver_nl80211.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 659e3ae..71465bc 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",