From: Eliad Peller Date: Mon, 18 Nov 2013 17:06:46 +0000 (+0200) Subject: mac80211: fix connection polling X-Git-Tag: v4.14-rc1~8303^2~4^2^2~2^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=12b5f34d2d5934e998975bbae4e29f81d94052f6;p=platform%2Fkernel%2Flinux-rpi.git mac80211: fix connection polling Commit 392b9ff ("mac80211: change beacon/connection polling") removed the IEEE80211_STA_BEACON_POLL flag. However, it accidentally removed the setting of IEEE80211_STA_CONNECTION_POLL, making the connection polling completely useless (the flag is always clear, so the result is never being checked). Fix it. Signed-off-by: Eliad Peller Acked-by: Stanislaw Gruszka Signed-off-by: Johannes Berg --- diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index d7504ab..b3a3ce3 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -1910,6 +1910,8 @@ static void ieee80211_mgd_probe_ap(struct ieee80211_sub_if_data *sdata, if (ifmgd->flags & IEEE80211_STA_CONNECTION_POLL) already = true; + ifmgd->flags |= IEEE80211_STA_CONNECTION_POLL; + mutex_unlock(&sdata->local->mtx); if (already)