struct ieee80211_node *ni = vap->iv_bss;
int qlen;
+ if (vap->iv_opmode != IEEE80211_M_STA)
+ return;
+
if (!!enable == !!IEEE80211_VAP_IS_SLEEPING(vap)) /* Bool. normalise */
return;
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;