diff mbox series

[07/13] wcn36xx: Flag WIPHY_WOWLAN_MAGIC_PKT

Message ID 20201228162839.369156-8-bryan.odonoghue@linaro.org
State New
Headers show
Series wcn36xx: Enable downstream consistent Wake on Lan | expand

Commit Message

Bryan O'Donoghue Dec. 28, 2020, 4:28 p.m. UTC
Set a flag to indicate magic packet wakeup support on wcn36xx.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>

---
 drivers/net/wireless/ath/wcn36xx/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.29.2


_______________________________________________
wcn36xx mailing list
wcn36xx@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/wcn36xx

Comments

Kalle Valo Jan. 11, 2021, 11:38 a.m. UTC | #1
Bryan O'Donoghue <bryan.odonoghue@linaro.org> writes:

> Set a flag to indicate magic packet wakeup support on wcn36xx.

>

> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>

> ---

>  drivers/net/wireless/ath/wcn36xx/main.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

>

> diff --git a/drivers/net/wireless/ath/wcn36xx/main.c

> b/drivers/net/wireless/ath/wcn36xx/main.c

> index 579bb7f4db9c..cfa2e2d20a20 100644

> --- a/drivers/net/wireless/ath/wcn36xx/main.c

> +++ b/drivers/net/wireless/ath/wcn36xx/main.c

> @@ -173,7 +173,7 @@ static struct ieee80211_supported_band wcn_band_5ghz = {

>  #ifdef CONFIG_PM

>  

>  static const struct wiphy_wowlan_support wowlan_support = {

> -	.flags = WIPHY_WOWLAN_ANY

> +	.flags = WIPHY_WOWLAN_ANY | WIPHY_WOWLAN_MAGIC_PKT

>  };


Shouldn't this be the last patch so that we don't enable the feature
until it's fully implemented? This makes a difference when doing a
bisect, for example.

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Bryan O'Donoghue Jan. 11, 2021, 11:49 a.m. UTC | #2
On 11/01/2021 11:38, Kalle Valo wrote:
> Bryan O'Donoghue <bryan.odonoghue@linaro.org> writes:

> 

>> Set a flag to indicate magic packet wakeup support on wcn36xx.

>>

>> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>

>> ---

>>   drivers/net/wireless/ath/wcn36xx/main.c | 2 +-

>>   1 file changed, 1 insertion(+), 1 deletion(-)

>>

>> diff --git a/drivers/net/wireless/ath/wcn36xx/main.c

>> b/drivers/net/wireless/ath/wcn36xx/main.c

>> index 579bb7f4db9c..cfa2e2d20a20 100644

>> --- a/drivers/net/wireless/ath/wcn36xx/main.c

>> +++ b/drivers/net/wireless/ath/wcn36xx/main.c

>> @@ -173,7 +173,7 @@ static struct ieee80211_supported_band wcn_band_5ghz = {

>>   #ifdef CONFIG_PM

>>   

>>   static const struct wiphy_wowlan_support wowlan_support = {

>> -	.flags = WIPHY_WOWLAN_ANY

>> +	.flags = WIPHY_WOWLAN_ANY | WIPHY_WOWLAN_MAGIC_PKT

>>   };

> 

> Shouldn't this be the last patch so that we don't enable the feature

> until it's fully implemented? This makes a difference when doing a

> bisect, for example.

> 


Sure, I'll add the flags from the subsequent patch and stack on-top so 
the enable is the last patch for magic packet and gtk rekey

_______________________________________________
wcn36xx mailing list
wcn36xx@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/wcn36xx
diff mbox series

Patch

diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c
index 579bb7f4db9c..cfa2e2d20a20 100644
--- a/drivers/net/wireless/ath/wcn36xx/main.c
+++ b/drivers/net/wireless/ath/wcn36xx/main.c
@@ -173,7 +173,7 @@  static struct ieee80211_supported_band wcn_band_5ghz = {
 #ifdef CONFIG_PM
 
 static const struct wiphy_wowlan_support wowlan_support = {
-	.flags = WIPHY_WOWLAN_ANY
+	.flags = WIPHY_WOWLAN_ANY | WIPHY_WOWLAN_MAGIC_PKT
 };
 
 #endif