]> git.ipfire.org Git - thirdparty/linux.git/commit - drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
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)
commitfe0f2de30cc3417794517afe45f57e851b3188ae
treeedea6958b2345e6fdc681cf9a867c72980d7fa78
parentc571573a027bb65ac415141f919df3c0fa0fedb4
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