wlcore: compare ssid_len before comparing ssids
authorEliad Peller <eliad@wizery.com>
Tue, 15 May 2012 15:31:58 +0000 (18:31 +0300)
committerLuciano Coelho <coelho@ti.com>
Wed, 6 Jun 2012 16:33:28 +0000 (19:33 +0300)
commit587cc286c8a8e22bbe4521c331b88d62d0cb1076
tree2cc4acb16f33851fda51222afc902a126848a566
parent78f85f5066b721666f869d537eaca6a0818aa301
wlcore: compare ssid_len before comparing ssids

When comparing 2 ssids the ssid_len must be taken
into account. Otherwise, a substring will be treated
as equal.

This bug might cause ssids to get scanned as
public ssids (rather than hidden), resulting in
broadcast probe request (instead of ssid-specific
ones)

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wlcore/scan.c