Changeset 3341

Show
Ignore:
Timestamp:
02/06/08 22:29:06 (4 years ago)
Author:
mentor
Message:

Only have the Station PS handling routine run when we are actually in Station mode. This probably only affects IBSS.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • madwifi/trunk/net80211/ieee80211_power.c

    r3310 r3341  
    351351        int qlen; 
    352352 
     353        if (vap->iv_opmode != IEEE80211_M_STA) 
     354                return; 
     355 
    353356        if (!!enable == !!IEEE80211_VAP_IS_SLEEPING(vap)) /* Bool. normalise */ 
    354357                return; 
  • madwifi/trunk/net80211/ieee80211_scan.c

    r3274 r3341  
    292292        int delay; 
    293293 
     294        /* Handle PS stuff, if required. */ 
    294295        ieee80211_sta_pwrsave(vap, 1); 
    295         /* 
    296         * Use an initial 1ms delay to ensure the null 
     296         
     297        /* Use an initial 1ms delay to ensure the null 
    297298         * data frame has a chance to go out. 
    298299         * XXX: 1ms is a lot, better to trigger scan 
    299          * on TX complete. 
    300          */ 
     300         * on TX complete. */ 
    301301        delay = msecs_to_jiffies(1); 
    302302        if (delay < 1)