freebsd-dev/sys/dev/wtap
En-Wei Wu c0b65123d0 wtap: Implement IBSS mode on wtap(4)
For TSF and beacon generation, each STA has to start its local TSF timer
and sends beacon frames when it reaches the state IEEE80211_S_RUN.
The TSF timer will be used for IBSS merge and beacon frame transmission.

The TSF timer is kept in the HAL of wtap(4). It is working by
continuously updating its value on timer interrupt simulated
by callout_reset().

When receiving beacons, the STA will be merged into the IBSS if
- the STA has the same SSID as the beacon sender
- the STA's TSF timer is smaller than the beacon sender's TSF timer.

After the merging process, the younger STA will be in the IBSS
created by the older STA and the younger STA stops sending beacon
frames.  So beacon frames will always be sent by the oldest STA
in IBSS.

Sponsored by:	Google, Inc. (GSoC 2022)
Reviewed By:	lwhsu, adrian
Differential Revision: https://reviews.freebsd.org/D35841
2022-08-15 16:35:36 +00:00
..
plugins
wtap_hal wtap: Implement IBSS mode on wtap(4) 2022-08-15 16:35:36 +00:00
if_medium.c
if_medium.h
if_wtap_module.c Remove store-only variable and unnecessary bzero() 2022-06-29 20:02:01 +08:00
if_wtap.c wtap: Implement IBSS mode on wtap(4) 2022-08-15 16:35:36 +00:00
if_wtapioctl.h
if_wtapvar.h wtap: Implement IBSS mode on wtap(4) 2022-08-15 16:35:36 +00:00