install bssid for ahdemo mode too

This commit is contained in:
Sam Leffler 2008-10-27 17:54:17 +00:00
parent 5d61b5e8f0
commit 7b916f8948
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=184361

View File

@ -5673,6 +5673,7 @@ ath_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg)
ni = vap->iv_bss;
rfilt = ath_calcrxfilter(sc);
stamode = (vap->iv_opmode == IEEE80211_M_STA ||
vap->iv_opmode == IEEE80211_M_AHDEMO ||
vap->iv_opmode == IEEE80211_M_IBSS);
if (stamode && nstate == IEEE80211_S_RUN) {
sc->sc_curaid = ni->ni_associd;