mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-07 23:28:55 +00:00
mac80211: rename 'sta_inf' variable to more common 'sta'
We typically use 'sta' for the station info struct, and if needed 'pubsta' for the public (driver-visible) portion thereof. Do this in the ieee80211_sta_ps_transition() function. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
5c48f12017
commit
cf47161ad2
1 changed files with 6 additions and 6 deletions
|
@ -1240,22 +1240,22 @@ static void sta_ps_end(struct sta_info *sta)
|
||||||
ieee80211_sta_ps_deliver_wakeup(sta);
|
ieee80211_sta_ps_deliver_wakeup(sta);
|
||||||
}
|
}
|
||||||
|
|
||||||
int ieee80211_sta_ps_transition(struct ieee80211_sta *sta, bool start)
|
int ieee80211_sta_ps_transition(struct ieee80211_sta *pubsta, bool start)
|
||||||
{
|
{
|
||||||
struct sta_info *sta_inf = container_of(sta, struct sta_info, sta);
|
struct sta_info *sta = container_of(pubsta, struct sta_info, sta);
|
||||||
bool in_ps;
|
bool in_ps;
|
||||||
|
|
||||||
WARN_ON(!ieee80211_hw_check(&sta_inf->local->hw, AP_LINK_PS));
|
WARN_ON(!ieee80211_hw_check(&sta->local->hw, AP_LINK_PS));
|
||||||
|
|
||||||
/* Don't let the same PS state be set twice */
|
/* Don't let the same PS state be set twice */
|
||||||
in_ps = test_sta_flag(sta_inf, WLAN_STA_PS_STA);
|
in_ps = test_sta_flag(sta, WLAN_STA_PS_STA);
|
||||||
if ((start && in_ps) || (!start && !in_ps))
|
if ((start && in_ps) || (!start && !in_ps))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
if (start)
|
if (start)
|
||||||
sta_ps_start(sta_inf);
|
sta_ps_start(sta);
|
||||||
else
|
else
|
||||||
sta_ps_end(sta_inf);
|
sta_ps_end(sta);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue