Commit 49dcc819 authored by Daniel Halperin's avatar Daniel Halperin Committed by Reinette Chatre

iwlwifi: optimize power saving

In hostap AP mode, every time the client sends the AP
a packet the STA_NOTIFY_AWAKE code is sent from mac80211.
This results in a command being sent to the uCode even if
the client was not asleep.

The following simple patch has fixed the issue for me without any
degradation that I can find.
Signed-off-by: default avatarDaniel Halperin <dhalperi@cs.washington.edu>
Acked-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarReinette Chatre <reinette.chatre@intel.com>
parent 1dbfd9d4
...@@ -3007,6 +3007,8 @@ static void iwl_mac_sta_notify(struct ieee80211_hw *hw, ...@@ -3007,6 +3007,8 @@ static void iwl_mac_sta_notify(struct ieee80211_hw *hw,
break; break;
case STA_NOTIFY_AWAKE: case STA_NOTIFY_AWAKE:
WARN_ON(!sta_priv->client); WARN_ON(!sta_priv->client);
if (!sta_priv->asleep)
break;
sta_priv->asleep = false; sta_priv->asleep = false;
sta_id = iwl_find_station(priv, sta->addr); sta_id = iwl_find_station(priv, sta->addr);
if (sta_id != IWL_INVALID_STATION) if (sta_id != IWL_INVALID_STATION)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment