summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_node.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2005-03-08 17:04:14 +0000
committersam <sam@FreeBSD.org>2005-03-08 17:04:14 +0000
commit228aadaa1558642e3443dd7806a3bd9272fe5684 (patch)
treed8bd5895adc8c5ce74d8a2467c70069b69abe2c8 /sys/net80211/ieee80211_node.c
parent85fe22a55b05887b98961887cc7f2adc931a8313 (diff)
downloadFreeBSD-src-228aadaa1558642e3443dd7806a3bd9272fe5684.zip
FreeBSD-src-228aadaa1558642e3443dd7806a3bd9272fe5684.tar.gz
honor any desired bssid when creating an ibss
Prodded by: David Young Obtained from: netbsd
Diffstat (limited to 'sys/net80211/ieee80211_node.c')
-rw-r--r--sys/net80211/ieee80211_node.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c
index 3c9ddab..dad6101 100644
--- a/sys/net80211/ieee80211_node.c
+++ b/sys/net80211/ieee80211_node.c
@@ -403,7 +403,10 @@ ieee80211_create_ibss(struct ieee80211com* ic, struct ieee80211_channel *chan)
if (ic->ic_opmode == IEEE80211_M_IBSS) {
ic->ic_flags |= IEEE80211_F_SIBSS;
ni->ni_capinfo |= IEEE80211_CAPINFO_IBSS; /* XXX */
- ni->ni_bssid[0] |= 0x02; /* local bit for IBSS */
+ if (ic->ic_flags & IEEE80211_F_DESBSSID)
+ IEEE80211_ADDR_COPY(ni->ni_bssid, ic->ic_des_bssid);
+ else
+ ni->ni_bssid[0] |= 0x02; /* local bit for IBSS */
}
/*
* Fix the channel and related attributes.
OpenPOWER on IntegriCloud