mbox series

[v3,0/4] Introduce Automated Frequency Coordination (AFC) support

Message ID cover.1710588454.git.lorenzo@kernel.org
Headers show
Series Introduce Automated Frequency Coordination (AFC) support | expand

Message

lorenzo@kernel.org March 16, 2024, 11:35 a.m. UTC
Introduce Automated Frequency Coordination (AFC) support for UNII-5 and UNII-7
6GHz bands.
Update Transmit Power Envelope (TPE) IE according to the reply from AFC
coordinator on UNII-5 or UNII-7 6GHz bands.
AFCD and AFC hostapd client are tested with AFC DUT Test Harness [0].

Changes since v2:
- multiple fixes testing with AFC DUT Test Harness
Changes since v1:
- use unix socket instead of a tcp one
Changes since rfc:
- move curl connection to a dedicated afc daemon

Lorenzo Bianconi (4):
  hostapd: afcd: add AFC daemon support
  hostapd: export hostapd_is_usable_chans utility routine
  hostapd: ap: add AFC client support
  hostapd: update TPE IE according to AFC

 afc/.gitignore        |   1 +
 afc/Makefile          |  31 ++
 afc/afcd.c            | 292 ++++++++++++++
 hostapd/Makefile      |   6 +
 hostapd/config_file.c | 262 ++++++++++++
 hostapd/defconfig     |   3 +
 hostapd/hostapd.conf  |  42 ++
 src/ap/afc.c          | 918 ++++++++++++++++++++++++++++++++++++++++++
 src/ap/ap_config.c    |  16 +
 src/ap/ap_config.h    |  47 +++
 src/ap/hostapd.c      |  99 +++++
 src/ap/hostapd.h      |  31 ++
 src/ap/hw_features.c  |   4 +-
 src/ap/hw_features.h  |   6 +
 src/ap/ieee802_11.c   |  47 ++-
 15 files changed, 1786 insertions(+), 19 deletions(-)
 create mode 100644 afc/.gitignore
 create mode 100644 afc/Makefile
 create mode 100644 afc/afcd.c
 create mode 100644 src/ap/afc.c

Comments

Krishna Chaitanya March 26, 2024, 8:45 p.m. UTC | #1
On Sat, Mar 16, 2024 at 5:09 PM Lorenzo Bianconi <lorenzo@kernel.org> wrote:
>
> Introduce Automated Frequency Coordination (AFC) support for UNII-5 and UNII-7
> 6GHz bands.
> Update Transmit Power Envelope (TPE) IE according to the reply from AFC
> coordinator on UNII-5 or UNII-7 6GHz bands.
> AFCD and AFC hostapd client are tested with AFC DUT Test Harness [0].
This relies on the Quicktrack agent being installed and run (hopefully
doesn't need a full setup),
so, should we consider adding a basic harness within hostapd itself
that can send responses
based on user input (templates)?

This makes it easier to test without relying on 3rd part components.
lorenzo@kernel.org March 27, 2024, 2:33 p.m. UTC | #2
On Mar 27, Krishna Chaitanya wrote:
> On Sat, Mar 16, 2024 at 5:09 PM Lorenzo Bianconi <lorenzo@kernel.org> wrote:
> >
> > Introduce Automated Frequency Coordination (AFC) support for UNII-5 and UNII-7
> > 6GHz bands.
> > Update Transmit Power Envelope (TPE) IE according to the reply from AFC
> > coordinator on UNII-5 or UNII-7 6GHz bands.
> > AFCD and AFC hostapd client are tested with AFC DUT Test Harness [0].
> This relies on the Quicktrack agent being installed and run (hopefully
> doesn't need a full setup),
> so, should we consider adding a basic harness within hostapd itself
> that can send responses
> based on user input (templates)?
> 
> This makes it easier to test without relying on 3rd part components.

Hi Krishna,

in order to test the afc support I think you can just run a simple tcp server
(e.g using nc) replying with a 'static' reply from the afc coordinator. Please
find attached the one I used during the development.
Implementing the full logic of the Quicktrack agent is out of the series scope.

Regards,
Lorenzo
Krishna Chaitanya March 27, 2024, 6:37 p.m. UTC | #3
On Wed, Mar 27, 2024 at 8:03 PM Lorenzo Bianconi <lorenzo@kernel.org> wrote:
>
> On Mar 27, Krishna Chaitanya wrote:
> > On Sat, Mar 16, 2024 at 5:09 PM Lorenzo Bianconi <lorenzo@kernel.org> wrote:
> > >
> > > Introduce Automated Frequency Coordination (AFC) support for UNII-5 and UNII-7
> > > 6GHz bands.
> > > Update Transmit Power Envelope (TPE) IE according to the reply from AFC
> > > coordinator on UNII-5 or UNII-7 6GHz bands.
> > > AFCD and AFC hostapd client are tested with AFC DUT Test Harness [0].
> > This relies on the Quicktrack agent being installed and run (hopefully
> > doesn't need a full setup),
> > so, should we consider adding a basic harness within hostapd itself
> > that can send responses
> > based on user input (templates)?
> >
> > This makes it easier to test without relying on 3rd part components.
>
> Hi Krishna,
>
> in order to test the afc support I think you can just run a simple tcp server
> (e.g using nc) replying with a 'static' reply from the afc coordinator. Please
> find attached the one I used during the development.
Thanks, this is what I was looking for. IMHO, we should check-in this
file as well
as a reference somewhere or probably a hwsim test.
> Implementing the full logic of the Quicktrack agent is out of the series scope.
Got that.