Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/dev/pci Fill in channel defs for 11A and 11N.



details:   https://anonhg.NetBSD.org/src-all/rev/7d9d61ddb0ce
branches:  trunk
changeset: 370839:7d9d61ddb0ce
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Sat May 23 00:02:11 2020 +1000

description:
Fill in channel defs for 11A and 11N.

diffstat:

 sys/dev/pci/if_iwn.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 238be52c12fe -r 7d9d61ddb0ce sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c      Fri May 22 23:27:36 2020 +1000
+++ b/sys/dev/pci/if_iwn.c      Sat May 23 00:02:11 2020 +1000
@@ -449,9 +449,13 @@
          */
 
         memset(bands, 0, sizeof(bands));
+        setbit(bands, IEEE80211_MODE_11A);
         setbit(bands, IEEE80211_MODE_11B);
         setbit(bands, IEEE80211_MODE_11G);
-     // setbit(bands, IEEE80211_MODE_11NG);
+#ifndef IEEE80211_NO_HT
+       setbit(bands, IEEE80211_MODE_11NG);
+       setbit(bands, IEEE80211_MODE_11NA);
+#endif
         ieee80211_init_channels(ic, NULL, bands);
 }
 



Home | Main Index | Thread Index | Old Index