Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <eliad@wizery.com>
Acked-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Eliad Peller and committed by
Johannes Berg
12b5f34d cdb1b805

+2
+2
net/mac80211/mlme.c
··· 1910 1910 if (ifmgd->flags & IEEE80211_STA_CONNECTION_POLL) 1911 1911 already = true; 1912 1912 1913 + ifmgd->flags |= IEEE80211_STA_CONNECTION_POLL; 1914 + 1913 1915 mutex_unlock(&sdata->local->mtx); 1914 1916 1915 1917 if (already)