Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Roel Kluin and committed by
John W. Linville
baf62eec 0c2bec96

+1 -1
+1 -1
drivers/net/wireless/libertas/scan.c
··· 692 692 bss->wpa_ie_len); 693 693 } else if (pos[1] >= MARVELL_MESH_IE_LENGTH && 694 694 pos[2] == 0x00 && pos[3] == 0x50 && 695 - pos[4] == 0x43 && pos[4] == 0x04) { 695 + pos[4] == 0x43 && pos[5] == 0x04) { 696 696 lbs_deb_scan("got mesh IE\n"); 697 697 bss->mesh = 1; 698 698 } else {