From: Christian Lamparter Date: Sun, 10 Jul 2011 16:45:59 +0000 (+0200) Subject: carl9170 firmware: fix use of uninitialized value X-Git-Tag: 1.9.5~48 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=904914f47c3b6974622cba176c6e9fb76b5f06e5;p=carl9170fw.git carl9170 firmware: fix use of uninitialized value Signed-off-by: Christian Lamparter --- diff --git a/carlfw/src/cmd.c b/carlfw/src/cmd.c index 4b246f1..9e37f54 100644 --- a/carlfw/src/cmd.c +++ b/carlfw/src/cmd.c @@ -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 */