From: Jouni Malinen Date: Thu, 11 Dec 2014 21:48:55 +0000 (+0200) Subject: cfg80211: Fix 160 MHz channels with 80+80 and 160 MHz drivers X-Git-Tag: omap-for-v3.20/drop-legacy-3517~36^2^2~6 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08f6f147773b23b765b94633a8eaa82e7defcf4c;p=pandora-kernel.git cfg80211: Fix 160 MHz channels with 80+80 and 160 MHz drivers The VHT supported channel width field is a two bit integer, not a bitfield. cfg80211_chandef_usable() was interpreting it incorrectly and ended up rejecting 160 MHz channel width if the driver indicated support for both 160 and 80+80 MHz channels. Cc: stable@vger.kernel.org (3.16+) Fixes: 3d9d1d6656a73 ("nl80211/cfg80211: support VHT channel configuration") (however, no real drivers had 160 MHz support it until 3.16) Signed-off-by: Jouni Malinen Signed-off-by: Johannes Berg --- Reading git-diff-tree failed