cfg80211: fix warning when using WEXT for IBSS
authorBruno Randolf <br1@einfach.org>
Thu, 26 Sep 2013 15:55:28 +0000 (16:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Nov 2013 03:05:31 +0000 (12:05 +0900)
commite83301f88258e3f204392cf59b0ffd706a051a26
tree55428113c5fd1b0cd7f9f5f42b2de804f075a7f8
parentfc756d89ff073a9c7fb8e4788fa63705d3d8f2a2
cfg80211: fix warning when using WEXT for IBSS

commit f478f33a93f9353dcd1fe55445343d76b1c3f84a upstream.

Fix kernel warning when using WEXT for configuring ad-hoc mode,
e.g.  "iwconfig wlan0 essid test channel 1"

WARNING: at net/wireless/chan.c:373 cfg80211_chandef_usable+0x50/0x21c [cfg80211]()

The warning is caused by an uninitialized variable center_freq1.

Signed-off-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/wireless/ibss.c