mac80211: adjust initial chandefs assignments in ieee80211_register_hw
authorKarl Beldan <karl.beldan@rivierawaves.com>
Mon, 15 Apr 2013 17:04:06 +0000 (19:04 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 16 Apr 2013 14:01:23 +0000 (16:01 +0200)
commitfffa4b1c170a3cabc58671495b0ae89ded007199
treea084e2ce2622d0bc16317ad99c55a19ed0b4c15d
parentfbd647b17689d584748bad62395cd1161d42d37c
mac80211: adjust initial chandefs assignments in ieee80211_register_hw

I noticed that monitor interfaces by default would start on 5GHz
while STA/AP ones would start 2GHZ - It stems from the fact that
ieee80211_register_hw unnecessarily adjusts the local->monitor_chandef
for each band.

This avoids this and while at it uses a single dflt_chandef to initialize
in one go local->{hw.conf.chandef,_oper_chandef,monitor_chandef}

Signed-off-by: Karl Beldan <karl.beldan@rivierawaves.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/main.c