wireless: wext: shorten struct iw_ioctl_description
authorJohannes Berg <johannes.berg@intel.com>
Mon, 7 Oct 2024 20:00:03 +0000 (22:00 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 8 Oct 2024 19:54:14 +0000 (21:54 +0200)
There's no need for "future" extensions in an internal
struct, and we don't need a u32 for flags, use just a
u8. Also remove the unused IW_DESCR_FLAG_WAIT flag.

Link: https://patch.msgid.link/20241007220003.309bd52fa763.I9a1229fa7f2be53d4f50e63671ed441d0968bb41@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/iw_handler.h

index 804587b7592b2ef6ec1f688c326906eed6b928a8..c9b46b99619747984061d58d822f09580ecc9c98 100644 (file)
 #define IW_DESCR_FLAG_RESTRICT 0x0004  /* GET : request is ROOT only */
                                /* SET : Omit payload from generated iwevent */
 #define IW_DESCR_FLAG_NOMAX    0x0008  /* GET : no limit on request size */
-/* Driver level flags */
-#define IW_DESCR_FLAG_WAIT     0x0100  /* Wait for driver event */
 
 /****************************** TYPES ******************************/
 
@@ -373,11 +371,10 @@ struct iw_handler_def {
  */
 struct iw_ioctl_description {
        __u8    header_type;            /* NULL, iw_point or other */
-       __u8    token_type;             /* Future */
+       __u8    flags;                  /* Special handling of the request */
        __u16   token_size;             /* Granularity of payload */
        __u16   min_tokens;             /* Min acceptable token number */
        __u16   max_tokens;             /* Max acceptable token number */
-       __u32   flags;                  /* Special handling of the request */
 };
 
 /* Need to think of short header translation table. Later. */