All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Aloka Dixit <quic_alokad@quicinc.com>, linux-wireless@vger.kernel.org
Subject: Re: [PATCH 2/3] cfg80211: validate RU puncturing bitmap
Date: Thu, 12 Oct 2023 13:53:45 +0200	[thread overview]
Message-ID: <9fd4a3097e078c1fe2acd5fbd0c559b0390daa49.camel@sipsolutions.net> (raw)
In-Reply-To: <58fdd62041c0388740cabea5a421c5417f959124.camel@sipsolutions.net>

Hi Aloka, all,

Reviving an ancient thread, but this is where we discussed these things
last I think ...

So I said, back at the beginning of 2022:

> > > Conceptually, I'm wondering if it really belongs into the chandef? Can
> > > you explain why it's part of the channel configuration? If you've got
> > > two chandefs with the same control channel, CCFS and bandwidth, but
> > > different puncturing, does it really make sense to treat them as two
> > > separate channel contexts, e.g. in mac80211? It seems strange to do
> > > that.


And you replied two things:

> > Added it here so that any command working with chandef will be updated 
> > without any other change.
> > Example: During channel switch, user can provide a puncturing bitmap 
> > with a new option I added in userspace, and because it is part of 
> > chandef, the same code path validates it for that command automatically.
> 
> Yeah but is it really a CSA/chanswitch if the puncturing changes? I
> don't think so?

Which, well, I think I was confused about - it could we CSA/chanswitch
depending on what you actually want to do, i.e. it's up to the AP to do
this as just a puncturing bitmap update in the beacon, or with CSA. It
might do one way or the other depending on what it wants...


But also, I read this as being a bit more about the software POV, which
I didn't really think was the most important part.


And also, you said:

> > Regarding if different puncturing pattern should be considered as a new 
> > context - yes, depending on if it is HE or non-HE mode, the new bitmap 
> > may be invalid and the operation should fail.

Which I'm not sure I understood then, and certainly not sure I
understand now, but I said:

> That wasn't really the question though. Consider this:
> 
> Say you have STA + STA, if the first STA is connected to an AP with no
> puncturing, and the second STA is connected to an AP where the channel
> and bandwidth are the same, but some puncturing is done, should that
> really be two channel contexts as far as mac80211 is concerned, and thus
> require channels=2 in the interface combinations etc.? It doesn't seem
> right to me.
> 
> Or consider AP + STA, where the AP is set up for some channel but the
> STA is connecting to an AP on the exact same channel, but with
> puncturing... Again, same thing, I don't think it should consume two
> channel resources.

Which, actually, I've learned since that I was completely wrong about!
It should, and likely must, in fact be two separate channel contexts,
with all the limitations that implies.

The thing is - back then I was making not just one, but in fact *two*
wrong assumptions:

   1. The DSP/radio can receive punctured PPDUs if listening on the non
      punctured channel.
      
      At least for our device that's not true, not sure about ath12k? It
      seems you have a per-peer puncturing configuration even, but that
      seems odd, and it's always just set to the vif puncturing
      configuration.
      
   2. You can simply transmit punctured PPDUs when on a non-punctured
      channel, i.e. it's just a rate control decision.
      
      This is perhaps less important, but it's also not really true.
      While you can clearly _transmit_ this way, that's not the only
      thing - you also need to do the CCA before transmitting, and if
      there's noise/interference on the punctured channel, you'd much
      more rarely find the channel to be clear and be able to transmit
      if this doesn't consider the puncturing, but that's something to
      do sort of generally in the background for the transmit.

It might be possible to work around #2, but I'm not sure it's possible
to work around #1?


So I think I have two questions:
   A. Would you object if I moved the puncturing into the chandef after
      all?
      
   B. How does ath12k cope #1/#2 above? Would we need to have a callback
      to the driver to compare if two channel contexts are compatible or
      not (e.g. if they have different puncturing), or does ath12k also
      have limitations on RX/TX that mean it would actually prefer two
      channel contexts for the cases I had outlined in the quoted text
      above (STA+STA/AP+STA)?

Thanks,
johannes

  reply	other threads:[~2023-10-12 11:56 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-14 22:30 [PATCH 0/3] RU puncturing support Aloka Dixit
2022-02-14 22:30 ` [PATCH 1/3] nl80211: advertise RU puncturing support to userspace Aloka Dixit
2022-02-15  8:20   ` Johannes Berg
2022-02-14 22:30 ` [PATCH 2/3] cfg80211: validate RU puncturing bitmap Aloka Dixit
2022-02-15  8:19   ` Johannes Berg
2022-02-16  0:37     ` Aloka Dixit
2022-02-22 18:31       ` Aloka Dixit
2022-05-04 12:08       ` Johannes Berg
2023-10-12 11:53         ` Johannes Berg [this message]
2023-10-12 12:13           ` Johannes Berg
2023-10-17 17:51           ` Aloka Dixit
2023-10-18 12:58             ` Johannes Berg
2023-10-19  0:09               ` Aloka Dixit
2023-11-08 12:58                 ` Johannes Berg
2023-11-08 14:31                   ` Johannes Berg
2022-02-14 22:30 ` [PATCH 3/3] nl80211: " Aloka Dixit

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=9fd4a3097e078c1fe2acd5fbd0c559b0390daa49.camel@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=quic_alokad@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.