]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: make mgmt_tx accept a NULL channel
authorAntonio Quartulli <antonio@open-mesh.com>
Tue, 11 Jun 2013 12:20:00 +0000 (14:20 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 11 Jun 2013 13:01:24 +0000 (15:01 +0200)
commit33aa284c2e0b071749650087e3fc62a43af45610
tree279ba9442b1f9538ac89d5af4fd742caccaeaf36
parent0962cca9d25a2de08fa463cdadad38f2eac7c8d6
mac80211: make mgmt_tx accept a NULL channel

cfg80211 passes a NULL channel to mgmt_tx if the frame has
to be sent on the one currently in use by the device.
Make the implementation of mgmt_tx correctly handle this
case. Fail if offchan is required.

Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
[fix RCU locking]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c