mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
honor any desired bssid when creating an ibss
Prodded by: David Young Obtained from: netbsd
This commit is contained in:
parent
0c97ab9691
commit
48b0a5be74
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143300
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user