diff options
author | Ilan Peer <ilan.peer@intel.com> | 2014-04-23 02:22:58 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-04-25 10:47:33 -0400 |
commit | 46d537245d8db96a4c282b449f8b582a71e5ec13 (patch) | |
tree | 3c3517409796cdbe24ae1541c9c8e63de8b03148 /net/wireless | |
parent | bc3ce0b0be6b85e738e80ed25b52ad940f34b921 (diff) |
cfg80211: Fix GO Concurrent relaxation on UNII-3
At some locations, channels 149-165 are considered a single
bundle, while at some other locations, e.g., Indonesia, channels
149-161 are considered a single bundle, while channel 165 belongs
to a different bundle. This means that:
1. A station interface connection to an AP on channel 165 allows
the instantiation of a P2P GO on channels 149-165.
2. A station interface connection to an AP on channels 149-161
does NOT allow the instantiation of a P2P GO on channel 165.
Fix this.
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/chan.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/net/wireless/chan.c b/net/wireless/chan.c index c61bcdd3dfbc..fb8f6a3c9ec5 100644 --- a/net/wireless/chan.c +++ b/net/wireless/chan.c | |||
@@ -750,8 +750,24 @@ static bool cfg80211_go_permissive_chan(struct cfg80211_registered_device *rdev, | |||
750 | r1 = cfg80211_get_unii(chan->center_freq); | 750 | r1 = cfg80211_get_unii(chan->center_freq); |
751 | r2 = cfg80211_get_unii(other_chan->center_freq); | 751 | r2 = cfg80211_get_unii(other_chan->center_freq); |
752 | 752 | ||
753 | if (r1 != -EINVAL && r1 == r2) | 753 | if (r1 != -EINVAL && r1 == r2) { |
754 | /* | ||
755 | * At some locations channels 149-165 are considered a | ||
756 | * bundle, but at other locations, e.g., Indonesia, | ||
757 | * channels 149-161 are considered a bundle while | ||
758 | * channel 165 is left out and considered to be in a | ||
759 | * different bundle. Thus, in case that there is a | ||
760 | * station interface connected to an AP on channel 165, | ||
761 | * it is assumed that channels 149-161 are allowed for | ||
762 | * GO operations. However, having a station interface | ||
763 | * connected to an AP on channels 149-161, does not | ||
764 | * allow GO operation on channel 165. | ||
765 | */ | ||
766 | if (chan->center_freq == 5825 && | ||
767 | other_chan->center_freq != 5825) | ||
768 | continue; | ||
754 | return true; | 769 | return true; |
770 | } | ||
755 | } | 771 | } |
756 | 772 | ||
757 | return false; | 773 | return false; |