]> 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)
commit6622e4861decb7d75bee6ebbb29af92e8320992e
treeedea6958b2345e6fdc681cf9a867c72980d7fa78
parent648ac3492c4f2e28380067ed83dd47f7192e6c0d
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