]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: Loosen the channel context/phy context coupling
authorIlan Peer <ilan.peer@intel.com>
Thu, 21 Mar 2013 08:23:52 +0000 (10:23 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 13 May 2013 16:15:18 +0000 (18:15 +0200)
commite79eed7978e8edb142b56fadb9e7c9d50955ac78
treeedea6958b2345e6fdc681cf9a867c72980d7fa78
parentfd067e0cc5d61d464e16df8e91424996511a16d2
iwlwifi: mvm: Loosen the channel context/phy context coupling

In current implementation, the phy context is tightly coupled
with the channel context. This complicates the possibility of
using the same phy context for both netdev interfaces and the P2P
Device interface. To loosen this coupling:

1. Manage all the phy contexts in the mvm op mode, and only save
   the phy context id in the chanctx memory.
2. Reference count the phy contexts and free them only when they
   are not longer used (both by mac80211 and P2P Device).

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/mvm/mac80211.c
drivers/net/wireless/iwlwifi/mvm/mvm.h
drivers/net/wireless/iwlwifi/mvm/phy-ctxt.c