aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bwn
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2018-01-02 00:07:28 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2018-01-02 00:07:28 +0000
commit9fbe631a1ad7f8a1a2f45645d9c8dd50c2a8bb67 (patch)
treea5d7faed2a65fbf7d4faeb3ab70921425993d533 /sys/dev/bwn
parentcb1101afd7dcab548680a142d4a4b375a5a39b08 (diff)
downloadsrc-9fbe631a1ad7f8a1a2f45645d9c8dd50c2a8bb67.tar.gz
src-9fbe631a1ad7f8a1a2f45645d9c8dd50c2a8bb67.zip
Notes
Diffstat (limited to 'sys/dev/bwn')
-rw-r--r--sys/dev/bwn/if_bwn.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/bwn/if_bwn.c b/sys/dev/bwn/if_bwn.c
index 91c63093afa6..26e13e528f7e 100644
--- a/sys/dev/bwn/if_bwn.c
+++ b/sys/dev/bwn/if_bwn.c
@@ -1755,15 +1755,18 @@ bwn_wme_update(struct ieee80211com *ic)
{
struct bwn_softc *sc = ic->ic_softc;
struct bwn_mac *mac = sc->sc_curmac;
+ struct chanAccParams chp;
struct wmeParams *wmep;
int i;
+ ieee80211_wme_ic_getparams(ic, &chp);
+
BWN_LOCK(sc);
mac = sc->sc_curmac;
if (mac != NULL && mac->mac_status >= BWN_MAC_STATUS_INITED) {
bwn_mac_suspend(mac);
for (i = 0; i < N(sc->sc_wmeParams); i++) {
- wmep = &ic->ic_wme.wme_chanParams.cap_wmeParams[i];
+ wmep = &chp.cap_wmeParams[i];
bwn_wme_loadparams(mac, wmep, bwn_wme_shm_offsets[i]);
}
bwn_mac_enable(mac);