From: Johannes Berg Date: Mon, 2 Nov 2009 12:32:03 +0000 (+0100) Subject: cfg80211: validate scan channels X-Git-Tag: v2.6.33-rc1~388^2~449^2~87 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=584991dccfd347cd2e1675ab262998f6c335d3c0;p=pandora-kernel.git cfg80211: validate scan channels Currently it is possible to request a scan on only disabled channels, which could be problematic for some drivers. Reject such scans, and also ignore disabled channels that are given. This resuls in the scan begin/end event only including channels that are actually used. This makes the mac80211 check for disabled channels superfluous. At the same time, remove the no-IBSS check from mac80211 -- nothing says that we should not find any networks on channels that cannot be used for an IBSS, even when operating in IBSS mode. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed