rt2x00: Optimize TX descriptor memory layout
authorIvo van Doorn <[email protected]>
Thu, 3 Mar 2011 18:42:58 +0000 (19:42 +0100)
committerJohn W. Linville <[email protected]>
Fri, 4 Mar 2011 19:06:47 +0000 (14:06 -0500)
Some fields only need to be u8 and for ifs and txop we can use the
already available enums.

Acked-by: Gertjan van Wingerde <[email protected]>
Signed-off-by: Helmut Schaa <[email protected]>
Signed-off-by: Ivo van Doorn <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
drivers/net/wireless/rt2x00/rt2x00queue.h

index 3305520464403a2d77997921b94ec21d8e6d5be0..3fa2406af7008914778029c93936e47eb1a1bda0 100644 (file)
@@ -315,17 +315,17 @@ struct txentry_desc {
 
                struct {
                        u16 mcs;
-                       u16 stbc;
-                       u16 ba_size;
-                       u16 mpdu_density;
-                       short txop;
+                       u8 stbc;
+                       u8 ba_size;
+                       u8 mpdu_density;
+                       enum txop txop;
                } ht;
        } u;
 
        u16 rate_mode;
 
        short retry_limit;
-       short ifs;
+       enum ifs ifs;
 
        enum cipher cipher;
        u16 key_idx;