ath9k: Add a debug level for channel context
PATCH 1/3 ath9k: Add a debug level for channel context
From: Sujith Manoharan <[email protected]>
Signed-off-by Sujith Manoharan <[email protected]>
--- drivers/net/wireless/ath/ath.h | 1 + drivers/net/wireless/ath/ath9k/init.c | 2 ++ 2 files changed, 3 insertions(+)
drivers/net/wireless/ath/ath.h +1 -0
@@ -261,6 +261,7 @@ enum ATH_DEBUG {ATH_DBG_MCI =0x00008000 ,ATH_DBG_DFS =0x00010000 ,ATH_DBG_WOW =0x00020000 , +ATH_DBG_CHAN_CTX =0x00040000 , ATH_DBG_ANY = 0xffffffff };
drivers/net/wireless/ath/ath9k/init.c +2 -0
@@ -778,6 +778,8 @@ static void ath9k_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw) hw->chanctx_data_size =sizeof (void *); hw->extra_beacon_tailroom =sizeof (struct ieee80211_p2p_noa_attr ) +9 ; + +ath_dbg (common,CHAN_CTX ,"Use channel contexts\n" ); } }
Signature · 1 line
2.0.4
PATCH 3/3 ath9k: Move channel operations to channel.c
From: Sujith Manoharan <[email protected]>
This reduces clutter in main.c
Signed-off-by Sujith Manoharan <[email protected]>
--- drivers/net/wireless/ath/ath9k/ath9k.h | 3 + drivers/net/wireless/ath/ath9k/channel.c | 202 +++++++++++++++++++++++++++++++ drivers/net/wireless/ath/ath9k/main.c | 202 ------------------------------- 3 files changed, 205 insertions(+), 202 deletions(-)
drivers/net/wireless/ath/ath9k/ath9k.h +3 -0
@@ -432,6 +432,9 @@ struct ath_chanctx *ath_chanctx_get_oper_chan(struct ath_softc *sc,void ath_chanctx_event (struct ath_softc *sc,struct ieee80211_vif *vif,enum ath_chanctx_event ev);void ath_chanctx_timer (unsigned long data); +void ath_offchannel_next (struct ath_softc *sc); +void ath_scan_complete (struct ath_softc *sc,bool abort); +void ath_roc_complete (struct ath_softc *sc,bool abort);int ath_reset_internal (struct ath_softc *sc,struct ath9k_channel *hchan);int ath_startrecv (struct ath_softc *sc);
drivers/net/wireless/ath/ath9k/channel.c +202 -0
205 lines not on this page · raw message
drivers/net/wireless/ath/ath9k/main.c +0 -202
208 lines not on this page · raw message
Signature · 1 line
2.0.4
PATCH 2/3 ath9k: Handle failure to allocate HW timer
In reply to Sujith ManoharanFrom: Sujith Manoharan <[email protected]>
Signed-off-by Sujith Manoharan <[email protected]>
--- drivers/net/wireless/ath/ath9k/init.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/wireless/ath/ath9k/init.c +3 -1
@@ -601,7 +601,9 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc, goto err_btcoex; sc->p2p_ps_timer =ath_gen_timer_alloc (sc->sc_ah, ath9k_p2p_ps_timer, -NULL , sc,AR_FIRST_NDP_TIMER ); +NULL , sc,AR_FIRST_NDP_TIMER ); +if (!sc->p2p_ps_timer) + goto err_btcoex;ath9k_cmn_init_crypto (sc->sc_ah);ath9k_init_misc (sc);
Signature · 1 line
2.0.4