Commit d3d5621a authored by John W. Linville's avatar John W. Linville

libertas: add comment re: v10 firmware key handling

Comment text suggested by Dan Williams <dcbw@redhat.com> in
<1263952092.4481.2.camel@localhost.localdomain>.
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 47db3a67
...@@ -2062,6 +2062,11 @@ void lbs_association_worker(struct work_struct *work) ...@@ -2062,6 +2062,11 @@ void lbs_association_worker(struct work_struct *work)
goto out; goto out;
} }
/*
* v10 FW wants WPA keys to be set/cleared before WEP key operations,
* otherwise it will fail to correctly associate to WEP networks.
* Other firmware versions don't appear to care.
*/
if (test_bit(ASSOC_FLAG_WPA_MCAST_KEY, &assoc_req->flags) || if (test_bit(ASSOC_FLAG_WPA_MCAST_KEY, &assoc_req->flags) ||
test_bit(ASSOC_FLAG_WPA_UCAST_KEY, &assoc_req->flags)) { test_bit(ASSOC_FLAG_WPA_UCAST_KEY, &assoc_req->flags)) {
ret = assoc_helper_wpa_keys(priv, assoc_req); ret = assoc_helper_wpa_keys(priv, assoc_req);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment