libertas: pos[4] tested twice, 2nd should be pos[5]
authorRoel Kluin <roel.kluin@gmail.com>
Tue, 3 Feb 2009 16:15:57 +0000 (17:15 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Feb 2009 20:03:49 +0000 (15:03 -0500)
pos[4] can't be both 0x43 and 0x04, 2nd should be pos[5]

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/scan.c

index 57f6c12cda2085a902a8fae4e1e950c138f34475..00a57ed78afcf3685ce937413b261b376b3c4db8 100644 (file)
@@ -692,7 +692,7 @@ static int lbs_process_bss(struct bss_descriptor *bss,
                                            bss->wpa_ie_len);
                        } else if (pos[1] >= MARVELL_MESH_IE_LENGTH &&
                                   pos[2] == 0x00 && pos[3] == 0x50 &&
-                                  pos[4] == 0x43 && pos[4] == 0x04) {
+                                  pos[4] == 0x43 && pos[5] == 0x04) {
                                lbs_deb_scan("got mesh IE\n");
                                bss->mesh = 1;
                        } else {