]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: add a new mvm reference type for RX data
authorLuca Coelho <luciano.coelho@intel.com>
Wed, 30 Mar 2016 12:05:56 +0000 (15:05 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 10 May 2016 19:14:51 +0000 (22:14 +0300)
commitc416e302cb4c439c2f69551c7e54e53fdfd5df41
treec0669b448196e2d818763d8cc9ac1e53968a8ae3
parent4a1fa3abf288a3cc59d812098840cbdfb8efce1f
iwlwifi: mvm: add a new mvm reference type for RX data

When a data packet is received, we need to make sure that we stay
awake until it can be processed and wait a while before trying to
enter runtime_suspend os system_suspend again.  To do so, add a new
reference type for RX data and take the reference when sending the
packet to mac80211.  We only do this for data packets, all the other
RX packets sent by the firmware (e.g. notifications) are not a reason
to prevent suspend.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/intel/iwlwifi/mvm/rx.c