Changeset 40428


Ignore:
Timestamp:
2014-04-09T00:11:19+02:00 (4 years ago)
Author:
nbd
Message:

ath9k: fix AP mode crash issues

Signed-off-by: Felix Fietkau <nbd@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/kernel/mac80211/patches/300-pending_work.patch

    r40427 r40428  
     1commit ec998e5991781ecdaad0911dc64f1c8d3749c308 
     2Author: Felix Fietkau <nbd@openwrt.org> 
     3Date:   Tue Apr 8 23:42:17 2014 +0200 
     4 
     5    ath9k: fix a scheduling while atomic bug in CSA handling 
     6     
     7    Commit "ath9k: prepare for multi-interface CSA support" added a call to 
     8    ieee80211_iterate_active_interfaces in atomic context (beacon tasklet), 
     9    which is crashing. 
     10    Use ieee80211_iterate_active_interfaces_atomic instead. 
     11     
     12    Signed-off-by: Felix Fietkau <nbd@openwrt.org> 
     13 
    114commit 93f310a38a1d81a4bc8fcd9bf29628bd721cf2ef 
    215Author: Felix Fietkau <nbd@openwrt.org> 
     
    2740                if (level != aniState->firstepLevel) { 
    2841                        ath_dbg(common, ANI, 
     42--- a/drivers/net/wireless/ath/ath9k/beacon.c 
     43+++ b/drivers/net/wireless/ath/ath9k/beacon.c 
     44@@ -312,10 +312,9 @@ static void ath9k_csa_update_vif(void *d 
     45  
     46 void ath9k_csa_update(struct ath_softc *sc) 
     47 { 
     48-       ieee80211_iterate_active_interfaces(sc->hw, 
     49-                                           IEEE80211_IFACE_ITER_NORMAL, 
     50-                                           ath9k_csa_update_vif, 
     51-                                           sc); 
     52+       ieee80211_iterate_active_interfaces_atomic(sc->hw, 
     53+                                                  IEEE80211_IFACE_ITER_NORMAL, 
     54+                                                  ath9k_csa_update_vif, sc); 
     55 } 
     56  
     57 void ath9k_beacon_tasklet(unsigned long data) 
Note: See TracChangeset for help on using the changeset viewer.