summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-02-03 17:15:57 +0100
committerJohn W. Linville <linville@tuxdriver.com>2009-02-09 15:03:49 -0500
commitbaf62eecfa75a26682efdfed0d74256992a47e6b (patch)
tree91fa767738a3952186ee868c384d472b05a8eb45
parent0c2bec96945ccfc4a58a88d73531e392972ba6c5 (diff)
downloadblackbird-op-linux-baf62eecfa75a26682efdfed0d74256992a47e6b.tar.gz
blackbird-op-linux-baf62eecfa75a26682efdfed0d74256992a47e6b.zip
libertas: pos[4] tested twice, 2nd should be pos[5]
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>
-rw-r--r--drivers/net/wireless/libertas/scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c
index 57f6c12cda20..00a57ed78afc 100644
--- a/drivers/net/wireless/libertas/scan.c
+++ b/drivers/net/wireless/libertas/scan.c
@@ -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 {
OpenPOWER on IntegriCloud