mac80211: Be more careful when changing channels.
authorBen Greear <greearb@candelatech.com>
Fri, 28 Jan 2011 18:20:47 +0000 (10:20 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 3 Feb 2011 21:38:26 +0000 (16:38 -0500)
commiteeabee7e53f6fb5e63027519982b19616e8f166e
treea614d9ac017bed033d14505fe47d938ae307c27a
parent75abde4d193fe300a2c1d3ee7f632eb777aa48b2
mac80211: Be more careful when changing channels.

If we cannot set the channel type, set the channel back to the
original.

Don't update the driver hardware if nothing actually changed.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/cfg.c