orinoco: prefer_port3 can be a single bit
authorDavid Kilroy <kilroyd@googlemail.com>
Wed, 5 Aug 2009 20:23:27 +0000 (21:23 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 14 Aug 2009 13:12:41 +0000 (09:12 -0400)
This is a boolean value set based on firmware capabilities, so move the
variable to the capabilities section and reduce the structure size.

Signed-off-by: David Kilroy <kilroyd@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/orinoco/orinoco.h

index 5f4f5c9eef79ba79dc8e83fac19f4b0d2c5237ec..2a4eef1b96ccd6d2deda09219fb107e8ad4b7f0d 100644 (file)
@@ -107,10 +107,10 @@ struct orinoco_private {
        unsigned int do_fw_download:1;
        unsigned int broken_disableport:1;
        unsigned int broken_monitor:1;
+       unsigned int prefer_port3:1;
 
        /* Configuration paramaters */
        enum nl80211_iftype iw_mode;
-       int prefer_port3;
        u16 encode_alg, wep_restrict, tx_key;
        struct orinoco_key keys[ORINOCO_MAX_KEYS];
        int bitratemode;