diff options
author | Dan Williams <dcbw@redhat.com> | 2007-05-10 22:52:37 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-05-11 14:54:53 -0400 |
commit | ad1f3298959cf4321359da3288fd57acf2636369 (patch) | |
tree | 2b476f1b459294994cd9ce97b3b36eac9ad60b59 | |
parent | 4684c23dd472815755728fe954dfd2944956b4aa (diff) |
[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>
-rw-r--r-- | drivers/net/wireless/libertas/assoc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/assoc.c b/drivers/net/wireless/libertas/assoc.c index b55c7f57aca..dfffabc41dd 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 */ |