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 /drivers/net | |
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>
Diffstat (limited to 'drivers/net')
-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 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, | |||
333 | if (adapter->curbssparams.ssid.ssidlength != assoc_req->ssid.ssidlength) | 333 | if (adapter->curbssparams.ssid.ssidlength != assoc_req->ssid.ssidlength) |
334 | return 1; | 334 | return 1; |
335 | if (memcmp(adapter->curbssparams.ssid.ssid, assoc_req->ssid.ssid, | 335 | if (memcmp(adapter->curbssparams.ssid.ssid, assoc_req->ssid.ssid, |
336 | sizeof(struct WLAN_802_11_SSID))) | 336 | adapter->curbssparams.ssid.ssidlength)) |
337 | return 1; | 337 | return 1; |
338 | 338 | ||
339 | /* FIXME: deal with 'auto' mode somehow */ | 339 | /* FIXME: deal with 'auto' mode somehow */ |