summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-05-11 04:52:37 +0200
committerJohn W. Linville <linville@tuxdriver.com>2007-05-11 20:54:53 +0200
commitad1f3298959cf4321359da3288fd57acf2636369 (patch)
tree2b476f1b459294994cd9ce97b3b36eac9ad60b59 /drivers/net/wireless
parent[PATCH] libertas: use <net/ieee80211.h> for MAX_WPA_IE_LEN (diff)
downloadlinux-ad1f3298959cf4321359da3288fd57acf2636369.tar.xz
linux-ad1f3298959cf4321359da3288fd57acf2636369.zip
[PATCH] libertas: fix size of SSID comparison in stop_adhoc check
Signed-off-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/libertas/assoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/assoc.c b/drivers/net/wireless/libertas/assoc.c
index b55c7f57aca8..dfffabc41dd0 100644
--- a/drivers/net/wireless/libertas/assoc.c
+++ b/drivers/net/wireless/libertas/assoc.c
@@ -333,7 +333,7 @@ static int should_stop_adhoc(wlan_adapter *adapter,
if (adapter->curbssparams.ssid.ssidlength != assoc_req->ssid.ssidlength)
return 1;
if (memcmp(adapter->curbssparams.ssid.ssid, assoc_req->ssid.ssid,
- sizeof(struct WLAN_802_11_SSID)))
+ adapter->curbssparams.ssid.ssidlength))
return 1;
/* FIXME: deal with 'auto' mode somehow */