wtap: Fix typos in kernel messages- s/cant/can't/(cherry picked from commit 026520a5f2d2ec01e19494c37b87448df86ef21a)
sys: Remove $FreeBSD$: two-line .h patternRemove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of BSD-2-Clause.Discussed with: pfgMFC After: 3 daysSponsored by: Netflix
show more ...
wtap: Implement IBSS mode on wtap(4)For TSF and beacon generation, each STA has to start its local TSF timerand sends beacon frames when it reaches the state IEEE80211_S_RUN.The TSF timer will be
wtap: Implement IBSS mode on wtap(4)For TSF and beacon generation, each STA has to start its local TSF timerand 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 bycontinuously updating its value on timer interrupt simulatedby 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 IBSScreated by the older STA and the younger STA stops sending beaconframes. So beacon frames will always be sent by the oldest STAin IBSS.Sponsored by: Google, Inc. (GSoC 2022)Reviewed By: lwhsu, adrianDifferential Revision: https://reviews.freebsd.org/D35841
wtap(4): Rename interface nameThe original interface created by wtap is named "wlan%d", which is thesame as the name of the vap created by wlan(4) and cause ifconfig(8)may output like this:
wtap(4): Rename interface nameThe original interface created by wtap is named "wlan%d", which is thesame as the name of the vap created by wlan(4) and cause ifconfig(8)may output like this: wlan0: parent interface: wlan0Rename the interface created by wtap(4) to "wtap%d" to avoid confusing.Reviewed by: adrianSponsored by: Google, Inc. (GSoC 2022)Differential Revision: https://reviews.freebsd.org/D35751
Remove store-only variable and unnecessary bzero()- Remove the variable set but not used to fix build on -CURRENT- Remove bzero() on the space malloc'd with M_ZERO flag.Signed-off-by: En-Wei Wu
Remove store-only variable and unnecessary bzero()- Remove the variable set but not used to fix build on -CURRENT- Remove bzero() on the space malloc'd with M_ZERO flag.Signed-off-by: En-Wei Wu <[email protected]>Sponsored by: Google, Inc. (GSoC 2022)Differential Revision: https://reviews.freebsd.org/D35624
wtap: clean up empty lines in .c and .h files
sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - error
sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.
Make net80211 drivers supply their device name to the net80211 layer, sothat the latter doesn't need to go through struct ifnet to get their name.Sponsored by: NetflixSponsored by: Nginx, Inc.
Introduce wtap, the beginnings of a net80211 wlan simulator.This introduces:* a basic wtap interface* a HAL, which implements an abstraction layer for implementing different device behavious;
Introduce wtap, the beginnings of a net80211 wlan simulator.This introduces:* a basic wtap interface* a HAL, which implements an abstraction layer for implementing different device behavious;* A visibility plugin, which allows for control over which nodes see other nodes (useful for mesh work.)It doesn't yet implement sta/adhoc/hostap modes but these are quitefeasible to implement.Monthadar uses it to do 802.11s mesh verification.The userland tools will be committed in a follow-up commit.Submitted by: Monthadar Al Jaberi <[email protected]>