Skip to content

Commit

Permalink
libertas: add comment re: v10 firmware key handling
Browse files Browse the repository at this point in the history
Comment text suggested by Dan Williams <dcbw@redhat.com> in
<1263952092.4481.2.camel@localhost.localdomain>.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
John W. Linville committed Jan 27, 2010
1 parent 47db3a6 commit d3d5621
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/wireless/libertas/assoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2062,6 +2062,11 @@ void lbs_association_worker(struct work_struct *work)
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) ||
test_bit(ASSOC_FLAG_WPA_UCAST_KEY, &assoc_req->flags)) {
ret = assoc_helper_wpa_keys(priv, assoc_req);
Expand Down

0 comments on commit d3d5621

Please sign in to comment.