wireless: add SIOCGIWCOUNTRY (Get country code)

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an
2022-06-23 21:48:08 +08:00
committed by Xiang Xiao
parent ba1b8d0712
commit b476c68ac3
+4 -2
View File
@@ -142,11 +142,13 @@
/* Country code extension */
#define SIOCSIWCOUNTRY _WLIOC(0x0037) /* Country code extension */
#define SIOCSIWCOUNTRY _WLIOC(0x0037) /* Set country code */
#define SIOCGIWCOUNTRY _WLIOC(0x0038) /* Get country code */
#define WL_IS80211POINTERCMD(cmd) ((cmd) == SIOCGIWSCAN || \
(cmd) == SIOCSIWSCAN || \
(cmd) == SIOCSIWCOUNTRY || \
(cmd) == SIOCGIWCOUNTRY || \
(cmd) == SIOCGIWRANGE || \
(cmd) == SIOCSIWENCODEEXT || \
(cmd) == SIOCGIWENCODEEXT || \
@@ -156,7 +158,7 @@
/* Device-specific network IOCTL commands *******************************************/
#define WL_NETFIRST 0x0000 /* First network command */
#define WL_NNETCMDS 0x0038 /* Number of network commands */
#define WL_NNETCMDS 0x0039 /* Number of network commands */
/* Reserved for Bluetooth network devices (see bt_ioctls.h) */