handle potential stale values of bssid in neighbor nodes that

can occur after an ibss merge

Submitted by:	David Young
This commit is contained in:
Sam Leffler 2005-01-22 20:33:37 +00:00
parent 7e400ed143
commit a8b16e8727
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140636

View file

@ -519,7 +519,11 @@ ieee80211_encap(struct ieee80211com *ic, struct mbuf *m,
wh->i_fc[1] = IEEE80211_FC1_DIR_NODS;
IEEE80211_ADDR_COPY(wh->i_addr1, eh.ether_dhost);
IEEE80211_ADDR_COPY(wh->i_addr2, eh.ether_shost);
IEEE80211_ADDR_COPY(wh->i_addr3, ni->ni_bssid);
/*
* NB: always use the bssid from ic_bss as the
* neighbor's may be stale after an ibss merge
*/
IEEE80211_ADDR_COPY(wh->i_addr3, ic->ic_bss->ni_bssid);
break;
case IEEE80211_M_HOSTAP:
wh->i_fc[1] = IEEE80211_FC1_DIR_FROMDS;