From 53d2e5b73e929fa982911eadae6e8514a2c946be Mon Sep 17 00:00:00 2001 From: Andriy Voskoboinyk Date: Mon, 2 Jan 2017 16:58:55 +0000 Subject: [PATCH] rsu: restore 40Mhz channel support. MFC after: 4 days. --- sys/dev/usb/wlan/if_rsu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/usb/wlan/if_rsu.c b/sys/dev/usb/wlan/if_rsu.c index 70cc3deca852..9fe82eea8cab 100644 --- a/sys/dev/usb/wlan/if_rsu.c +++ b/sys/dev/usb/wlan/if_rsu.c @@ -775,7 +775,8 @@ rsu_getradiocaps(struct ieee80211com *ic, if (sc->sc_ht) setbit(bands, IEEE80211_MODE_11NG); ieee80211_add_channel_list_2ghz(chans, maxchans, nchans, - rsu_chan_2ghz, nitems(rsu_chan_2ghz), bands, 0); + rsu_chan_2ghz, nitems(rsu_chan_2ghz), bands, + (ic->ic_htcaps & IEEE80211_HTCAP_CHWIDTH40) != 0); } static void