From: Johannes Berg Date: Wed, 28 Mar 2012 08:58:36 +0000 (+0200) Subject: mac80211: set HT channel before association X-Git-Tag: v3.5-rc1~109^2~487^2^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24398e39c8ee4a9d9123eed322b859ece4d16cac;p=pandora-kernel.git mac80211: set HT channel before association Changing the channel type during operation is confusing to some drivers and will be hard to handle in multi-channel scenarios. Instead of changing the channel, set it to the right HT channel before authenticating/associating and don't change it -- just update the 20/40 MHz restrictions in rate control as needed when changed by the AP. This also fixes a problem that Paul missed in his fix for the "regulatory makes us deaf" issue -- when we couldn't use 40 MHz we still associated saying we were using 40 MHz, which could in similarly broken APs make us never even connect successfully. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed