All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Muna Sinada <quic_msinada@quicinc.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [RFC 4/4] wifi: mac80211: Handle RU Puncturing information
Date: Thu, 19 Jan 2023 16:40:46 +0100	[thread overview]
Message-ID: <4ce75ba96bcfe5cd35f524d881124cb0defdb6aa.camel@sipsolutions.net> (raw)
In-Reply-To: <1670006154-6092-5-git-send-email-quic_msinada@quicinc.com>

On Fri, 2022-12-02 at 10:35 -0800, Muna Sinada wrote:
> Handle RU Puncturing information received from user space.
> RU Puncturing bitmap is initially received during
> ieee80211_change_iface() and stored. During AP chanwidth setting,
> the bitmap is validated. In addition driver is notified of new bitmap
> value.


"initially" is a bit of a problem, right?


> @@ -213,6 +213,12 @@ static int ieee80211_change_iface(struct wiphy *wiphy,
>  	struct sta_info *sta;
>  	int ret;
>  
> +	sdata->vif.bss_conf.ru_punct_bitmap = params->ru_punct_bitmap;
> +	sdata->vif.bss_conf.ru_punct_bitmap_supp_he = params->ru_punct_bitmap_supp_he;

I mean this can happen at any point in time due to the way you've wired
it up in nl80211 (which I'm not happy about), and then ... it just gets
ignored.

> +	if (!sdata->vif.bss_conf.ru_punct_bitmap)
> +		sdata_dbg(sdata, "RU Puncturing Bitmap was not set by user\n");
> +

?

> @@ -1251,6 +1257,8 @@ static int ieee80211_start_ap(struct wiphy *wiphy, struct net_device *dev,
>  	prev_beacon_int = link_conf->beacon_int;
>  	link_conf->beacon_int = params->beacon_interval;
>  
> +	sdata->vif.bss_conf.ru_punct_bitmap = dev->ieee80211_ptr->ru_punct_bitmap;

Why grab only one of them here? In fact why grab them at all?

I think you really need to work on the API here.

Also this completely ignores links ... so it's wrong for that too. Must
use link_conf->...

johannes

      reply	other threads:[~2023-01-19 15:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-02 18:35 [RFC 0/4] Static RU Puncturing Muna Sinada
2022-12-02 18:35 ` [RFC 1/4] wifi: nl80211: advertise RU puncturing support to userspace Muna Sinada
2022-12-14  8:02   ` Kalle Valo
2023-01-19 15:31   ` Johannes Berg
2022-12-02 18:35 ` [RFC 2/4] wifi: cfg80211: RU puncturing bitmap Muna Sinada
2023-01-19 15:34   ` Johannes Berg
2022-12-02 18:35 ` [RFC 3/4] wifi: nl80211: validate " Muna Sinada
2023-01-19 15:37   ` Johannes Berg
2023-01-20  0:42     ` Aloka Dixit
2023-01-20  9:20       ` Johannes Berg
2023-01-23 18:28         ` Aloka Dixit
2022-12-02 18:35 ` [RFC 4/4] wifi: mac80211: Handle RU Puncturing information Muna Sinada
2023-01-19 15:40   ` Johannes Berg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4ce75ba96bcfe5cd35f524d881124cb0defdb6aa.camel@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=quic_msinada@quicinc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.