diff options
author | bschmidt <bschmidt@FreeBSD.org> | 2011-05-08 11:03:16 +0000 |
---|---|---|
committer | bschmidt <bschmidt@FreeBSD.org> | 2011-05-08 11:03:16 +0000 |
commit | 641edf4468d4fefc4ddc327e14bb40fd1eb64c67 (patch) | |
tree | f9b5c56acccd0298f0fff7e002e4a03b241a8deb /sys/dev/iwn | |
parent | e4f441b16cc22c964ef375d4465d3b433e80cbab (diff) | |
download | FreeBSD-src-641edf4468d4fefc4ddc327e14bb40fd1eb64c67.zip FreeBSD-src-641edf4468d4fefc4ddc327e14bb40fd1eb64c67.tar.gz |
Add HT capabilities to probe requests.
Diffstat (limited to 'sys/dev/iwn')
-rw-r--r-- | sys/dev/iwn/if_iwn.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/iwn/if_iwn.c b/sys/dev/iwn/if_iwn.c index bf37774..efac31a 100644 --- a/sys/dev/iwn/if_iwn.c +++ b/sys/dev/iwn/if_iwn.c @@ -4942,6 +4942,7 @@ iwn_scan(struct iwn_softc *sc) struct ifnet *ifp = sc->sc_ifp; struct ieee80211com *ic = ifp->if_l2com; struct ieee80211_scan_state *ss = ic->ic_scan; /*XXX*/ + struct ieee80211_node *ni = ss->ss_vap->iv_bss; struct iwn_scan_hdr *hdr; struct iwn_cmd_data *tx; struct iwn_scan_essid *essid; @@ -5028,10 +5029,8 @@ iwn_scan(struct iwn_softc *sc) frm = ieee80211_add_rates(frm, rs); if (rs->rs_nrates > IEEE80211_RATE_SIZE) frm = ieee80211_add_xrates(frm, rs); -#if 0 /* HT */ - if (ic->ic_flags & IEEE80211_F_HTON) - frm = ieee80211_add_htcaps(frm, ic); -#endif + if (ic->ic_htcaps & IEEE80211_HTC_HT) + frm = ieee80211_add_htcap(frm, ni); /* Set length of probe request. */ tx->len = htole16(frm - (uint8_t *)wh); |