[linux-yocto] FW: [PATCH] iwlwifi: mvm: don't allow sched scans without matches to be started

Bruce Ashfield bruce.ashfield at windriver.com
Wed Feb 24 10:10:00 PST 2016


On 2016-02-23 8:56 PM, Zheng, Wu wrote:
> Hi,
>
> Can the maintainer of linux-yocto have a look for the patch?

It helps if you cc' me directly, since I can easily miss these
otherwise.

It looks reasonable, but do you have a link to the usptream
submission of the patch ? I'd like to have that in the commit
header, so I can drop it when uprev'ing the kernel in the
future.

Having that link, means I can easily track its progress.

Bruce

>
> Any comments?
> Thanks.
>
> Best Regards
> Zheng Wu
>
>> -----Original Message-----
>> From: Zheng, Wu
>> Sent: Friday, February 19, 2016 2:36 PM
>> To: linux-yocto at yoctoproject.org
>> Cc: Zheng, Wu <wu.zheng at intel.com>; Coelho, Luciano
>> <luciano.coelho at intel.com>; Grumbach, Emmanuel
>> <emmanuel.grumbach at intel.com>
>> Subject: [PATCH] iwlwifi: mvm: don't allow sched scans without matches to be
>> started
>>
>> The firmware can perform a scheduled scan with not matchsets passed, but it
>> can't send notification that results were found.  Since the userspace then
>> cannot know when we got new results and the firmware wouldn't trigger a wake
>> in case we are sleeping, it's better not to allow scans without matchsets.
>>
>> This fixes https://bugzilla.kernel.org/show_bug.cgi?id=110831
>>
>> upstream status: in the process of merging
>>
>> Signed-off-by: Luca Coelho <luciano.coelho at intel.com>
>> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach at intel.com>
>> Signed-off-by: Wu Zheng <wu.zheng at intel.com>
>> ---
>> drivers/net/wireless/iwlwifi/mvm/mac80211.c | 4 ++++
>> 1 file changed, 4 insertions(+)
>>
>> diff --git a/drivers/net/wireless/iwlwifi/mvm/mac80211.c
>> b/drivers/net/wireless/iwlwifi/mvm/mac80211.c
>> index 9779c1e..90e8b66 100644
>> --- a/drivers/net/wireless/iwlwifi/mvm/mac80211.c
>> +++ b/drivers/net/wireless/iwlwifi/mvm/mac80211.c
>> @@ -2797,6 +2797,10 @@ static int iwl_mvm_mac_sched_scan_start(struct
>> ieee80211_hw *hw,
>> 	struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw);
>> 	int ret;
>>
>> +	/* we don't support "match all" in the firmware */
>> +	if (!req->n_match_sets)
>> +		return -EOPNOTSUPP;
>> +
>> 	if (!(mvm->fw->ucode_capa.capa[0] &
>> IWL_UCODE_TLV_CAPA_UMAC_SCAN)) {
>> 		ret = iwl_mvm_cancel_scan_wait_notif(mvm, IWL_MVM_SCAN_OS);
>> 		if (ret)
>> --
>> 2.1.4
>



More information about the linux-yocto mailing list