From: Eliad Peller Date: Wed, 3 Sep 2014 12:25:03 +0000 (+0300) Subject: cfg80211: avoid duplicate entries on regdomain intersection X-Git-Tag: fixes-against-v3.18-rc2~144^2~144^2~50^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a62a1aed3733d7ec6489adca4c2f69881d78cfd6;p=pandora-kernel.git cfg80211: avoid duplicate entries on regdomain intersection The regdom intersection code simply tries intersecting each rule of the source with each rule of the target. Since the resulting intersections are not observed as a whole, this can result in multiple overlapping/duplicate entries. Make the rule addition a bit more smarter, by looking for rules that can be contained within other rules, and adding only extended ones. Signed-off-by: Eliad Peller Signed-off-by: Emmanuel Grumbach Signed-off-by: Johannes Berg --- Reading git-diff-tree failed