mac80211: remove duplicate check in ieee80211_rx_mgmt_beacon().
PATCH 1/1 mac80211: remove duplicate check in ieee80211_rx_mgmt_beacon().
This patch removes a duplicate identical check in ieee80211_rx_mgmt_beacon(), mlme.c. There is no need to make again the same check for IEEE80211_HW_PS_NULLFUNC_STACK flag. It should be done in the same block.
Signed-off-by Rami Rosen <[email protected]>
--- net/mac80211/mlme.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
net/mac80211/mlme.c +1 -3
@@ -2564,11 +2564,9 @@ static void ieee80211_rx_mgmt_beacon(struct ieee80211_sub_if_data *sdata, len - baselen, &elems, care_about_ies, ncrc); -if (local->hw.flags &IEEE80211_HW_PS_NULLFUNC_STACK ) +if (local->hw.flags &IEEE80211_HW_PS_NULLFUNC_STACK ) { directed_tim =ieee80211_check_tim (elems.tim, elems.tim_len, ifmgd->aid); - -if (local->hw.flags &IEEE80211_HW_PS_NULLFUNC_STACK ) {if (directed_tim) {if (local->hw.conf.dynamic_ps_timeout >0 ) {if (local->hw.conf.flags &IEEE80211_CONF_PS ) {
Signature · 1 line
1.7.11.4
Quoted 3 lines · Rami Rosen
This patch removes a duplicate identical check in
ieee80211_rx_mgmt_beacon(),mlme.c. There is no need to make again the same check forIEEE80211_HW_PS_NULLFUNC_STACKflag. It should be done in the same block.
Applied.
johannes