ath9k: use a separate data structure for rx buffers
PATCH v2 1/10 ath9k: use a separate data structure for rx buffers
There's no shared code for handling both rx and tx buffers, and tx buffers require a lot more metadata than rx buffers.
Using a separate data structure for rx reduces memory usage and improves cache footprint.
--- drivers/net/wireless/ath/ath9k/ath9k.h | 10 +++- drivers/net/wireless/ath/ath9k/init.c | 84 ++++++++++++++++++++++++---------- drivers/net/wireless/ath/ath9k/recv.c | 48 +++++++++---------- 3 files changed, 92 insertions(+), 50 deletions(-)
drivers/net/wireless/ath/ath9k/ath9k.h +9 -1
@@ -207,6 +207,14 @@ struct ath_frame_info { u8 baw_tracked : 1; }; +struct ath_rxbuf { +struct list_head list; +struct sk_buff *bf_mpdu; +void *bf_desc; +dma_addr_t bf_daddr; +dma_addr_t bf_buf_addr; +}; +struct ath_buf_state {u8 bf_type;u8 bfs_paprd;
@@ -307,7 +315,7 @@ struct ath_rx {struct ath_descdma rxdma;struct ath_rx_edma rx_edma[ATH9K_RX_QUEUE_MAX ]; -struct ath_buf *buf_hold; +struct ath_rxbuf *buf_hold;struct sk_buff *frag;u32 ampdu_ref;
drivers/net/wireless/ath/ath9k/init.c +59 -25
99 lines not on this page · raw message
drivers/net/wireless/ath/ath9k/recv.c +24 -24
186 lines not on this page · raw message
Signature · 1 line
1.8.0.2
PATCH v2 2/10 ath9k_hw: remove direct accesses to channel mode flags
Use wrappers where available. Simplifies code and helps with further improvements to the channel data structure
--- drivers/net/wireless/ath/ath9k/ani.c | 6 +- drivers/net/wireless/ath/ath9k/ar5008_phy.c | 35 ++------- drivers/net/wireless/ath/ath9k/ar9002_hw.c | 26 +------ drivers/net/wireless/ath/ath9k/ar9003_phy.c | 105 ++++++-------------------- drivers/net/wireless/ath/ath9k/htc_drv_main.c | 26 +------ drivers/net/wireless/ath/ath9k/hw.c | 7 +- drivers/net/wireless/ath/ath9k/hw.h | 2 + drivers/net/wireless/ath/ath9k/mci.c | 8 +- drivers/net/wireless/ath/ath9k/xmit.c | 3 +- 9 files changed, 49 insertions(+), 169 deletions(-)
drivers/net/wireless/ath/ath9k/ani.c +2 -4
@@ -338,10 +338,9 @@ void ath9k_ani_reset(struct ath_hw *ah, bool is_scanning) aniState->cckNoiseImmunityLevel != ATH9K_ANI_CCK_DEF_LEVEL) {ath_dbg (common,ANI , -"Restore defaults: opmode %u chan %d Mhz/0x%x is_scanning=%d ofdm:%d cck:%d\n" , +"Restore defaults: opmode %u chan %d Mhz is_scanning=%d ofdm:%d cck:%d\n" , ah->opmode, chan->channel, - chan->channelFlags, is_scanning, aniState->ofdmNoiseImmunityLevel, aniState->cckNoiseImmunityLevel);
@@ -354,10 +353,9 @@ void ath9k_ani_reset(struct ath_hw *ah, bool is_scanning)* restore historical levels for this channel */ ath_dbg (common,ANI , -"Restore history: opmode %u chan %d Mhz/0x%x is_scanning=%d ofdm:%d cck:%d\n" , +"Restore history: opmode %u chan %d Mhz is_scanning=%d ofdm:%d cck:%d\n" , ah->opmode, chan->channel, - chan->channelFlags, is_scanning, aniState->ofdmNoiseImmunityLevel, aniState->cckNoiseImmunityLevel);
drivers/net/wireless/ath/ath9k/ar5008_phy.c +7 -28
@@ -666,8 +666,7 @@ static void ar5008_hw_set_channel_regs(struct ath_hw *ah,if (IS_CHAN_HT40 (chan)) { phymode |=AR_PHY_FC_DYN2040_EN ; -if ((chan->chanmode ==CHANNEL_A_HT40PLUS ) || - (chan->chanmode ==CHANNEL_G_HT40PLUS )) +if (IS_CHAN_HT40PLUS (chan)) phymode |=AR_PHY_FC_DYN2040_PRI_CH ; }
@@ -691,31 +690,12 @@ static int ar5008_hw_process_ini(struct ath_hw *ah,int i, regWrites =0 ;u32 modesIndex, freqIndex; -switch (chan->chanmode) { -case CHANNEL_A : -case CHANNEL_A_HT20 : - modesIndex =1 ; +if (IS_CHAN_5GHZ (chan)) { freqIndex =1 ; -break ; -case CHANNEL_A_HT40PLUS : -case CHANNEL_A_HT40MINUS : - modesIndex =2 ; - freqIndex =1 ; -break ; -case CHANNEL_G : -case CHANNEL_G_HT20 : -case CHANNEL_B : - modesIndex =4 ; - freqIndex =2 ; -break ; -case CHANNEL_G_HT40PLUS : -case CHANNEL_G_HT40MINUS : - modesIndex =3 ; + modesIndex =IS_CHAN_HT40 (chan) ?2 :1 ; + }else { freqIndex =2 ; -break ; - -default : -return -EINVAL ; + modesIndex =IS_CHAN_HT40 (chan) ?3 :4 ; }/*
@@ -1218,12 +1198,11 @@ static void ar5008_hw_ani_cache_ini_regs(struct ath_hw *ah) iniDef = &aniState->iniDef; -ath_dbg (common,ANI ,"ver %d.%d opmode %u chan %d Mhz/0x%x\n" , +ath_dbg (common,ANI ,"ver %d.%d opmode %u chan %d Mhz\n" , ah->hw_version.macVersion, ah->hw_version.macRev, ah->opmode, - chan->channel, - chan->channelFlags); + chan->channel); val =REG_READ (ah,AR_PHY_SFCORR ); iniDef->m1Thresh =MS (val,AR_PHY_SFCORR_M1_THRESH );
drivers/net/wireless/ath/ath9k/ar9002_hw.c +4 -22
@@ -419,28 +419,10 @@ void ar9002_hw_load_ani_reg(struct ath_hw *ah, struct ath9k_channel *chan)u32 modesIndex;int i; -switch (chan->chanmode) { -case CHANNEL_A : -case CHANNEL_A_HT20 : - modesIndex =1 ; -break ; -case CHANNEL_A_HT40PLUS : -case CHANNEL_A_HT40MINUS : - modesIndex =2 ; -break ; -case CHANNEL_G : -case CHANNEL_G_HT20 : -case CHANNEL_B : - modesIndex =4 ; -break ; -case CHANNEL_G_HT40PLUS : -case CHANNEL_G_HT40MINUS : - modesIndex =3 ; -break ; - -default : -return ; - } +if (IS_CHAN_5GHZ (chan)) + modesIndex =IS_CHAN_HT40 (chan) ?2 :1 ; +else + modesIndex =IS_CHAN_HT40 (chan) ?3 :4 ;ENABLE_REGWRITE_BUFFER (ah);
drivers/net/wireless/ath/ath9k/ar9003_phy.c +24 -81
141 lines not on this page · raw message
drivers/net/wireless/ath/ath9k/htc_drv_main.c +3 -23
@@ -24,30 +24,10 @@static enum htc_phymode ath9k_htc_get_curmode (struct ath9k_htc_priv *priv,struct ath9k_channel *ichan) { -enum htc_phymode mode; - - mode = -EINVAL ; - -switch (ichan->chanmode) { -case CHANNEL_G : -case CHANNEL_G_HT20 : -case CHANNEL_G_HT40PLUS : -case CHANNEL_G_HT40MINUS : - mode =HTC_MODE_11NG ; -break ; -case CHANNEL_A : -case CHANNEL_A_HT20 : -case CHANNEL_A_HT40PLUS : -case CHANNEL_A_HT40MINUS : - mode =HTC_MODE_11NA ; -break ; -default : -break ; - } - -WARN_ON (mode <0 ); +if (IS_CHAN_5GHZ (ichan)) +return HTC_MODE_11NA ; -return mode; +return HTC_MODE_11NG ; } bool ath9k_htc_setpower(struct ath9k_htc_priv *priv,
drivers/net/wireless/ath/ath9k/hw.c +2 -5
@@ -294,8 +294,7 @@ void ath9k_hw_get_channel_centers(struct ath_hw *ah,return ; } -if ((chan->chanmode ==CHANNEL_A_HT40PLUS ) || - (chan->chanmode ==CHANNEL_G_HT40PLUS )) { +if (IS_CHAN_HT40PLUS (chan)) { centers->synth_center = chan->channel +HT40_CHANNEL_CENTER_SHIFT ; extoff =1 ;
@@ -1510,9 +1509,7 @@ static bool ath9k_hw_channel_change(struct ath_hw *ah,int r;if (pCap->hw_caps &ATH9K_HW_CAP_FCC_BAND_SWITCH ) { -u32 cur = ah->curchan->channelFlags & (CHANNEL_2GHZ |CHANNEL_5GHZ ); -u32 new = chan->channelFlags & (CHANNEL_2GHZ |CHANNEL_5GHZ ); - band_switch = (cur != new); + band_switch =IS_CHAN_5GHZ (ah->curchan) !=IS_CHAN_5GHZ (chan); mode_diff = (chan->chanmode != ah->curchan->chanmode); }
drivers/net/wireless/ath/ath9k/hw.h +2 -0
@@ -463,6 +463,8 @@ struct ath9k_channel { ((_c)->chanmode == CHANNEL_G_HT40PLUS) || \ ((_c)->chanmode == CHANNEL_G_HT40MINUS))#define IS_CHAN_HT (_c) (IS_CHAN_HT20((_c)) || IS_CHAN_HT40((_c))) +#define IS_CHAN_HT40PLUS (_c) ((_c)->chanmode & CHANNEL_HT40PLUS) +#define IS_CHAN_HT40MINUS (_c) ((_c)->chanmode & CHANNEL_HT40MINUS)enum ath9k_power_mode {ATH9K_PM_AWAKE =0 ,
drivers/net/wireless/ath/ath9k/mci.c +4 -4
@@ -661,9 +661,9 @@ void ath9k_mci_update_wlan_channels(struct ath_softc *sc, bool allow_all) chan_start = wlan_chan -10 ; chan_end = wlan_chan +10 ; -if (chan->chanmode ==CHANNEL_G_HT40PLUS ) +if (IS_CHAN_HT40PLUS (chan)) chan_end +=20 ; -else if (chan->chanmode ==CHANNEL_G_HT40MINUS ) +else if (IS_CHAN_HT40MINUS (chan)) chan_start -=20 ;/* adjust side band */
@@ -707,11 +707,11 @@ void ath9k_mci_set_txpower(struct ath_softc *sc, bool setchannel,if (setchannel) {struct ath9k_hw_cal_data *caldata = &sc->caldata; -if ((caldata->chanmode ==CHANNEL_G_HT40PLUS ) && +if (IS_CHAN_HT40PLUS (ah->curchan) && (ah->curchan->channel > caldata->channel) && (ah->curchan->channel <= caldata->channel +20 ))return ; -if ((caldata->chanmode ==CHANNEL_G_HT40MINUS ) && +if (IS_CHAN_HT40MINUS (ah->curchan) && (ah->curchan->channel < caldata->channel) && (ah->curchan->channel >= caldata->channel -20 ))return ;
drivers/net/wireless/ath/ath9k/xmit.c +1 -2
@@ -2037,8 +2037,7 @@ u8 ath_txchainmask_reduction(struct ath_softc *sc, u8 chainmask, u32 rate)struct ath_hw *ah = sc->sc_ah;struct ath9k_channel *curchan = ah->curchan; -if ((ah->caps.hw_caps &ATH9K_HW_CAP_APM ) && - (curchan->channelFlags &CHANNEL_5GHZ ) && +if ((ah->caps.hw_caps &ATH9K_HW_CAP_APM ) &&IS_CHAN_5GHZ (curchan) && (chainmask ==0x7 ) && (rate <0x90 ))return 0x3 ; else if (AR_SREV_9462(ah) && ath9k_hw_btcoex_is_enabled(ah) &&
Signature · 1 line
1.8.0.2
PATCH v2 3/10 ath9k_hw: remove IS_CHAN_B()
In reply to Felix FietkauHardware 802.11b-only mode isn't supported by the driver (the device is configured for 802.11n/g instead). Simplify the code by removing checks for it.
--- drivers/net/wireless/ath/ath9k/ar5008_phy.c | 6 ++++-- drivers/net/wireless/ath/ath9k/ar9002_calib.c | 7 ++----- drivers/net/wireless/ath/ath9k/ar9003_phy.c | 6 ++++-- drivers/net/wireless/ath/ath9k/hw.c | 9 ++------- drivers/net/wireless/ath/ath9k/hw.h | 1 - drivers/net/wireless/ath/ath9k/mac.c | 6 +----- 6 files changed, 13 insertions(+), 22 deletions(-)
drivers/net/wireless/ath/ath9k/ar5008_phy.c +4 -2
@@ -794,8 +794,10 @@ static void ar5008_hw_set_rfmode(struct ath_hw *ah, struct ath9k_channel *chan)if (chan ==NULL )return ; - rfMode |= (IS_CHAN_B (chan) ||IS_CHAN_G (chan)) - ?AR_PHY_MODE_DYNAMIC :AR_PHY_MODE_OFDM ; +if (IS_CHAN_2GHZ (chan)) + rfMode |=AR_PHY_MODE_DYNAMIC ; +else + rfMode |=AR_PHY_MODE_OFDM ;if (!AR_SREV_9280_20_OR_LATER (ah)) rfMode |= (IS_CHAN_5GHZ(chan)) ?
drivers/net/wireless/ath/ath9k/ar9002_calib.c +2 -5
@@ -33,15 +33,12 @@ static bool ar9002_hw_is_cal_supported(struct ath_hw *ah,bool supported = false;switch (ah->supp_cals & cal_type) {case IQ_MISMATCH_CAL : -/* Run IQ Mismatch for non-CCK only */ -if (!IS_CHAN_B (chan)) - supported = true; + supported = true;break ;case ADC_GAIN_CAL :case ADC_DC_CAL :/* Run ADC Gain Cal for non-CCK & non 2GHz-HT20 only */ -if (!IS_CHAN_B (chan) && - !((IS_CHAN_2GHZ (chan) ||IS_CHAN_A_FAST_CLOCK (ah, chan)) && +if (!((IS_CHAN_2GHZ (chan) ||IS_CHAN_A_FAST_CLOCK (ah, chan)) &&IS_CHAN_HT20 (chan))) supported = true;break ;
drivers/net/wireless/ath/ath9k/ar9003_phy.c +4 -2
@@ -808,8 +808,10 @@ static void ar9003_hw_set_rfmode(struct ath_hw *ah,if (chan ==NULL )return ; - rfMode |= (IS_CHAN_B (chan) ||IS_CHAN_G (chan)) - ?AR_PHY_MODE_DYNAMIC :AR_PHY_MODE_OFDM ; +if (IS_CHAN_2GHZ (chan)) + rfMode |=AR_PHY_MODE_DYNAMIC ; +else + rfMode |=AR_PHY_MODE_OFDM ;if (IS_CHAN_A_FAST_CLOCK (ah, chan)) rfMode |= (AR_PHY_MODE_DYNAMIC |AR_PHY_MODE_DYN_CCK_DISABLE );
drivers/net/wireless/ath/ath9k/hw.c +2 -7
@@ -190,10 +190,7 @@ EXPORT_SYMBOL(ath9k_hw_wait);void ath9k_hw_synth_delay (struct ath_hw *ah,struct ath9k_channel *chan,int hw_delay) { -if (IS_CHAN_B (chan)) - hw_delay = (4 * hw_delay) /22 ; -else - hw_delay /=10 ; + hw_delay /=10 ;if (IS_CHAN_HALF_RATE (chan)) hw_delay *=2 ;
@@ -1159,9 +1156,7 @@ u32 ath9k_regd_get_ctl(struct ath_regulatory *reg, struct ath9k_channel *chan) {u32 ctl =ath_regd_get_band_ctl (reg, chan->chan->band); -if (IS_CHAN_B (chan)) - ctl |=CTL_11B ; -else if (IS_CHAN_G (chan)) +if (IS_CHAN_G (chan)) ctl |=CTL_11G ;else ctl |=CTL_11A ;
drivers/net/wireless/ath/ath9k/hw.h +0 -1
@@ -455,7 +455,6 @@ struct ath9k_channel { ((_ah)->caps.hw_caps & ATH9K_HW_CAP_FASTCLOCK))/* These macros check chanmode and not channelFlags */ -#define IS_CHAN_B (_c) ((_c)->chanmode == CHANNEL_B)#define IS_CHAN_HT20 (_c) (((_c)->chanmode == CHANNEL_A_HT20) || \ ((_c)->chanmode == CHANNEL_G_HT20))#define IS_CHAN_HT40 (_c) (((_c)->chanmode == CHANNEL_A_HT40PLUS) || \
drivers/net/wireless/ath/ath9k/mac.c +1 -5
@@ -374,7 +374,6 @@ EXPORT_SYMBOL(ath9k_hw_releasetxqueue);bool ath9k_hw_resettxqueue (struct ath_hw *ah,u32 q) {struct ath_common *common =ath9k_hw_common (ah); -struct ath9k_channel *chan = ah->curchan;struct ath9k_tx_queue_info *qi;u32 cwMin, chanCwMin, value;
@@ -387,10 +386,7 @@ bool ath9k_hw_resettxqueue(struct ath_hw *ah, u32 q)ath_dbg (common,QUEUE ,"Reset TX queue: %u\n" , q);if (qi->tqi_cwmin ==ATH9K_TXQ_USEDEFAULT ) { -if (chan &&IS_CHAN_B (chan)) - chanCwMin =INIT_CWMIN_11B ; -else - chanCwMin =INIT_CWMIN ; + chanCwMin =INIT_CWMIN ;for (cwMin =1 ; cwMin < chanCwMin; cwMin = (cwMin <<1 ) |1 ); }else
Signature · 1 line
1.8.0.2
PATCH v2 4/10 ath9k_hw: remove IS_CHAN_OFDM()
In reply to Felix FietkauThe hardware is always configured with OFDM support enabled
--- drivers/net/wireless/ath/ath9k/hw.c | 8 ++------ drivers/net/wireless/ath/ath9k/hw.h | 1 - 2 files changed, 2 insertions(+), 7 deletions(-)
drivers/net/wireless/ath/ath9k/hw.c +2 -6
@@ -1544,9 +1544,7 @@ static bool ath9k_hw_channel_change(struct ath_hw *ah,ath9k_hw_set_clockrate (ah);ath9k_hw_apply_txpower (ah, chan, false); -if (IS_CHAN_OFDM (chan) ||IS_CHAN_HT (chan)) -ath9k_hw_set_delta_slope (ah, chan); - +ath9k_hw_set_delta_slope (ah, chan);ath9k_hw_spur_mitigate_freq (ah, chan);if (band_switch || ini_reloaded)
@@ -1981,9 +1979,7 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,ath9k_hw_init_mfp (ah); -if (IS_CHAN_OFDM (chan) ||IS_CHAN_HT (chan)) -ath9k_hw_set_delta_slope (ah, chan); - +ath9k_hw_set_delta_slope (ah, chan);ath9k_hw_spur_mitigate_freq (ah, chan); ah->eep_ops->set_board_values (ah, chan);
drivers/net/wireless/ath/ath9k/hw.h +0 -1
@@ -445,7 +445,6 @@ struct ath9k_channel { (((_c)->channelFlags & CHANNEL_G_HT20) == CHANNEL_G_HT20) || \ (((_c)->channelFlags & CHANNEL_G_HT40PLUS) == CHANNEL_G_HT40PLUS) || \ (((_c)->channelFlags & CHANNEL_G_HT40MINUS) == CHANNEL_G_HT40MINUS)) -#define IS_CHAN_OFDM (_c) (((_c)->channelFlags & CHANNEL_OFDM) != 0)#define IS_CHAN_5GHZ (_c) (((_c)->channelFlags & CHANNEL_5GHZ) != 0)#define IS_CHAN_2GHZ (_c) (((_c)->channelFlags & CHANNEL_2GHZ) != 0)#define IS_CHAN_HALF_RATE (_c) (((_c)->channelFlags & CHANNEL_HALF) != 0)
Signature · 1 line
1.8.0.2
PATCH v2 5/10 ath9k_hw: simplify channel flags
In reply to Felix FietkauThere was some duplication between channelFlags and chanmode, as well as a lot of redundant checks based on the combinations of flags.
--- drivers/net/wireless/ath/ath9k/calib.c | 1 - drivers/net/wireless/ath/ath9k/common.c | 75 ++++++++----------------------- drivers/net/wireless/ath/ath9k/hw.c | 24 +++------- drivers/net/wireless/ath/ath9k/hw.h | 80 +++++++++++---------------------- 4 files changed, 50 insertions(+), 130 deletions(-)
drivers/net/wireless/ath/ath9k/calib.c +0 -1
@@ -408,7 +408,6 @@ void ath9k_init_nfcal_hist_buffer(struct ath_hw *ah, ah->caldata->channel = chan->channel; ah->caldata->channelFlags = chan->channelFlags; - ah->caldata->chanmode = chan->chanmode; h = ah->caldata->nfCalHist; default_nf =ath9k_hw_get_default_nf (ah, chan);for (i =0 ; i <NUM_NF_READINGS ; i++) {
drivers/net/wireless/ath/ath9k/common.c +18 -57
101 lines not on this page · raw message
drivers/net/wireless/ath/ath9k/hw.c +7 -17
@@ -1156,7 +1156,7 @@ u32 ath9k_regd_get_ctl(struct ath_regulatory *reg, struct ath9k_channel *chan) {u32 ctl =ath_regd_get_band_ctl (reg, chan->chan->band); -if (IS_CHAN_G (chan)) +if (IS_CHAN_2GHZ (chan)) ctl |=CTL_11G ;else ctl |=CTL_11A ;
@@ -1505,7 +1505,7 @@ static bool ath9k_hw_channel_change(struct ath_hw *ah,if (pCap->hw_caps &ATH9K_HW_CAP_FCC_BAND_SWITCH ) { band_switch =IS_CHAN_5GHZ (ah->curchan) !=IS_CHAN_5GHZ (chan); - mode_diff = (chan->chanmode != ah->curchan->chanmode); + mode_diff = (chan->channelFlags != ah->curchan->channelFlags); }for (qnum =0 ; qnum <AR_NUM_QCU ; qnum++) {
@@ -1814,20 +1814,11 @@ static int ath9k_hw_do_fastcc(struct ath_hw *ah, struct ath9k_channel *chan) goto fail;/* -* If cross-band fcc is not supoprted, bail out if -* either channelFlags or chanmode differ. -* -* chanmode will be different if the HT operating mode -* changes because of CSA. +* If cross-band fcc is not supoprted, bail out if channelFlags differ. */ -if (!(pCap->hw_caps &ATH9K_HW_CAP_FCC_BAND_SWITCH )) { -if ((chan->channelFlags &CHANNEL_ALL ) != - (ah->curchan->channelFlags &CHANNEL_ALL )) - goto fail; - -if (chan->chanmode != ah->curchan->chanmode) - goto fail; - } +if (!(pCap->hw_caps &ATH9K_HW_CAP_FCC_BAND_SWITCH ) && + chan->channelFlags != ah->curchan->channelFlags) + goto fail;if (!ath9k_hw_check_alive (ah)) goto fail;
@@ -1889,8 +1880,7 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan, ah->caldata = caldata;if (caldata && (chan->channel != caldata->channel || - chan->channelFlags != caldata->channelFlags || - chan->chanmode != caldata->chanmode)) { + chan->channelFlags != caldata->channelFlags)) {/* Operating channel changed, reset channel calibration data */ memset (caldata,0 ,sizeof (*caldata));ath9k_init_nfcal_hist_buffer (ah, chan);
drivers/net/wireless/ath/ath9k/hw.h +25 -55
102 lines not on this page · raw message
Signature · 1 line
1.8.0.2
PATCH v2 6/10 ath9k: make ath9k_cmn_update_ichannel static
In reply to Felix FietkauRework its wrapper function to make it more generic, using it as a replacement for previous calls to ath9k_cmn_update_ichannel.
--- drivers/net/wireless/ath/ath9k/common.c | 16 ++++++++-------- drivers/net/wireless/ath/ath9k/common.h | 7 +++---- drivers/net/wireless/ath/ath9k/htc_drv_main.c | 6 ++---- drivers/net/wireless/ath/ath9k/init.c | 2 +- drivers/net/wireless/ath/ath9k/main.c | 7 +++---- 5 files changed, 17 insertions(+), 21 deletions(-)
drivers/net/wireless/ath/ath9k/common.c +8 -8
@@ -52,8 +52,8 @@ EXPORT_SYMBOL(ath9k_cmn_get_hw_crypto_keytype);/* * Update internal channel flags. */ -void ath9k_cmn_update_ichannel (struct ath9k_channel *ichan, -struct cfg80211_chan_def *chandef) +static void ath9k_cmn_update_ichannel (struct ath9k_channel *ichan, +struct cfg80211_chan_def *chandef) {struct ieee80211_channel *chan = chandef->chan;u16 flags =0 ;
@@ -88,25 +88,25 @@ void ath9k_cmn_update_ichannel(struct ath9k_channel *ichan, ichan->channelFlags = flags; } -EXPORT_SYMBOL (ath9k_cmn_update_ichannel);/* * Get the internal channel reference. */ -struct ath9k_channel *ath9k_cmn_get_curchannel (struct ieee80211_hw *hw, -struct ath_hw *ah) +struct ath9k_channel *ath9k_cmn_get_channel (struct ieee80211_hw *hw, +struct ath_hw *ah, +struct cfg80211_chan_def *chandef) { -struct ieee80211_channel *curchan = hw->conf.chandef.chan; +struct ieee80211_channel *curchan = chandef->chan;struct ath9k_channel *channel;u8 chan_idx; chan_idx = curchan->hw_value; channel = &ah->channels[chan_idx]; -ath9k_cmn_update_ichannel (channel, &hw->conf.chandef); +ath9k_cmn_update_ichannel (channel, chandef);return channel; } -EXPORT_SYMBOL (ath9k_cmn_get_curchannel); +EXPORT_SYMBOL (ath9k_cmn_get_channel);int ath9k_cmn_count_streams (unsigned int chainmask,int max) {
drivers/net/wireless/ath/ath9k/common.h +3 -4
@@ -43,10 +43,9 @@ (((x) + ((mul)/2)) / (mul))int ath9k_cmn_get_hw_crypto_keytype (struct sk_buff *skb); -void ath9k_cmn_update_ichannel (struct ath9k_channel *ichan, -struct cfg80211_chan_def *chandef); -struct ath9k_channel *ath9k_cmn_get_curchannel (struct ieee80211_hw *hw, -struct ath_hw *ah); +struct ath9k_channel *ath9k_cmn_get_channel (struct ieee80211_hw *hw, +struct ath_hw *ah, +struct cfg80211_chan_def *chandef);int ath9k_cmn_count_streams (unsigned int chainmask,int max);void ath9k_cmn_btcoex_bt_stomp (struct ath_common *common,enum ath_stomp_type stomp_type);
drivers/net/wireless/ath/ath9k/htc_drv_main.c +2 -4
@@ -906,7 +906,7 @@ static int ath9k_htc_start(struct ieee80211_hw *hw)WMI_CMD (WMI_FLUSH_RECV_CMDID );/* setup initial channel */ - init_channel =ath9k_cmn_get_curchannel (hw, ah); + init_channel =ath9k_cmn_get_channel (hw, ah, &hw->conf.chandef); ret =ath9k_hw_reset (ah, init_channel, ah->caldata, false);if (ret) {
@@ -1188,9 +1188,7 @@ static int ath9k_htc_config(struct ieee80211_hw *hw, u32 changed)ath_dbg (common,CONFIG ,"Set channel: %d MHz\n" , curchan->center_freq); -ath9k_cmn_update_ichannel (&priv->ah->channels[pos], - &hw->conf.chandef); - +ath9k_cmn_get_channel (hw, priv->ah, &hw->conf.chandef);if (ath9k_htc_set_channel (priv, hw, &priv->ah->channels[pos]) <0 ) {ath_err (common,"Unable to set channel\n" ); ret = -EINVAL ;
drivers/net/wireless/ath/ath9k/init.c +1 -1
@@ -802,7 +802,7 @@ static void ath9k_init_band_txpower(struct ath_softc *sc, int band) chan = &sband->channels[i]; ah->curchan = &ah->channels[chan->hw_value];cfg80211_chandef_create (&chandef, chan,NL80211_CHAN_HT20 ); -ath9k_cmn_update_ichannel (ah->curchan, &chandef); +ath9k_cmn_get_channel (sc->hw, ah, &chandef);ath9k_hw_set_txpowerlimit (ah,MAX_RATE_POWER , true); } }
drivers/net/wireless/ath/ath9k/main.c +3 -4
@@ -600,7 +600,7 @@ static int ath9k_start(struct ieee80211_hw *hw)ath9k_ps_wakeup (sc);mutex_lock (&sc->mutex); - init_channel =ath9k_cmn_get_curchannel (hw, ah); + init_channel =ath9k_cmn_get_channel (hw, ah, &hw->conf.chandef);/* Reset SERDES registers */ ath9k_hw_configpcipowersave (ah, false);
@@ -803,7 +803,7 @@ static void ath9k_stop(struct ieee80211_hw *hw) }if (!ah->curchan) - ah->curchan =ath9k_cmn_get_curchannel (hw, ah); + ah->curchan =ath9k_cmn_get_channel (hw, ah, &hw->conf.chandef);ath9k_hw_reset (ah, ah->curchan, ah->caldata, false);ath9k_hw_phy_disable (ah);
@@ -1223,8 +1223,7 @@ static int ath9k_config(struct ieee80211_hw *hw, u32 changed)ath_update_survey_stats (sc);spin_unlock_irqrestore (&common->cc_lock, flags); -ath9k_cmn_update_ichannel (&sc->sc_ah->channels[pos], - &conf->chandef); +ath9k_cmn_get_channel (hw, ah, &conf->chandef);/* * If the operating channel changes, change the survey in-use flags
Signature · 1 line
1.8.0.2
PATCH v2 7/10 ath9k: move channel change code to ath_set_channel
In reply to Felix FietkauPreparation for adding the scanning state machine to ath9k
--- drivers/net/wireless/ath/ath9k/main.c | 150 ++++++++++++++++++---------------- 1 file changed, 78 insertions(+), 72 deletions(-)
drivers/net/wireless/ath/ath9k/main.c +78 -72
@@ -312,17 +312,91 @@ out:* by reseting the chip. To accomplish this we must first cleanup any pending * DMA, then restart stuff. */ -static int ath_set_channel (struct ath_softc *sc,struct ieee80211_hw *hw, -struct ath9k_channel *hchan) +static int ath_set_channel (struct ath_softc *sc,struct cfg80211_chan_def *chandef) { +struct ath_hw *ah = sc->sc_ah; +struct ath_common *common =ath9k_hw_common (ah); +struct ieee80211_hw *hw = sc->hw; +struct ath9k_channel *hchan; +struct ieee80211_channel *chan = chandef->chan; +unsigned long flags; +bool offchannel; +int pos = chan->hw_value; +int old_pos =-1 ;int r;if (test_bit (SC_OP_INVALID , &sc->sc_flags))return -EIO ; + offchannel = !!(hw->conf.flags &IEEE80211_CONF_OFFCHANNEL ); + +if (ah->curchan) + old_pos = ah->curchan - &ah->channels[0 ]; + +ath_dbg (common,CONFIG ,"Set channel: %d MHz width: %d\n" , + chan->center_freq, chandef->width); + +/* update survey stats for the old channel before switching */ +spin_lock_irqsave (&common->cc_lock, flags); +ath_update_survey_stats (sc); +spin_unlock_irqrestore (&common->cc_lock, flags); + +ath9k_cmn_get_channel (hw, ah, chandef); + +/* +* If the operating channel changes, change the survey in-use flags +* along with it. +* Reset the survey data for the new channel, unless we're switching +* back to the operating channel from an off-channel operation. +*/ +if (!offchannel && sc->cur_survey != &sc->survey[pos]) { +if (sc->cur_survey) + sc->cur_survey->filled &= ~SURVEY_INFO_IN_USE ; + + sc->cur_survey = &sc->survey[pos]; + +memset (sc->cur_survey,0 ,sizeof (struct survey_info )); + sc->cur_survey->filled |=SURVEY_INFO_IN_USE ; + }else if (!(sc->survey[pos].filled &SURVEY_INFO_IN_USE )) { +memset (&sc->survey[pos],0 ,sizeof (struct survey_info )); + } + + hchan = &sc->sc_ah->channels[pos]; r =ath_reset_internal (sc, hchan); +if (r) +return r; -return r; +/* +* The most recent snapshot of channel->noisefloor for the old +* channel is only available after the hardware reset. Copy it to +* the survey stats now. +*/ +if (old_pos >=0 ) +ath_update_survey_nf (sc, old_pos); + +/* +* Enable radar pulse detection if on a DFS channel. Spectral +* scanning and radar detection can not be used concurrently. +*/ +if (hw->conf.radar_enabled) { +u32 rxfilter; + +/* set HW specific DFS configuration */ +ath9k_hw_set_radar_params (ah); + rxfilter =ath9k_hw_getrxfilter (ah); + rxfilter |=ATH9K_RX_FILTER_PHYRADAR | +ATH9K_RX_FILTER_PHYERR ; +ath9k_hw_setrxfilter (ah, rxfilter); +ath_dbg (common,DFS ,"DFS enabled at freq %d\n" , + chan->center_freq); + }else { +/* perform spectral scan if requested. */ +if (test_bit (SC_OP_SCANNING , &sc->sc_flags) && + sc->spectral_mode ==SPECTRAL_CHANSCAN ) +ath9k_spectral_scan_trigger (hw); + } + +return 0 ; } static void ath_node_attach(struct ath_softc *sc, struct ieee80211_sta *sta,
@@ -1207,80 +1281,12 @@ static int ath9k_config(struct ieee80211_hw *hw, u32 changed) }if ((changed &IEEE80211_CONF_CHANGE_CHANNEL ) || reset_channel) { -struct ieee80211_channel *curchan = hw->conf.chandef.chan; -int pos = curchan->hw_value; -int old_pos =-1 ; -unsigned long flags; - -if (ah->curchan) - old_pos = ah->curchan - &ah->channels[0 ]; - -ath_dbg (common,CONFIG ,"Set channel: %d MHz width: %d\n" , - curchan->center_freq, hw->conf.chandef.width); - -/* update survey stats for the old channel before switching */ -spin_lock_irqsave (&common->cc_lock, flags); -ath_update_survey_stats (sc); -spin_unlock_irqrestore (&common->cc_lock, flags); - -ath9k_cmn_get_channel (hw, ah, &conf->chandef); - -/* -* If the operating channel changes, change the survey in-use flags -* along with it. -* Reset the survey data for the new channel, unless we're switching -* back to the operating channel from an off-channel operation. -*/ -if (!(hw->conf.flags &IEEE80211_CONF_OFFCHANNEL ) && - sc->cur_survey != &sc->survey[pos]) { - -if (sc->cur_survey) - sc->cur_survey->filled &= ~SURVEY_INFO_IN_USE ; - - sc->cur_survey = &sc->survey[pos]; - -memset (sc->cur_survey,0 ,sizeof (struct survey_info )); - sc->cur_survey->filled |=SURVEY_INFO_IN_USE ; - }else if (!(sc->survey[pos].filled &SURVEY_INFO_IN_USE )) { -memset (&sc->survey[pos],0 ,sizeof (struct survey_info )); - } - -if (ath_set_channel (sc, hw, &sc->sc_ah->channels[pos]) <0 ) { +if (ath_set_channel (sc, &hw->conf.chandef) <0 ) {ath_err (common,"Unable to set channel\n" );mutex_unlock (&sc->mutex);ath9k_ps_restore (sc);return -EINVAL ; } - -/* -* The most recent snapshot of channel->noisefloor for the old -* channel is only available after the hardware reset. Copy it to -* the survey stats now. -*/ -if (old_pos >=0 ) -ath_update_survey_nf (sc, old_pos); - -/* -* Enable radar pulse detection if on a DFS channel. Spectral -* scanning and radar detection can not be used concurrently. -*/ -if (hw->conf.radar_enabled) { -u32 rxfilter; - -/* set HW specific DFS configuration */ -ath9k_hw_set_radar_params (ah); - rxfilter =ath9k_hw_getrxfilter (ah); - rxfilter |=ATH9K_RX_FILTER_PHYRADAR | -ATH9K_RX_FILTER_PHYERR ; -ath9k_hw_setrxfilter (ah, rxfilter); -ath_dbg (common,DFS ,"DFS enabled at freq %d\n" , - curchan->center_freq); - }else { -/* perform spectral scan if requested. */ -if (test_bit (SC_OP_SCANNING , &sc->sc_flags) && - sc->spectral_mode ==SPECTRAL_CHANSCAN ) -ath9k_spectral_scan_trigger (hw); - } }if (changed &IEEE80211_CONF_CHANGE_POWER ) {
Signature · 1 line
1.8.0.2
PATCH v2 8/10 ath9k: remove sc->config.cabqReadyTime
In reply to Felix FietkauIt is not exposed as a configuration option anyway
--- drivers/net/wireless/ath/ath9k/ath9k.h | 1 - drivers/net/wireless/ath/ath9k/init.c | 1 - drivers/net/wireless/ath/ath9k/mac.h | 2 -- drivers/net/wireless/ath/ath9k/xmit.c | 9 +-------- 4 files changed, 1 insertion(+), 12 deletions(-)
drivers/net/wireless/ath/ath9k/ath9k.h +0 -1
@@ -64,7 +64,6 @@ struct ath_node;struct ath_config {u16 txpowlimit; -u8 cabqReadytime; };/*************************/
drivers/net/wireless/ath/ath9k/init.c +0 -1
@@ -471,7 +471,6 @@ static int ath9k_init_queues(struct ath_softc *sc) sc->beacon.beaconq =ath9k_hw_beaconq_setup (sc->sc_ah); sc->beacon.cabq =ath_txq_setup (sc,ATH9K_TX_QUEUE_CAB ,0 ); - sc->config.cabqReadytime =ATH_CABQ_READY_TIME ;ath_cabq_update (sc); sc->tx.uapsdq =ath_txq_setup (sc,ATH9K_TX_QUEUE_UAPSD ,0 );
drivers/net/wireless/ath/ath9k/mac.h +0 -2
@@ -603,8 +603,6 @@ enum ath9k_tx_queue_flags {#define ATH9K_TXQ_USE_LOCKOUT_BKOFF_DIS 0x00000001#define ATH9K_DECOMP_MASK_SIZE 128 -#define ATH9K_READY_TIME_LO_BOUND 50 -#define ATH9K_READY_TIME_HI_BOUND 96enum ath9k_pkt_type {ATH9K_PKT_TYPE_NORMAL =0 ,
drivers/net/wireless/ath/ath9k/xmit.c +1 -8
@@ -1704,16 +1704,9 @@ int ath_cabq_update(struct ath_softc *sc)int qnum = sc->beacon.cabq->axq_qnum;ath9k_hw_get_txq_props (sc->sc_ah, qnum, &qi); -/* -* Ensure the readytime % is within the bounds. -*/ -if (sc->config.cabqReadytime <ATH9K_READY_TIME_LO_BOUND ) - sc->config.cabqReadytime =ATH9K_READY_TIME_LO_BOUND ; -else if (sc->config.cabqReadytime >ATH9K_READY_TIME_HI_BOUND ) - sc->config.cabqReadytime =ATH9K_READY_TIME_HI_BOUND ; qi.tqi_readyTime = (cur_conf->beacon_interval * - sc->config.cabqReadytime) /100 ; +ATH_CABQ_READY_TIME ) /100 ;ath_txq_update (sc, qnum, &qi);return 0 ;
Signature · 1 line
1.8.0.2
PATCH v2 9/10 ath9k: make ath9k_uses_beacons static
In reply to Felix Fietkau--- drivers/net/wireless/ath/ath9k/ath9k.h | 1 - drivers/net/wireless/ath/ath9k/main.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-)
drivers/net/wireless/ath/ath9k/ath9k.h +0 -1
@@ -933,7 +933,6 @@ void ath9k_deinit_device(struct ath_softc *sc);void ath9k_set_hw_capab (struct ath_softc *sc,struct ieee80211_hw *hw);void ath9k_reload_chainmask_settings (struct ath_softc *sc); -bool ath9k_uses_beacons (int type);void ath9k_spectral_scan_trigger (struct ieee80211_hw *hw);int ath9k_spectral_scan_config (struct ieee80211_hw *hw,enum spectral_mode spectral_mode);
drivers/net/wireless/ath/ath9k/main.c +1 -1
@@ -896,7 +896,7 @@ static void ath9k_stop(struct ieee80211_hw *hw)ath_dbg (common,CONFIG ,"Driver halt\n" ); } -bool ath9k_uses_beacons (int type) +static bool ath9k_uses_beacons (int type) {switch (type) {case NL80211_IFTYPE_AP :
Signature · 1 line
1.8.0.2
PATCH v2 10/10 ath9k_hw: remove references to hw->conf
In reply to Felix FietkauAccessing it to get the current operating channel is racy and in the way of further channel handling related changes
--- drivers/net/wireless/ath/ath9k/ar5008_phy.c | 2 +- drivers/net/wireless/ath/ath9k/ar9003_phy.c | 2 +- drivers/net/wireless/ath/ath9k/calib.c | 8 +++----- drivers/net/wireless/ath/ath9k/hw.c | 21 +++++++++------------ drivers/net/wireless/ath/ath9k/hw.h | 2 +- 5 files changed, 15 insertions(+), 20 deletions(-)
drivers/net/wireless/ath/ath9k/ar5008_phy.c +1 -1
@@ -672,7 +672,7 @@ static void ar5008_hw_set_channel_regs(struct ath_hw *ah, }REG_WRITE (ah,AR_PHY_TURBO , phymode); -ath9k_hw_set11nmac2040 (ah); +ath9k_hw_set11nmac2040 (ah, chan);ENABLE_REGWRITE_BUFFER (ah);
drivers/net/wireless/ath/ath9k/ar9003_phy.c +1 -1
@@ -564,7 +564,7 @@ static void ar9003_hw_set_channel_regs(struct ath_hw *ah,REG_WRITE (ah,AR_PHY_GEN_CTRL , phymode);/* Configure MAC for 20/40 operation */ -ath9k_hw_set11nmac2040 (ah); +ath9k_hw_set11nmac2040 (ah, chan);/* global transmit timeout (25 TUs default)*/ REG_WRITE (ah,AR_GTXTO ,25 <<AR_GTXTO_TIMEOUT_LIMIT_S );
drivers/net/wireless/ath/ath9k/calib.c +3 -5
@@ -186,7 +186,6 @@ void ath9k_hw_reset_calibration(struct ath_hw *ah,bool ath9k_hw_reset_calvalid (struct ath_hw *ah) {struct ath_common *common =ath9k_hw_common (ah); -struct ieee80211_conf *conf = &common->hw->conf;struct ath9k_cal_list *currCal = ah->cal_list_curr;if (!ah->caldata)
@@ -208,7 +207,7 @@ bool ath9k_hw_reset_calvalid(struct ath_hw *ah)return true;ath_dbg (common,CALIBRATE ,"Resetting Cal %d state for channel %u\n" , - currCal->calData->calType, conf->chandef.chan->center_freq); + currCal->calData->calType, ah->curchan->chan->center_freq); ah->caldata->CalValid &= ~currCal->calData->calType; currCal->calState =CAL_WAITING ;
@@ -242,7 +241,6 @@ void ath9k_hw_loadnf(struct ath_hw *ah, struct ath9k_channel *chan)int32_t val;u8 chainmask = (ah->rxchainmask <<3 ) | ah->rxchainmask;struct ath_common *common =ath9k_hw_common (ah); -struct ieee80211_conf *conf = &common->hw->conf;s16 default_nf =ath9k_hw_get_default_nf (ah, chan);if (ah->caldata)
@@ -252,7 +250,7 @@ void ath9k_hw_loadnf(struct ath_hw *ah, struct ath9k_channel *chan)if (chainmask & (1 << i)) {s16 nfval; -if ((i >=AR5416_MAX_CHAINS ) && !conf_is_ht40 (conf)) +if ((i >=AR5416_MAX_CHAINS ) && !IS_CHAN_HT40 (chan))continue ;if (h)
@@ -314,7 +312,7 @@ void ath9k_hw_loadnf(struct ath_hw *ah, struct ath9k_channel *chan)ENABLE_REGWRITE_BUFFER (ah);for (i =0 ; i <NUM_NF_READINGS ; i++) {if (chainmask & (1 << i)) { -if ((i >=AR5416_MAX_CHAINS ) && !conf_is_ht40 (conf)) +if ((i >=AR5416_MAX_CHAINS ) && !IS_CHAN_HT40 (chan))continue ; val =REG_READ (ah, ah->nf_regs[i]);
drivers/net/wireless/ath/ath9k/hw.c +9 -12
@@ -130,29 +130,29 @@ void ath9k_debug_sync_cause(struct ath_common *common, u32 sync_cause)static void ath9k_hw_set_clockrate (struct ath_hw *ah) { -struct ieee80211_conf *conf = &ath9k_hw_common (ah)->hw->conf;struct ath_common *common =ath9k_hw_common (ah); +struct ath9k_channel *chan = ah->curchan;unsigned int clockrate;/* AR9287 v1.3+ uses async FIFO and runs the MAC at 117 MHz */ if (AR_SREV_9287 (ah) &&AR_SREV_9287_13_OR_LATER (ah)) clockrate =117 ; -else if (!ah->curchan)/* should really check for CCK instead */ +else if (!chan)/* should really check for CCK instead */ clockrate =ATH9K_CLOCK_RATE_CCK ; -else if (conf->chandef.chan->band ==IEEE80211_BAND_2GHZ ) +else if (IS_CHAN_2GHZ (chan)) clockrate =ATH9K_CLOCK_RATE_2GHZ_OFDM ;else if (ah->caps.hw_caps &ATH9K_HW_CAP_FASTCLOCK ) clockrate =ATH9K_CLOCK_FAST_RATE_5GHZ_OFDM ;else clockrate =ATH9K_CLOCK_RATE_5GHZ_OFDM ; -if (conf_is_ht40 (conf)) +if (IS_CHAN_HT40 (chan)) clockrate *=2 ;if (ah->curchan) { -if (IS_CHAN_HALF_RATE (ah->curchan)) +if (IS_CHAN_HALF_RATE (chan)) clockrate /=2 ; -if (IS_CHAN_QUARTER_RATE (ah->curchan)) +if (IS_CHAN_QUARTER_RATE (chan)) clockrate /=4 ; }
@@ -1038,7 +1038,6 @@ static bool ath9k_hw_set_global_txtimeout(struct ath_hw *ah, u32 tu)void ath9k_hw_init_global_settings (struct ath_hw *ah) {struct ath_common *common =ath9k_hw_common (ah); -struct ieee80211_conf *conf = &common->hw->conf;const struct ath9k_channel *chan = ah->curchan;int acktimeout, ctstimeout, ack_offset =0 ;int slottime;
@@ -1113,8 +1112,7 @@ void ath9k_hw_init_global_settings(struct ath_hw *ah)* BA frames in some implementations, but it has been found to fix ACK * timeout issues in other cases as well. */ -if (conf->chandef.chan && - conf->chandef.chan->band ==IEEE80211_BAND_2GHZ && +if (IS_CHAN_2GHZ (chan) && !IS_CHAN_HALF_RATE (chan) && !IS_CHAN_QUARTER_RATE (chan)) { acktimeout +=64 - sifstime - ah->slottime; ctstimeout +=48 - sifstime - ah->slottime;
@@ -2946,12 +2944,11 @@ void ath9k_hw_set_tsfadjust(struct ath_hw *ah, bool set) }EXPORT_SYMBOL (ath9k_hw_set_tsfadjust); -void ath9k_hw_set11nmac2040 (struct ath_hw *ah) +void ath9k_hw_set11nmac2040 (struct ath_hw *ah,struct ath9k_channel *chan) { -struct ieee80211_conf *conf = &ath9k_hw_common (ah)->hw->conf;u32 macmode; -if (conf_is_ht40 (conf) && !ah->config.cwm_ignore_extcca) +if (IS_CHAN_HT40 (chan) && !ah->config.cwm_ignore_extcca) macmode =AR_2040_JOINED_RX_CLEAR ;else macmode =0 ;
drivers/net/wireless/ath/ath9k/hw.h +1 -1
@@ -1003,7 +1003,7 @@ void ath9k_hw_reset_tsf(struct ath_hw *ah);void ath9k_hw_set_tsfadjust (struct ath_hw *ah,bool set);void ath9k_hw_init_global_settings (struct ath_hw *ah);u32 ar9003_get_pll_sqsum_dvc (struct ath_hw *ah); -void ath9k_hw_set11nmac2040 (struct ath_hw *ah); +void ath9k_hw_set11nmac2040 (struct ath_hw *ah,struct ath9k_channel *chan);void ath9k_hw_beaconinit (struct ath_hw *ah,u32 next_beacon,u32 beacon_period);void ath9k_hw_set_sta_beacon_timers (struct ath_hw *ah,const struct ath9k_beacon_state *bs);
Signature · 1 line
1.8.0.2