Only have the Station PS handling routine run when we are actually in Station mode...
[madwifi/.git] / net80211 / ieee80211_scan.c
index 1a5e5ca8e667c2ecce8673b25773a5a7faf84a6e..aa11fa9b840851598816af8cb2a8f09d2edfa760 100644 (file)
@@ -291,13 +291,13 @@ scan_restart_pwrsav(unsigned long arg)
        struct ieee80211com *ic = vap->iv_ic;
        int delay;
 
+       /* Handle PS stuff, if required. */
        ieee80211_sta_pwrsave(vap, 1);
-       /*
-        * Use an initial 1ms delay to ensure the null
+       
+       /* Use an initial 1ms delay to ensure the null
         * data frame has a chance to go out.
         * XXX: 1ms is a lot, better to trigger scan
-        * on TX complete.
-        */
+        * on TX complete. */
        delay = msecs_to_jiffies(1);
        if (delay < 1)
                delay = 1;