driver_nl80211: Initialize local variable
authorMichael Bernhard <michael.bernhard@bfh.ch>
Sun, 13 Apr 2008 09:39:13 +0000 (12:39 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 13 Apr 2008 09:39:13 +0000 (12:39 +0300)
This solves the problem with out-of-sync ACK messages.

Signed-off-by: Michael Bernhard <michael.bernhard at bfh.ch>
hostapd/driver_nl80211.c

index 0a1abd0..152f615 100644 (file)
@@ -1416,7 +1416,7 @@ static struct hostapd_hw_modes *i802_get_hw_feature_data(void *priv,
        struct nl_msg *msg;
        int err = -1;
        struct nl_cb *cb = NULL;
-       int finished;
+       int finished = 0;
        struct phy_info_arg result = {
                .num_modes = num_modes,
                .modes = NULL,