diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2008-04-02 16:34:51 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-04-07 22:19:28 -0400 |
commit | 877cb0d4af2658beb5f89d38ae51968782f62fad (patch) | |
tree | 38c3c0195a602bd4de514c7fdfe59642a35b83d4 /drivers | |
parent | bfe87dbc7b4da5b05a1a78480e996787a500cc6f (diff) |
libertas: fix mode initialization problem
After moving lbs_find_best_network_ssid() from scan.c to assoc.c gcc was
able to deduce that new_mode might stay uninitialized.
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/libertas/assoc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/assoc.c b/drivers/net/wireless/libertas/assoc.c index 87e145ffe8f..6a24ed6067e 100644 --- a/drivers/net/wireless/libertas/assoc.c +++ b/drivers/net/wireless/libertas/assoc.c @@ -541,7 +541,7 @@ void lbs_association_worker(struct work_struct *work) } if (find_any_ssid) { - u8 new_mode; + u8 new_mode = assoc_req->mode; ret = lbs_find_best_network_ssid(priv, assoc_req->ssid, &assoc_req->ssid_len, assoc_req->mode, &new_mode); |