···936936937937void ieee80211_send_nullfunc(struct ieee80211_local *local,938938 struct ieee80211_sub_if_data *sdata,939939- int powersave)939939+ bool powersave)940940{941941 struct sk_buff *skb;942942 struct ieee80211_hdr_3addr *nullfunc;···14201420 msecs_to_jiffies(conf->dynamic_ps_timeout));14211421 } else {14221422 if (ieee80211_hw_check(&local->hw, PS_NULLFUNC_STACK))14231423- ieee80211_send_nullfunc(local, sdata, 1);14231423+ ieee80211_send_nullfunc(local, sdata, true);1424142414251425 if (ieee80211_hw_check(&local->hw, PS_NULLFUNC_STACK) &&14261426 ieee80211_hw_check(&local->hw, REPORTS_TX_ACK_STATUS))···16351635 msecs_to_jiffies(16361636 local->hw.conf.dynamic_ps_timeout));16371637 } else {16381638- ieee80211_send_nullfunc(local, sdata, 1);16381638+ ieee80211_send_nullfunc(local, sdata, true);16391639 /* Flush to get the tx status of nullfunc frame */16401640 ieee80211_flush_queues(local, sdata, false);16411641 }···2268226822692269 if (ieee80211_hw_check(&sdata->local->hw, REPORTS_TX_ACK_STATUS)) {22702270 ifmgd->nullfunc_failed = false;22712271- ieee80211_send_nullfunc(sdata->local, sdata, 0);22712271+ ieee80211_send_nullfunc(sdata->local, sdata, false);22722272 } else {22732273 int ssid_len;22742274···34453445 ieee80211_hw_config(local,34463446 IEEE80211_CONF_CHANGE_PS);34473447 }34483448- ieee80211_send_nullfunc(local, sdata, 0);34483448+ ieee80211_send_nullfunc(local, sdata, false);34493449 } else if (!local->pspolling && sdata->u.mgd.powersave) {34503450 local->pspolling = true;34513451
+3-3
net/mac80211/offchannel.c
···5757 * to send a new nullfunc frame to inform the AP that we5858 * are again sleeping.5959 */6060- ieee80211_send_nullfunc(local, sdata, 1);6060+ ieee80211_send_nullfunc(local, sdata, true);6161}62626363/* inform AP that we are awake again, unless power save is enabled */···6666 struct ieee80211_local *local = sdata->local;67676868 if (!local->ps_sdata)6969- ieee80211_send_nullfunc(local, sdata, 0);6969+ ieee80211_send_nullfunc(local, sdata, false);7070 else if (local->offchannel_ps_enabled) {7171 /*7272 * In !IEEE80211_HW_PS_NULLFUNC_STACK case the hardware···9393 * restart the timer now and send a nullfunc frame to inform9494 * the AP that we are awake.9595 */9696- ieee80211_send_nullfunc(local, sdata, 0);9696+ ieee80211_send_nullfunc(local, sdata, false);9797 mod_timer(&local->dynamic_ps_timer, jiffies +9898 msecs_to_jiffies(local->hw.conf.dynamic_ps_timeout));9999 }