Skip to content

Commit

Permalink
[wireless][header] Normalize IOCTL id
Browse files Browse the repository at this point in the history
Signed-off-by: meijian <[email protected]>
  • Loading branch information
Meissi-jian committed Aug 21, 2024
1 parent 0ad63dc commit 9e4b783
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 64 deletions.
31 changes: 21 additions & 10 deletions include/nuttx/wireless/wireless.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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 ------------------------- */
Expand Down
54 changes: 0 additions & 54 deletions include/nuttx/wireless/wireless_priv.h

This file was deleted.

0 comments on commit 9e4b783

Please sign in to comment.