when creating an ahdemo bss use any requested bssid; otherwise use zero
Obtained from: madwifi
This commit is contained in:
parent
259bb4d3b9
commit
50d8b493e4
@ -407,6 +407,11 @@ ieee80211_create_ibss(struct ieee80211com* ic, struct ieee80211_channel *chan)
|
||||
IEEE80211_ADDR_COPY(ni->ni_bssid, ic->ic_des_bssid);
|
||||
else
|
||||
ni->ni_bssid[0] |= 0x02; /* local bit for IBSS */
|
||||
} else if (ic->ic_opmode == IEEE80211_M_AHDEMO) {
|
||||
if (ic->ic_flags & IEEE80211_F_DESBSSID)
|
||||
IEEE80211_ADDR_COPY(ni->ni_bssid, ic->ic_des_bssid);
|
||||
else
|
||||
memset(ni->ni_bssid, 0, IEEE80211_ADDR_LEN);
|
||||
}
|
||||
/*
|
||||
* Fix the channel and related attributes.
|
||||
|
Loading…
Reference in New Issue
Block a user