From: John W. Linville Date: Fri, 22 Jun 2012 18:39:53 +0000 (-0400) Subject: Merge branch 'for-john' of git://git.sipsolutions.net/mac80211-next X-Git-Tag: v3.6-rc1~125^2~57^2~248 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=133189a46c2c522eb4ef26b1ede63dd0a9fdc920;p=platform%2Fkernel%2Flinux-stable.git Merge branch 'for-john' of git://git.sipsolutions.net/mac80211-next --- 133189a46c2c522eb4ef26b1ede63dd0a9fdc920 diff --cc net/mac80211/mlme.c index 079038d,2b450f5..8149a37 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@@ -3100,9 -3100,9 +3100,9 @@@ static int ieee80211_prep_connection(st } local->oper_channel = cbss->channel; - ieee80211_hw_config(local, 0); + ieee80211_hw_config(local, IEEE80211_CONF_CHANGE_CHANNEL); - if (!have_sta) { + if (sta) { u32 rates = 0, basic_rates = 0; bool have_higher_than_11mbit; int min_rate = INT_MAX, min_rate_index = -1;