cfg80211: pass a channel definition struct
authorJohannes Berg <johannes.berg@intel.com>
Thu, 8 Nov 2012 20:25:48 +0000 (21:25 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 26 Nov 2012 11:42:58 +0000 (12:42 +0100)
commit683b6d3b31a51956ea540df00abb0b78894924c1
tree558e0f316b56368ab259755cb4eeaeb40331853d
parentfe4b31810c06cc6518fb193efb9b3c3289b55832
cfg80211: pass a channel definition struct

Instead of passing a channel pointer and channel type
to all functions and driver methods, pass a new channel
definition struct. Right now, this struct contains just
the control channel and channel type, but for VHT this
will change.

Also, add a small inline cfg80211_get_chandef_type() so
that drivers don't need to use the _type field of the
new structure all the time, which will change.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
20 files changed:
drivers/net/wireless/ath/ath6kl/cfg80211.c
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
drivers/net/wireless/libertas/cfg.c
drivers/net/wireless/mwifiex/cfg80211.c
drivers/net/wireless/orinoco/cfg.c
drivers/net/wireless/rndis_wlan.c
include/net/cfg80211.h
net/mac80211/cfg.c
net/mac80211/ibss.c
net/wireless/chan.c
net/wireless/core.h
net/wireless/ibss.c
net/wireless/mesh.c
net/wireless/mlme.c
net/wireless/nl80211.c
net/wireless/nl80211.h
net/wireless/rdev-ops.h
net/wireless/trace.h
net/wireless/wext-compat.c
net/wireless/wext-sme.c