summaryrefslogtreecommitdiff
path: root/sys/net80211
AgeCommit message (Collapse)Author
2023-06-24Fix typo in comment.msaitoh
2022-11-19ieee80211_input.c: Fix a few debug messagesyamt
2022-10-24Make ifq_drops in struct ifqueue and struct ifaltq 64 bit.msaitoh
2022-03-18net80211: Use getticks(), not hardclock_ticks.riastradh
Less extern in .c this way too.
2022-03-14Additional channel flags.mlelstv
2022-02-16fix various typos, mainly in comments.andvar
2021-09-21don't opencode kauth_cred_get()christos
2021-09-19fix various typos in comments, messages and documentation.andvar
2021-09-03fix typos in comments, mainly s/extention/extension/ and s/sufficent/sufficient/andvar
2021-08-21fix some more typos in comments/log messages, improve wording as well.andvar
2021-07-24Fix all remaining typos, mainly in comments but also in few definitions and ↵andvar
log messages, reported by me in PR kern/54889. Also fixed some additional typos in comments, found on review of same files or typos.
2020-11-30s/ we we / we /msaitoh
2020-11-03Use kmem_* instead of malloc/free and use interrupt versions as themlelstv
code can be called from interrupt.
2020-10-06net80211: Initialise the interface with a decent link state.roy
Link state transitions to UP when a node is joined and DOWN when left. This means that with the interface UP, the link state could be UNKNOWN for a while, implying it can be used in BSS mode. Which is of course false. Add a function to set an initial link state based on the operating mode. Also call this when the operating mode changes. Basically in BSS and MONITOR it starts off down. BSS will transition UP and DOWN as before, MONITOR will stay down. IBSS, AHDEMO and HOSTAP will remain as link unknown because the state is ..... unknown.
2020-07-28Omit now-unused function.riastradh
Ceased to be needed with the AES CCM changes. For some reason gcc didn't complain about this, but clang did.
2020-07-25Convert malloc -> kmem.riastradh
Switch order of members for better alignment. Sort includes.
2020-07-25Convert ieee80211_crypto_ccmp.c to new aes_ccm API.riastradh
This will make it easier to provide better hardware acceleration without fpu enabling/disabling overhead for each block of data.
2020-07-22s/reseting/resetting/msaitoh
2020-07-13i hit an assert in this code but we weren't sure why.mrg
for now, add the ostate and nstate values for further diagnosis to the assert message.
2020-03-15Define and implement a locking protocol for the ifmedia / mii layers:thorpej
- MP-safe drivers provide a mutex to ifmedia that is used to serialize access to media-related structures / hardware regsiters. Converted drivers use the new ifmedia_init_with_lock() function for this. The new name is provided to ease the transition. - Un-converted drivers continue to call ifmedia_init(), which will supply a compatibility lock to be used instead. Several media-related entry points must be aware of this compatibility lock, and are able to acquire it recursively a limited number of times, if needed. This is a SPIN mutex with priority IPL_NET. - This same lock is used to serialize access to PHY registers and other MII-related data structures. The PHY drivers are modified to acquire and release the lock, as needed, and assert the lock is held as a diagnostic aid. The "usbnet" framework has had an overhaul of its internal locking protocols to fit in with the media / mii changes, and the drivers adapted. USB wifi drivers have been changed to provide their own adaptive mutex to the ifmedia later via a new ieee80211_media_init_with_lock() function. This is required because the USB drivers need an adaptive mutex. Besised "usbnet", a few other drivers are converted: vmx, wm, ixgbe / ixv. mcx also now calls ifmedia_init_with_lock() because it needs to also use an adaptive mutex. The mcx driver still needs to be fully converted to NET_MPSAFE.
2020-02-29Fix printf to handle various datatypes for MHLEN.mlelstv
2020-02-240x%p --> %p for non-external codes.rin
2020-02-04Use ifmedia_fini().thorpej
2020-01-29Adopt <net/if_stats.h>.thorpej
2019-12-27s/inital/initial/msaitoh
2019-12-19Avoid changing signedness bit with << 24 in ieee80211_crypto_tkip.ckamil
Reported by <prlw1>
2019-12-19Add comment for previous.jakllsch
2019-12-19Do not associate with with any access point if no SSID has been configured.jakllsch
2019-11-10in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAITchs
and remove code to handle failures that can no longer happen.
2019-10-05remove __packed attribute from struct ieee80211_radiotap_headermrg
and all the structures that include it. this should not change anything while avoiding packed vs alignment warnings from GCC 8, and potentially pessimised code generation due to the packed marker (there are no misaligned members, just that the per-device parts may end unaligned.) all consumers of these members are done from the properly aligned packet members directly, or, as a union with a 64 byte member, also properly aligned. codegen didn't appear to change, except for the definition of sizeof(struct driver_[rt]x_radiotap_header) in debug info, which is not directly used anywhere.
2019-10-03ieee80211_announce: Print supported rates with aprint_debugjmcneill
2019-08-20Include <net/if.h> for IFNAMSIZchristos
2019-05-17 Remove extra OSIOCSIFMEDIA. This old ioctl is converted to new one inmsaitoh
doifioctl().
2019-04-11Fix CVS Idkamil
NFCI
2019-03-01Rename the MODULE_*_HOOK() macros to MODULE_HOOK_*() as brieflypgoyette
discussed on irc. NFCI intended. Ride the earlier kernel bump - it;s getting crowded.
2019-01-29Normalize all the compat hooks' names to the formpgoyette
<subsystem>_<function>_<version>_hook NFCI XXX Note that although this introduces a change in the kernel-to- XXX module interface, we are NOT bumping the kernel version number. XXX We will bump the version number once the interface stabilizes.
2019-01-28- Don't expose random data conversion functions, but expose the high levelchristos
entry point (such as ioctl) instead. - Attempt to autoload the module before using it. Naming: Should the names of the hooks be: <category>_<version>_<function>_hook_t or: <category>_<function>_<version>_hook_t We should make those consistent.
2019-01-27Merge the [pgoyette-compat] branchpgoyette
2018-12-22Replace M_ALIGN and MH_ALIGN by m_align.maxv
2018-12-22Move m_align() back into the kernel, and switch M_ALIGN and MH_ALIGN to it.maxv
Forcing a distinction between M_ALIGN and MH_ALIGN is too bug-friendly and serves no particular purpose.
2018-12-22Replace: M_MOVE_PKTHDR -> m_move_pkthdr. No functional change, since themaxv
former is a macro to the latter.
2018-09-03Rename min/max -> uimin/uimax for better honesty.riastradh
These functions are defined on unsigned int. The generic name min/max should not silently truncate to 32 bits on 64-bit systems. This is purely a name change -- no functional change intended. HOWEVER! Some subsystems have #define min(a, b) ((a) < (b) ? (a) : (b)) #define max(a, b) ((a) > (b) ? (a) : (b)) even though our standard name for that is MIN/MAX. Although these may invite multiple evaluation bugs, these do _not_ cause integer truncation. To avoid `fixing' these cases, I first changed the name in libkern, and then compile-tested every file where min/max occurred in order to confirm that it failed -- and thus confirm that nothing shadowed min/max -- before changing it. I have left a handful of bootloaders that are too annoying to compile-test, and some dead code: cobalt ews4800mips hp300 hppa ia64 luna68k vax acorn32/if_ie.c (not included in any kernels) macppc/if_gm.c (superseded by gem(4)) It should be easy to fix the fallout once identified -- this way of doing things fails safe, and the goal here, after all, is to _avoid_ silent integer truncations, not introduce them. Maybe one day we can reintroduce min/max as type-generic things that never silently truncate. But we should avoid doing that for a while, so that existing code has a chance to be detected by the compiler for conversion to uimin/uimax without changing the semantics until we can properly audit it all. (Who knows, maybe in some cases integer truncation is actually intended!)
2018-06-26 Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backwardmsaitoh
compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same as FreeBSD. This change also fixes a bug that the direction is misunderstand on some environment by passing the direction to bpf_mtap*() instead of checking m->m_pkthdr.rcvif.
2018-06-21remove unused argumentsmaxv
2018-06-21Fix use-after-free, m_cat can free m.maxv
2018-05-08Remove three useless debug messages, remove meaningless XXXs, and removemaxv
ieee80211_note_frame (unused).
2018-05-04Remove duplicate macros. Reported in PR/29786.maxv
2018-05-03Remove ovbcopy from net80211.maxv
2018-04-27Move m_align and m_append into iee80211_netbsd.c. They are part ofmaxv
net80211, and shouldn't be used outside.
2018-04-19s/static inline/static __inline/g for consistency.christos