]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: improve find_chanctx() for reservations
authorMichal Kazior <michal.kazior@tieto.com>
Wed, 9 Apr 2014 13:29:28 +0000 (15:29 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 25 Apr 2014 15:08:30 +0000 (17:08 +0200)
commit305b040b89fa2bb7a1d0778b7d8c684d9a488120
treec8f8c9646b67aab923271c7cc9322439de3e1ef0
parentf5cb6480385740f7fb8bd72f54e6792093b4eabc
mac80211: improve find_chanctx() for reservations

This allows new vifs to be assigned to a chanctx
as long as chanctx's reservation chandefs (if any)
and chanctx's current chandef (implied by assigned
vifs at the time, if any) and the new vif chandef
are all compatible.

This implies it is impossible to assign a new vif
to an in-place reservation chanctx.

This gives no advantages for single-channel
hardware. It makes sense for multi-channel
hardware only.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/chan.c