Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314746
b: refs/heads/master
c: c85251f
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Pedersen authored and Kalle Valo committed Jun 14, 2012
1 parent cccc723 commit 4ec6da0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b5b6f6a9a07ac230d54a85a9fb9e691c85f2eb0a
refs/heads/master: c85251f8562095cd6fd63ae786354283c5318303
6 changes: 3 additions & 3 deletions trunk/drivers/net/wireless/ath/ath6kl/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1004,9 +1004,6 @@ static int ath6kl_fetch_fw_apin(struct ath6kl *ar, const char *name)
ar->hw.reserved_ram_size);
break;
case ATH6KL_FW_IE_CAPABILITIES:
if (ie_len < DIV_ROUND_UP(ATH6KL_FW_CAPABILITY_MAX, 8))
break;

ath6kl_dbg(ATH6KL_DBG_BOOT,
"found firmware capabilities ie (%zd B)\n",
ie_len);
Expand All @@ -1015,6 +1012,9 @@ static int ath6kl_fetch_fw_apin(struct ath6kl *ar, const char *name)
index = i / 8;
bit = i % 8;

if (index == ie_len)
break;

if (data[index] & (1 << bit))
__set_bit(i, ar->fw_capabilities);
}
Expand Down

0 comments on commit 4ec6da0

Please sign in to comment.