Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54afc799 authored by Johannes Berg's avatar Johannes Berg Committed by Lior David
Browse files

cfg80211: fix beacon interval in interface combination iteration



We shouldn't abort the iteration with an error when one of the
potential combinations can't accomodate the beacon interval
request, we should just skip that particular combination. Fix
the code to do so.

CRs-Fixed: 1087922
Change-Id: Ib1ae7221291b8176d61d58e756a3814c80d98d27
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git


Git-commit: 0507a3ac6e98f50583912ec78d07c2e4daaf2b28
[liord@codeaurora.org: cherry-pick without changes]
Signed-off-by: default avatarLior David <liord@codeaurora.org>
parent 9a27bdb5
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1600,10 +1600,8 @@ int cfg80211_iter_combinations(struct wiphy *wiphy,

		if (params->beacon_int_gcd) {
			if (c->beacon_int_min_gcd &&
			    params->beacon_int_gcd < c->beacon_int_min_gcd) {
				kfree(limits);
				return -EINVAL;
			}
			    params->beacon_int_gcd < c->beacon_int_min_gcd)
				goto cont;
			if (!c->beacon_int_min_gcd &&
			    params->beacon_int_different)
				goto cont;