Lines 54-59
__FBSDID("$FreeBSD$");
Link Here
|
54 |
#include <dev/rtwn/rtl8192c/r92c_priv.h> |
54 |
#include <dev/rtwn/rtl8192c/r92c_priv.h> |
55 |
#include <dev/rtwn/rtl8192c/r92c_reg.h> |
55 |
#include <dev/rtwn/rtl8192c/r92c_reg.h> |
56 |
#include <dev/rtwn/rtl8192c/r92c_var.h> |
56 |
#include <dev/rtwn/rtl8192c/r92c_var.h> |
|
|
57 |
#include <dev/rtwn/usb/rtwn_usb_var.h> |
57 |
|
58 |
|
58 |
static int |
59 |
static int |
59 |
r92c_get_power_group(struct rtwn_softc *sc, struct ieee80211_channel *c) |
60 |
r92c_get_power_group(struct rtwn_softc *sc, struct ieee80211_channel *c) |
Lines 293-301
void
Link Here
|
293 |
r92c_set_chan(struct rtwn_softc *sc, struct ieee80211_channel *c) |
294 |
r92c_set_chan(struct rtwn_softc *sc, struct ieee80211_channel *c) |
294 |
{ |
295 |
{ |
295 |
struct r92c_softc *rs = sc->sc_priv; |
296 |
struct r92c_softc *rs = sc->sc_priv; |
|
|
297 |
struct rtwn_usb_softc *uc; |
296 |
u_int chan; |
298 |
u_int chan; |
297 |
int i; |
299 |
int i; |
298 |
|
300 |
|
|
|
301 |
if ((uc = RTWN_USB_SOFTC(sc)) != NULL) { |
302 |
RTWN_LOCK(sc); |
303 |
uc->uc_write_delay = 1; |
304 |
RTWN_UNLOCK(sc); |
305 |
} |
306 |
|
299 |
chan = rtwn_chan2centieee(c); |
307 |
chan = rtwn_chan2centieee(c); |
300 |
|
308 |
|
301 |
/* Set Tx power for this new channel. */ |
309 |
/* Set Tx power for this new channel. */ |
Lines 309-314
r92c_set_chan(struct rtwn_softc *sc, struct ieee80211_channel *c)
Link Here
|
309 |
r92c_set_bw40(sc, chan, IEEE80211_IS_CHAN_HT40U(c)); |
317 |
r92c_set_bw40(sc, chan, IEEE80211_IS_CHAN_HT40U(c)); |
310 |
else |
318 |
else |
311 |
rtwn_r92c_set_bw20(sc, chan); |
319 |
rtwn_r92c_set_bw20(sc, chan); |
|
|
320 |
|
321 |
if (uc != NULL) { |
322 |
RTWN_LOCK(sc); |
323 |
uc->uc_write_delay = 0; |
324 |
RTWN_UNLOCK(sc); |
325 |
} |
312 |
} |
326 |
} |
313 |
|
327 |
|
314 |
void |
328 |
void |