]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: fix warning when using WEXT for IBSS
authorBruno Randolf <br1@einfach.org>
Thu, 26 Sep 2013 15:55:28 +0000 (16:55 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 26 Sep 2013 17:43:14 +0000 (19:43 +0200)
commitaa662b27196ef0f4c35af16170e8407fbf657d28
tree20ef1869e1dd53f689e64126799a183c8a8f572c
parentf0bc9ffda1611313a6378cd4323e1806815a4602
cfg80211: fix warning when using WEXT for IBSS

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.

Cc: stable@vger.kernel.org
Signed-off-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/ibss.c