]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: Allow P2P Device to use an existing PHY context
authorIlan Peer <ilan.peer@intel.com>
Tue, 2 Apr 2013 07:25:46 +0000 (10:25 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 13 May 2013 16:16:33 +0000 (18:16 +0200)
commitd106bb8e7454c739ae29432101b5d703e298a1ee
treea6efd2b15f665ee577fc86fe19414a61db9b0723
parent7e5c6f69a9b3bbe006244d561a220b051d616291
iwlwifi: mvm: Allow P2P Device to use an existing PHY context

The patch is an optimization, that eliminates unnecessary binding
context switching and allows the P2P Device MAC to use the same channel
as an existing netdev interface.

For each ROC call, check if there is already a channel/phy context that
can be used for the P2P Device. If such channel is found, unbind
the P2P Device from its current phy context, and bind it to the already
used channel/phy context. In case that the phy context is shared,
and there is a need to change it, create a new phy context, unbind and
create a new binding.

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