提交 90d13e8f 编写于 作者: J Johannes Berg

mac80211: reduce indentation by inlining a check

Instead of nesting two if statements, inline the second
check into the first if statement and to indentation.
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
上级 50f36ae6
...@@ -3437,11 +3437,8 @@ static void ieee80211_rx_mgmt_beacon(struct ieee80211_sub_if_data *sdata, ...@@ -3437,11 +3437,8 @@ static void ieee80211_rx_mgmt_beacon(struct ieee80211_sub_if_data *sdata,
len - baselen, false, &elems, len - baselen, false, &elems,
care_about_ies, ncrc); care_about_ies, ncrc);
if (ieee80211_hw_check(&local->hw, PS_NULLFUNC_STACK)) { if (ieee80211_hw_check(&local->hw, PS_NULLFUNC_STACK) &&
bool directed_tim = ieee80211_check_tim(elems.tim, ieee80211_check_tim(elems.tim, elems.tim_len, ifmgd->aid)) {
elems.tim_len,
ifmgd->aid);
if (directed_tim) {
if (local->hw.conf.dynamic_ps_timeout > 0) { if (local->hw.conf.dynamic_ps_timeout > 0) {
if (local->hw.conf.flags & IEEE80211_CONF_PS) { if (local->hw.conf.flags & IEEE80211_CONF_PS) {
local->hw.conf.flags &= ~IEEE80211_CONF_PS; local->hw.conf.flags &= ~IEEE80211_CONF_PS;
...@@ -3463,7 +3460,6 @@ static void ieee80211_rx_mgmt_beacon(struct ieee80211_sub_if_data *sdata, ...@@ -3463,7 +3460,6 @@ static void ieee80211_rx_mgmt_beacon(struct ieee80211_sub_if_data *sdata,
ieee80211_send_pspoll(local, sdata); ieee80211_send_pspoll(local, sdata);
} }
} }
}
if (sdata->vif.p2p) { if (sdata->vif.p2p) {
struct ieee80211_p2p_noa_attr noa = {}; struct ieee80211_p2p_noa_attr noa = {};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册