]> 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)
commit868812da6f75776353f91f0a5c058f978a972205
treec8f8c9646b67aab923271c7cc9322439de3e1ef0
parent8b1a2a24ba25b47a20f737cdb209e30fae125e33
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