summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2010-04-30 16:31:48 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2010-04-30 16:31:48 +0000
commitf5ce14a201cf667c193486d7eab38b34a0909b47 (patch)
tree96ad3e92e10f2cbfb2e791fe945f1809083e618f
parentfc7cd3a3c8a423390698f8b8fc61af585f36a5ba (diff)
add HT Capabilities element in outgoing probe requests if HT is
enabled (it is not enabled yet.)
-rw-r--r--sys/dev/pci/if_iwn.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/if_iwn.c b/sys/dev/pci/if_iwn.c
index 1465d04a404..5a23ee0dfaf 100644
--- a/sys/dev/pci/if_iwn.c
+++ b/sys/dev/pci/if_iwn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwn.c,v 1.91 2010/04/30 16:08:36 damien Exp $ */
+/* $OpenBSD: if_iwn.c,v 1.92 2010/04/30 16:31:47 damien Exp $ */
/*-
* Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr>
@@ -4293,6 +4293,10 @@ iwn_scan(struct iwn_softc *sc, uint16_t flags)
frm = ieee80211_add_rates(frm, rs);
if (rs->rs_nrates > IEEE80211_RATE_SIZE)
frm = ieee80211_add_xrates(frm, rs);
+#ifndef IEEE80211_NO_HT
+ if (ic->ic_flags & IEEE80211_F_HTON)
+ frm = ieee80211_add_htcaps(frm, ic);
+#endif
/* Set length of probe request. */
tx->len = htole16(frm - (uint8_t *)wh);