rt2x00: Use an enum instead of u16 for the rate_mode TX descriptor field
authorHelmut Schaa <helmut.schaa@googlemail.com>
Thu, 3 Mar 2011 18:44:10 +0000 (19:44 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 4 Mar 2011 19:06:48 +0000 (14:06 -0500)
This makes the code less error-prone.

Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00queue.h

index 7f8528da03e49c6561ca204792a6215b4d680e78..0c8b0c6996799348f46710af9952920ed52e8434 100644 (file)
@@ -323,7 +323,7 @@ struct txentry_desc {
                } ht;
        } u;
 
-       u16 rate_mode;
+       enum rate_modulation rate_mode;
 
        short retry_limit;