freebsd-nq/sys
Adrian Chadd 24034ddb3e Reset the channel to the first available channel if the interface
is configured on a channel that isn't valid in the new operating mode.

This isn't strictly true - it should find the first channel that is
available for the given operating mode.

However, I think defaulting to the first channel is fine - it's typically
available for all modes.

If someone would like to correctly implement this feature - try to
find a channel that is valid for the given operating mode and error
out if we can't find one.

This prevents various NICs (eg wpi(4)) from throwing a firmware error.

Tested:

* ath(4), STA/AP mode
* iwn(4), STA/adhoc mode

PR:		kern/202502
Submitted by:	Andriy Voskoboinyk <s3erios@gmail.com>
2015-08-23 01:17:52 +00:00
..
amd64 preload_search_info: make sure mod is set 2015-08-21 15:57:57 +00:00
arm preload_search_info: make sure mod is set 2015-08-21 15:57:57 +00:00
arm64 Add the kernel support for minidumps on arm64. 2015-08-20 12:49:56 +00:00
boot The flags -mno-aes -mno-avx only exist for clang, not gcc, so 2015-08-20 18:31:05 +00:00
bsm
cam Remove some code duplication by using biofinish(). 2015-08-22 15:58:35 +00:00
cddl try to fix lor between z_teardown_lock and spa_namespace_lock 2015-08-21 08:17:44 +00:00
compat Don't forget to invoke pre_execve() and post_execve(). 2015-08-17 13:07:12 +00:00
conf Make the UMA harvesting go away completely if not wanted. Default to "not wanted". 2015-08-22 12:59:05 +00:00
contrib Add support for the arrays in nvlist library. 2015-08-15 06:34:49 +00:00
crypto const'ify an arg that we don't update... 2015-07-29 23:37:15 +00:00
ddb Make kstack_pages a tunable on arm, x86, and powepc. On i386, the 2015-08-10 17:18:21 +00:00
dev Make the UMA harvesting go away completely if not wanted. Default to "not wanted". 2015-08-22 12:59:05 +00:00
fs For the case where an NFSv4.1 ExchangeID operation has the client identifier 2015-08-14 22:02:14 +00:00
gdb CALLOUT_MPSAFE has lost its meaning since r141428, i.e., for more than ten 2015-05-22 17:05:21 +00:00
geom Create a RouterBoard platform and use it to create a flash map 2015-08-22 05:50:18 +00:00
gnu Using consistent coding style to deal with error inside the loop. 2015-08-18 13:16:23 +00:00
i386 preload_search_info: make sure mod is set 2015-08-21 15:57:57 +00:00
isa
kern preload_search_info: make sure mod is set 2015-08-21 15:57:57 +00:00
kgssapi
libkern Remove checks for __ARM_EABI__, we only build for EABI now. 2015-07-09 21:02:40 +00:00
mips preload_search_info: make sure mod is set 2015-08-21 15:57:57 +00:00
modules fix standalone build of zfs module 2015-08-21 08:06:18 +00:00
net Add ALTQ(9) support for the CoDel algorithm. 2015-08-21 22:02:22 +00:00
net80211 Reset the channel to the first available channel if the interface 2015-08-23 01:17:52 +00:00
netgraph * Address review (and add a bit myself). 2015-07-12 18:14:38 +00:00
netinet * Split allocation and table linking for lle's. 2015-08-20 12:05:17 +00:00
netinet6 * Split allocation and table linking for lle's. 2015-08-20 12:05:17 +00:00
netipsec Make IPsec work with AES-GCM and AES-ICM (aka CTR) in OCF... IPsec 2015-08-04 17:47:11 +00:00
netnatm
netpfil Add ALTQ(9) support for the CoDel algorithm. 2015-08-21 22:02:22 +00:00
netsmb
nfs
nfsclient Remove some oldnfs remnants. 2015-04-18 16:08:06 +00:00
nfsserver
nlm
ofed Reinstate unify_tcp_port_space and associated code that was lost during 2015-08-12 22:09:58 +00:00
opencrypto Make IPsec work with AES-GCM and AES-ICM (aka CTR) in OCF... IPsec 2015-08-04 17:47:11 +00:00
pc98 Remove unused i386 header privatespace.h. For the native kernel, its 2015-08-07 05:59:58 +00:00
powerpc Follow up to r287014 2015-08-22 07:27:06 +00:00
rpc Set curvnet context inside the RPC code in more places. 2015-08-18 18:12:46 +00:00
security fd: make 'rights' a manadatory argument to fget* functions 2015-07-05 19:05:16 +00:00
sparc64 Rationalize BSD license on sys/*/include/in_cksum.h 2015-08-05 19:05:12 +00:00
sys Make the UMA harvesting go away completely if not wanted. Default to "not wanted". 2015-08-22 12:59:05 +00:00
teken Don't truncate cursor arithmetic to 16 bits. 2015-08-21 06:30:13 +00:00
tools
ufs - Make 'struct buf *buf' private to vfs_bio.c. Having a global variable 2015-07-29 02:26:57 +00:00
vm Make the UMA harvesting go away completely if not wanted. Default to "not wanted". 2015-08-22 12:59:05 +00:00
x86 preload_search_info: make sure mod is set 2015-08-21 15:57:57 +00:00
xdr
xen xen: allow disabling PV disks and nics 2015-08-21 15:53:08 +00:00
Makefile Kill EoL whitespace. 2015-05-29 14:03:07 +00:00