diff options
author | sam <sam@FreeBSD.org> | 2003-10-06 00:45:25 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2003-10-06 00:45:25 +0000 |
commit | 0dde677dba0f7d16bb43204ec9f90bcafd966dea (patch) | |
tree | e5f413abce0bc957f962032c2d9105dfed190272 | |
parent | fe7df074bb4ea08ca74a94856a9f8aeea13c8a6b (diff) | |
download | FreeBSD-src-0dde677dba0f7d16bb43204ec9f90bcafd966dea.zip FreeBSD-src-0dde677dba0f7d16bb43204ec9f90bcafd966dea.tar.gz |
include the DS element in beacons
-rw-r--r-- | sys/dev/ath/if_ath.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index 61a86e0..06f1153 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -995,7 +995,7 @@ ath_beacon_alloc(struct ath_softc *sc, struct ieee80211_node *ni) */ rs = &ni->ni_rates; pktlen = sizeof (struct ieee80211_frame) - + 8 + 2 + 2 + 2+ni->ni_esslen + 2+rs->rs_nrates + 6; + + 8 + 2 + 2 + 2+ni->ni_esslen + 2+rs->rs_nrates + 3 + 6; if (rs->rs_nrates > IEEE80211_RATE_SIZE) pktlen += 2; if (pktlen <= MHLEN) @@ -1052,6 +1052,9 @@ ath_beacon_alloc(struct ath_softc *sc, struct ieee80211_node *ni) memcpy(frm, ni->ni_essid, ni->ni_esslen); frm += ni->ni_esslen; frm = ieee80211_add_rates(frm, rs); + *frm++ = IEEE80211_ELEMID_DSPARMS; + *frm++ = 1; + *frm++ = ieee80211_chan2ieee(ic, ni->ni_chan); if (ic->ic_opmode == IEEE80211_M_IBSS) { *frm++ = IEEE80211_ELEMID_IBSSPARMS; *frm++ = 2; |