]> git.karo-electronics.de Git - linux-beck.git/commitdiff
libertas: remove priv->ratebitmap
authorHolger Schurig <holgerschurig@googlemail.com>
Wed, 2 Dec 2009 14:26:04 +0000 (15:26 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 22 Dec 2009 18:44:03 +0000 (13:44 -0500)
Used to be a write-only-variable :-)

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/assoc.c
drivers/net/wireless/libertas/dev.h

index 5f58ae33405b1767db2b67e60e27c83f7a7bf043..5e650f35841545313d160baf4e658d48bb83d2a8 100644 (file)
@@ -390,10 +390,8 @@ int lbs_cmd_802_11_rate_adapt_rateset(struct lbs_private *priv,
        cmd.enablehwauto = cpu_to_le16(priv->enablehwauto);
        cmd.bitmap = lbs_rate_to_fw_bitmap(priv->cur_rate, priv->enablehwauto);
        ret = lbs_cmd_with_response(priv, CMD_802_11_RATE_ADAPT_RATESET, &cmd);
-       if (!ret && cmd_action == CMD_ACT_GET) {
-               priv->ratebitmap = le16_to_cpu(cmd.bitmap);
+       if (!ret && cmd_action == CMD_ACT_GET)
                priv->enablehwauto = le16_to_cpu(cmd.enablehwauto);
-       }
 
        lbs_deb_leave_args(LBS_DEB_CMD, "ret %d", ret);
        return ret;
index cf47cf53458fc1225c5a6c19022d67b2fc5e52f9..d5a9dcae40596b966b0419cb85cbe60468ada958 100644 (file)
@@ -176,7 +176,6 @@ struct lbs_private {
        struct assoc_request * pending_assoc_req;
        struct assoc_request * in_progress_assoc_req;
        uint16_t enablehwauto;
-       uint16_t ratebitmap;
 
        /* ADHOC */
        u16 beacon_period;