diff options
| author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-08-29 10:40:46 +0000 | 
|---|---|---|
| committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-08-29 10:40:46 +0000 | 
| commit | dfc716e60961c4cb1fc51dba76ddab5f20984218 (patch) | |
| tree | 7c380705285665519313d4d1c96b37562b72c712 | |
| parent | 6ea7b3a7667a6d9e1a148f12cec429972cfc1093 (diff) | |
ath9k: fix disabling ani on reset
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28115 3c298f89-4303-0410-b956-a3cf2f4a3e73
| -rw-r--r-- | package/mac80211/patches/581-ath9k_merge_reset_functions.patch | 24 | ||||
| -rw-r--r-- | package/mac80211/patches/582-ath9k_antenna_control.patch | 6 | 
2 files changed, 15 insertions, 15 deletions
| diff --git a/package/mac80211/patches/581-ath9k_merge_reset_functions.patch b/package/mac80211/patches/581-ath9k_merge_reset_functions.patch index f439ced5c..6262d423f 100644 --- a/package/mac80211/patches/581-ath9k_merge_reset_functions.patch +++ b/package/mac80211/patches/581-ath9k_merge_reset_functions.patch @@ -1,6 +1,6 @@  --- a/drivers/net/wireless/ath/ath9k/main.c  +++ b/drivers/net/wireless/ath/ath9k/main.c -@@ -212,83 +212,45 @@ static int ath_update_survey_stats(struc +@@ -212,83 +212,46 @@ static int ath_update_survey_stats(struc   	return ret;   } @@ -28,7 +28,7 @@   	sc->hw_busy_count = 0;  - --	del_timer_sync(&common->ani.timer); + 	del_timer_sync(&common->ani.timer);   	cancel_work_sync(&sc->paprd_work);   	cancel_work_sync(&sc->hw_check_work);   	cancel_delayed_work_sync(&sc->tx_complete_work); @@ -104,7 +104,7 @@   	}   	ath9k_cmn_update_txpow(ah, sc->curtxpow, -@@ -296,21 +258,89 @@ static int ath_set_channel(struct ath_so +@@ -296,21 +259,89 @@ static int ath_set_channel(struct ath_so   	ath9k_hw_set_interrupts(ah, ah->imask);   	ath9k_hw_enable_interrupts(ah); @@ -125,7 +125,7 @@  +  +	return true;  +} -+ +   +static int ath_reset_internal(struct ath_softc *sc, struct ath9k_channel *hchan,  +			      bool retry_tx)  +{ @@ -172,7 +172,7 @@  +	return 0;  +}  + -  ++  +/*  + * Set/change channels.  If the channel is really being changed, it's done  + * by reseting the chip.  To accomplish this we must first cleanup any pending @@ -197,7 +197,7 @@   	return r;   } -@@ -893,28 +923,13 @@ static void ath_radio_enable(struct ath_ +@@ -893,28 +924,13 @@ static void ath_radio_enable(struct ath_   			channel->center_freq, r);   	} @@ -227,7 +227,7 @@   	spin_unlock_bh(&sc->sc_pcu_lock);   	ath9k_ps_restore(sc); -@@ -927,12 +942,8 @@ void ath_radio_disable(struct ath_softc  +@@ -927,12 +943,8 @@ void ath_radio_disable(struct ath_softc    	int r;   	ath9k_ps_wakeup(sc); @@ -240,7 +240,7 @@   	/*   	 * Keep the LED on when the radio is disabled   	 * during idle unassociated state. -@@ -942,13 +953,7 @@ void ath_radio_disable(struct ath_softc  +@@ -942,13 +954,7 @@ void ath_radio_disable(struct ath_softc    		ath9k_hw_cfg_gpio_input(ah, ah->led_pin);   	} @@ -255,7 +255,7 @@   	if (!ah->curchan)   		ah->curchan = ath9k_cmn_get_curchannel(hw, ah); -@@ -970,48 +975,11 @@ void ath_radio_disable(struct ath_softc  +@@ -970,48 +976,11 @@ void ath_radio_disable(struct ath_softc    int ath_reset(struct ath_softc *sc, bool retry_tx)   { @@ -305,7 +305,7 @@   	if (retry_tx) {   		int i; -@@ -1024,12 +992,6 @@ int ath_reset(struct ath_softc *sc, bool +@@ -1024,12 +993,6 @@ int ath_reset(struct ath_softc *sc, bool   		}   	} @@ -318,7 +318,7 @@   	ath9k_ps_restore(sc);   	return r; -@@ -1081,28 +1043,6 @@ static int ath9k_start(struct ieee80211_ +@@ -1081,28 +1044,6 @@ static int ath9k_start(struct ieee80211_   		goto mutex_unlock;   	} @@ -347,7 +347,7 @@   	/* Setup our intr mask. */   	ah->imask = ATH9K_INT_TX | ATH9K_INT_RXEOL |   		    ATH9K_INT_RXORN | ATH9K_INT_FATAL | -@@ -1125,12 +1065,14 @@ static int ath9k_start(struct ieee80211_ +@@ -1125,12 +1066,14 @@ static int ath9k_start(struct ieee80211_   	/* Disable BMISS interrupt when we're not associated */   	ah->imask &= ~(ATH9K_INT_SWBA | ATH9K_INT_BMISS); diff --git a/package/mac80211/patches/582-ath9k_antenna_control.patch b/package/mac80211/patches/582-ath9k_antenna_control.patch index 39e527d3b..944554622 100644 --- a/package/mac80211/patches/582-ath9k_antenna_control.patch +++ b/package/mac80211/patches/582-ath9k_antenna_control.patch @@ -75,7 +75,7 @@   bool ath9k_uses_beacons(int type);  --- a/drivers/net/wireless/ath/ath9k/main.c  +++ b/drivers/net/wireless/ath/ath9k/main.c -@@ -268,6 +268,22 @@ static bool ath_complete_reset(struct at +@@ -269,6 +269,22 @@ static bool ath_complete_reset(struct at   			ath_start_ani(common);   	} @@ -98,7 +98,7 @@   	ieee80211_wake_queues(sc->hw);   	return true; -@@ -2364,6 +2380,59 @@ static int ath9k_get_stats(struct ieee80 +@@ -2365,6 +2381,59 @@ static int ath9k_get_stats(struct ieee80   	return 0;   } @@ -158,7 +158,7 @@   struct ieee80211_ops ath9k_ops = {   	.tx 		    = ath9k_tx,   	.start 		    = ath9k_start, -@@ -2390,4 +2459,6 @@ struct ieee80211_ops ath9k_ops = { +@@ -2391,4 +2460,6 @@ struct ieee80211_ops ath9k_ops = {   	.tx_frames_pending  = ath9k_tx_frames_pending,   	.tx_last_beacon     = ath9k_tx_last_beacon,   	.get_stats	    = ath9k_get_stats, | 
