All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mac80211_hwsim: report the WIPHY_FLAG_SUPPORTS_5_10_MHZ capability
@ 2020-05-15 16:46 Ramon Fontes
  2020-05-25  8:47 ` Johannes Berg
  0 siblings, 1 reply; 5+ messages in thread
From: Ramon Fontes @ 2020-05-15 16:46 UTC (permalink / raw)
  To: linux-kernel, netdev, linux-wireless; +Cc: johannes, kvalo, davem, Ramon Fontes

Signed-off-by: Ramon Fontes <ramonreisfontes@gmail.com>
---
 drivers/net/wireless/mac80211_hwsim.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index 0528d4cb4..67f97ac36 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -2995,6 +2995,7 @@ static int mac80211_hwsim_new_radio(struct genl_info *info,
 	hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_TDLS |
 			    WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL |
 			    WIPHY_FLAG_AP_UAPSD |
+                            WIPHY_FLAG_SUPPORTS_5_10_MHZ |
 			    WIPHY_FLAG_HAS_CHANNEL_SWITCH;
 	hw->wiphy->features |= NL80211_FEATURE_ACTIVE_MONITOR |
 			       NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE |
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] mac80211_hwsim: report the WIPHY_FLAG_SUPPORTS_5_10_MHZ capability
  2020-05-15 16:46 [PATCH] mac80211_hwsim: report the WIPHY_FLAG_SUPPORTS_5_10_MHZ capability Ramon Fontes
@ 2020-05-25  8:47 ` Johannes Berg
  2020-05-26 11:36   ` Ramon Fontes
  0 siblings, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2020-05-25  8:47 UTC (permalink / raw)
  To: Ramon Fontes, linux-kernel, netdev, linux-wireless; +Cc: kvalo, davem

On Fri, 2020-05-15 at 13:46 -0300, Ramon Fontes wrote:
> Signed-off-by: Ramon Fontes <ramonreisfontes@gmail.com>
> ---
>  drivers/net/wireless/mac80211_hwsim.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
> index 0528d4cb4..67f97ac36 100644
> --- a/drivers/net/wireless/mac80211_hwsim.c
> +++ b/drivers/net/wireless/mac80211_hwsim.c
> @@ -2995,6 +2995,7 @@ static int mac80211_hwsim_new_radio(struct genl_info *info,
>  	hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_TDLS |
>  			    WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL |
>  			    WIPHY_FLAG_AP_UAPSD |
> +                            WIPHY_FLAG_SUPPORTS_5_10_MHZ |

Not sure this is enough? How about wmediumd, for example?

And also, 5/10 MHz has many more channels inbetween the normal ones, no?
Shouldn't those also be added?

johannes


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] mac80211_hwsim: report the WIPHY_FLAG_SUPPORTS_5_10_MHZ capability
  2020-05-25  8:47 ` Johannes Berg
@ 2020-05-26 11:36   ` Ramon Fontes
  2020-05-27  7:54     ` Johannes Berg
  0 siblings, 1 reply; 5+ messages in thread
From: Ramon Fontes @ 2020-05-26 11:36 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-kernel, netdev, linux-wireless, kvalo, davem

> Not sure this is enough? How about wmediumd, for example?

It works with wmediumd too. At least I was able to enable 5 / 10MHz
via iw with 5.9GHz

> And also, 5/10 MHz has many more channels inbetween the normal ones, no?
> Shouldn't those also be added?

Tested with 5855MHz - 5925MHz

--
Ramon

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] mac80211_hwsim: report the WIPHY_FLAG_SUPPORTS_5_10_MHZ capability
  2020-05-26 11:36   ` Ramon Fontes
@ 2020-05-27  7:54     ` Johannes Berg
  2020-05-27 19:14       ` Ramon Fontes
  0 siblings, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2020-05-27  7:54 UTC (permalink / raw)
  To: Ramon Fontes; +Cc: linux-kernel, netdev, linux-wireless, kvalo, davem

On Tue, 2020-05-26 at 08:36 -0300, Ramon Fontes wrote:
> > Not sure this is enough? How about wmediumd, for example?
> 
> It works with wmediumd too. At least I was able to enable 5 / 10MHz
> via iw with 5.9GHz

Yeah, but wmediumd won't know that it's not 20 MHz, I guess :-)

> > And also, 5/10 MHz has many more channels inbetween the normal ones, no?
> > Shouldn't those also be added?
> 
> Tested with 5855MHz - 5925MHz

Yeah, but which channels? I believe with 10 MHz you can also use channel
175, for example, which doesn't exist in 20 MHz channelization.

Anyway, I've applied it now, we can fix more later.

johannes


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] mac80211_hwsim: report the WIPHY_FLAG_SUPPORTS_5_10_MHZ capability
  2020-05-27  7:54     ` Johannes Berg
@ 2020-05-27 19:14       ` Ramon Fontes
  0 siblings, 0 replies; 5+ messages in thread
From: Ramon Fontes @ 2020-05-27 19:14 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-kernel, netdev, linux-wireless, kvalo, davem

> Yeah, but wmediumd won't know that it's not 20 MHz, I guess :-)

Yes, I know. You're right! I hope advances in wmediumd in this regard :).

> Yeah, but which channels? I believe with 10 MHz you can also use channel
> 175, for example, which doesn't exist in 20 MHz channelization.

I'm doing some research with 802.11p and I could use all the channels
between 171 and 185 with both 5 and 10MHz.

> Anyway, I've applied it now, we can fix more later.
Thanks!


Ramon

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-05-27 19:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-15 16:46 [PATCH] mac80211_hwsim: report the WIPHY_FLAG_SUPPORTS_5_10_MHZ capability Ramon Fontes
2020-05-25  8:47 ` Johannes Berg
2020-05-26 11:36   ` Ramon Fontes
2020-05-27  7:54     ` Johannes Berg
2020-05-27 19:14       ` Ramon Fontes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.