freebsd-skq/sbin/ifconfig
Andriy Voskoboinyk b628bdccce ifconfig: set by default FCC regulatory domain for wireless interfaces.
Change default regulatory domain from DEBUG (no limitations;
exposes all device channels) to FCC; as a result, newly created wireless
interface with default settings will have less chances to violate
country-specific regulations.

This change will not affect drivers with pre-initialized regdomain
structure (currentry ath(4) and mwl(4)); in that case, the default
channel list must correspond to the default regdomain / country setting.

You can switch to another regdomain / country via corresponding
ifconfig(8) options; the driver must implement ic_getradiocaps()
method to restore full channel list.

Full country / regdomain list may be obtained via
'ifconfig <iface> list countries' command.

Example: change country to Germany:
ifconfig wlan0 down	# all wlans on the device must be down
ifconfig wlan0 country DE
ifconfig wlan0 up
# wpa_supplicant(8), dhclient(8) etc

At the creation time:
ifconfig wlan0 create wlandev wpi0 country DE

To make changes permanent add the following line to the rc.conf(5):
create_args_wlan0="country DE"

Tested with
 - Intel 3945BG (wpi(4)).
 - WUSB54GC (rum(4)).

Reviewed by:	adrian
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D6228
2016-05-26 13:14:08 +00:00
..
tests Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
af_inet6.c Use strlcpy() instead of strncpy() when copying ifname to ensure 2016-05-16 00:25:24 +00:00
af_inet.c Use strlcpy() instead of strncpy() when copying ifname to ensure 2016-05-16 00:25:24 +00:00
af_link.c
af_nd6.c Use strlcpy() instead of strncpy() when copying ifname to ensure 2016-05-16 00:25:24 +00:00
carp.c Replace N #defines with nitems to simplify ifconfig code slightly 2015-09-27 07:51:18 +00:00
ifbridge.c Use nitems() from sys/param.h. 2016-04-19 04:42:34 +00:00
ifclone.c Use strlcpy() instead of strncpy() when copying ifname to ensure 2016-05-16 00:25:24 +00:00
ifconfig.8 Add sysctl to control LACP strict compliance default 2015-11-06 15:33:27 +00:00
ifconfig.c Use strlcpy() instead of strncpy() when copying ifname to ensure 2016-05-16 00:25:24 +00:00
ifconfig.h ifconfig(8): can't use 'name' or 'description' when creating interface with auto numbering 2016-02-20 11:36:35 +00:00
iffib.c Use strlcpy() instead of strncpy() when copying ifname to ensure 2016-05-16 00:25:24 +00:00
ifgif.c - Remove GIF_{SEND,ACCEPT}_REVETHIP. 2015-09-10 05:59:39 +00:00
ifgre.c Use strlcpy() instead of strncpy() when copying ifname to ensure 2016-05-16 00:25:24 +00:00
ifgroup.c Replace N #defines with nitems to simplify ifconfig code slightly 2015-09-27 07:51:18 +00:00
ifieee80211.c ifconfig: set by default FCC regulatory domain for wireless interfaces. 2016-05-26 13:14:08 +00:00
iflagg.c Use nitems() from sys/param.h. 2016-04-19 04:42:34 +00:00
ifmac.c Use strlcpy() instead of strncpy() when copying ifname to ensure 2016-05-16 00:25:24 +00:00
ifmedia.c Use strlcpy() instead of strncpy() when copying ifname to ensure 2016-05-16 00:25:24 +00:00
ifpfsync.c Replace N #defines with nitems to simplify ifconfig code slightly 2015-09-27 07:51:18 +00:00
ifvlan.c Replace N #defines with nitems to simplify ifconfig code slightly 2015-09-27 07:51:18 +00:00
ifvxlan.c Replace N #defines with nitems to simplify ifconfig code slightly 2015-09-27 07:51:18 +00:00
Makefile Explicitly add more files to the 'runtime' package. 2016-02-09 20:19:31 +00:00
Makefile.depend META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
sfp.c Use macro MIN() from sys/param.h. 2016-04-27 02:02:44 +00:00