From 7cebfd0059b951f7a0118f8b9082591a2fc69b51 Mon Sep 17 00:00:00 2001 From: meijian Date: Wed, 22 Nov 2023 20:41:31 +0800 Subject: [PATCH] [wireless][header] Normalize IOCTL id Signed-off-by: meijian --- include/nuttx/wireless/wireless.h | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/include/nuttx/wireless/wireless.h b/include/nuttx/wireless/wireless.h index 53b16e333d..2aadd94c76 100644 --- a/include/nuttx/wireless/wireless.h +++ b/include/nuttx/wireless/wireless.h @@ -140,16 +140,6 @@ #define SIOCSIWPMKSA _WLIOC(0x0036) /* PMKSA cache operation */ -/* Country code extension */ - -#define SIOCSIWCOUNTRY _WLIOC(0x0037) /* Set country code */ -#define SIOCGIWCOUNTRY _WLIOC(0x0038) /* Get country code */ - -/* WIFI / BT coexist type */ - -#define SIOCSIWPTAPRIO _WLIOC(0x0039) /* Set PTA priority type */ -#define SIOCGIWPTAPRIO _WLIOC(0x003a) /* Get PTA priority type */ - /* -------------------- DEV PRIVATE IOCTL LIST -------------------- */ /* These 32 ioctl are wireless device private, for 16 commands. @@ -159,6 +149,27 @@ */ #define SIOCIWFIRSTPRIV _WLIOC(0x00e0) + +/* DTIM extension */ + +#define SIOCSIWDTIM (SIOCIWFIRSTPRIV + 0) /* Set DTIM interval time */ +#define SIOCGIWDTIM (SIOCIWFIRSTPRIV + 1) /* Get DTIM interval time */ + +/* power save mode extension */ + +#define SIOCSIWPWSAVE (SIOCIWFIRSTPRIV + 2) /* Set power save mode */ +#define SIOCGIWPWSAVE (SIOCIWFIRSTPRIV + 3) /* Get power save mode */ + +/* Country code extension */ + +#define SIOCSIWCOUNTRY (SIOCIWFIRSTPRIV + 4) /* Set country code */ +#define SIOCGIWCOUNTRY (SIOCIWFIRSTPRIV + 5) /* Get country code */ + +/* WIFI / BT coexist type */ + +#define SIOCSIWPTAPRIO (SIOCIWFIRSTPRIV + 6) /* Set PTA priority type */ +#define SIOCGIWPTAPRIO (SIOCIWFIRSTPRIV + 7) /* Get PTA priority type */ + #define SIOCIWLASTPRIV _WLIOC(0x00ff) /* ------------------------- IOCTL STUFF ------------------------- */