Source-Changes-HG archive

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

[src/phil-wifi]: src/sys/dev/usb Compete some more of 11n support.



details:   https://anonhg.NetBSD.org/src/rev/f4c1c11b257e
branches:  phil-wifi
changeset: 931261:f4c1c11b257e
user:      nat <nat%NetBSD.org@localhost>
date:      Sat Apr 25 09:32:16 2020 +0000

description:
Compete some more of 11n support.
htcaps and streams values from FreeBSD.

diffstat:

 sys/dev/usb/if_urtwn.c |  22 +++++++++++++++++++---
 1 files changed, 19 insertions(+), 3 deletions(-)

diffs (50 lines):

diff -r 5e1d83416726 -r f4c1c11b257e sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Tue Apr 21 19:37:29 2020 +0000
+++ b/sys/dev/usb/if_urtwn.c    Sat Apr 25 09:32:16 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_urtwn.c,v 1.59.2.14 2020/04/21 18:42:38 martin Exp $        */
+/*     $NetBSD: if_urtwn.c,v 1.59.2.15 2020/04/25 09:32:16 nat Exp $   */
 /*     $OpenBSD: if_urtwn.c,v 1.42 2015/02/10 23:25:46 mpi Exp $       */
 
 /*-
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.59.2.14 2020/04/21 18:42:38 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.59.2.15 2020/04/25 09:32:16 nat Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -515,6 +515,21 @@
            IEEE80211_C_WME |           /* 802.11e */
            IEEE80211_C_WPA;            /* 802.11i */
 
+       ic->ic_htcaps =
+           IEEE80211_HTC_HT |
+           IEEE80211_HTCAP_SHORTGI20 |         /* short GI in 20MHz */
+#if 0
+           IEEE80211_HTCAP_MAXAMSDU_3839 |     /* max A-MSDU length */
+#endif
+           IEEE80211_HTCAP_SMPS_OFF;           /* SM PS mode disabled */
+#if 0
+           IEEE80211_HTCAP_CHWIDTH40 |         /* 40 MHz channel width */
+           IEEE80211_HTCAP_SHORTGI40;          /* short GI in 40MHz */
+#endif
+
+       ic->ic_txstream = sc->ntxchains;
+       ic->ic_rxstream = sc->nrxchains;
+
        ic->ic_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
 
 #ifdef should_delete_NNN
@@ -3667,7 +3682,8 @@
        setbit(bands, IEEE80211_MODE_11G);
        setbit(bands, IEEE80211_MODE_11NG);
        ieee80211_add_channel_list_2ghz(chans, maxchans, nchans,
-           urtwn_chan_2ghz, nitems(urtwn_chan_2ghz), bands, 0);
+           urtwn_chan_2ghz, nitems(urtwn_chan_2ghz), bands, IEEE80211_CHAN_HT20 |
+           IEEE80211_CHAN_HT40U | IEEE80211_CHAN_HT40D);
 }
 
 



Home | Main Index | Thread Index | Old Index