]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: return the vif's chandef in ieee80211_cfg_get_channel()
authorLuciano Coelho <luciano.coelho@intel.com>
Tue, 30 Sep 2014 04:08:02 +0000 (07:08 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 9 Oct 2014 09:01:58 +0000 (11:01 +0200)
commitf515d9ad02d82484d694f4e91a1b1cacc192afdf
tree9b0377342751c5a907a51a1e3e337d547811160b
parent2145b60bcf330ec3ecf3183e31e33e0f5965580f
mac80211: return the vif's chandef in ieee80211_cfg_get_channel()

The chandef of the channel context a vif is using may be different
than the chandef of the vif itself.  For instance, the bandwidth used
by the vif may be narrower than the one configured in the channel
context.  To avoid confusion, return the vif's chandef in
ieee80211_cfg_get_channel() instead of the chandef of the channel
context.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c