From b476c68ac329f01e4081b2e20b274d422e7a82ab Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Thu, 23 Jun 2022 14:39:06 +0800 Subject: [PATCH] wireless: add SIOCGIWCOUNTRY (Get country code) Signed-off-by: chao.an --- include/nuttx/wireless/wireless.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/nuttx/wireless/wireless.h b/include/nuttx/wireless/wireless.h index 66628a39e23..efd80dfaa82 100644 --- a/include/nuttx/wireless/wireless.h +++ b/include/nuttx/wireless/wireless.h @@ -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) */