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 Disable ng channels for now.
details: https://anonhg.NetBSD.org/src-all/rev/e4872cd77ae9
branches: trunk
changeset: 364012:e4872cd77ae9
user: Nathanial Sloss <nat%netbsd.org@localhost>
date: Tue May 12 03:57:20 2020 +1000
description:
Disable ng channels for now.
Standardize channel init.
diffstat:
sys/dev/pci/if_iwn.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (32 lines):
diff -r 797f295089ba -r e4872cd77ae9 sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c Mon May 11 09:43:43 2020 +1000
+++ b/sys/dev/pci/if_iwn.c Tue May 12 03:57:20 2020 +1000
@@ -72,6 +72,7 @@
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_amrr.h>
#include <net80211/ieee80211_radiotap.h>
+#include <net80211/ieee80211_regdomain.h>
#include <dev/firmload.h>
@@ -418,8 +419,6 @@
#define DPRINTFN(n, x)
#endif
-static const uint8_t iwn_chan_2ghz[] =
- { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 };
CFATTACH_DECL_NEW(iwn, sizeof(struct iwn_softc), iwn_match, iwn_attach,
iwn_detach, NULL);
@@ -445,9 +444,8 @@
memset(bands, 0, sizeof(bands));
setbit(bands, IEEE80211_MODE_11B);
setbit(bands, IEEE80211_MODE_11G);
- setbit(bands, IEEE80211_MODE_11NG);
- ieee80211_add_channel_list_2ghz(chans, maxchans, nchans,
- iwn_chan_2ghz, nitems(iwn_chan_2ghz), bands, IEEE80211_CHAN_HT20);
+ // setbit(bands, IEEE80211_MODE_11NG);
+ ieee80211_init_channels(ic, NULL, bands);
}
static void
Home |
Main Index |
Thread Index |
Old Index