carl9170 firmware: fix use of uninitialized value
authorChristian Lamparter <chunkeey@googlemail.com>
Sun, 10 Jul 2011 16:45:59 +0000 (18:45 +0200)
committerChristian Lamparter <chunkeey@googlemail.com>
Sun, 10 Jul 2011 16:45:59 +0000 (18:45 +0200)
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
carlfw/src/cmd.c

index 4b246f1eb6fa793f36b8c67c8895e42c762d5b6b..9e37f5429e2bef6d7956556f23d17855e96daa38 100644 (file)
@@ -111,7 +111,7 @@ void handle_cmd(struct carl9170_rsp *resp)
                        set(AR9170_MAC_REG_BCN_CTRL, AR9170_BCN_CTRL_READY);
                } else {
                        wlan_cab_flush_queue(cmd->bcn_ctrl.vif_id);
-                       fw.wlan.cab_flush_trigger[i] = CARL9170_CAB_TRIGGER_EMPTY;
+                       fw.wlan.cab_flush_trigger[cmd->bcn_ctrl.vif_id] = CARL9170_CAB_TRIGGER_EMPTY;
                }
                break;
 #endif /* CONFIG_CARL9170FW_CAB_QUEUE */