Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279246
b: refs/heads/master
c: 277d90f
h: refs/heads/master
v: v3
  • Loading branch information
Kalle Valo committed Dec 13, 2011
1 parent 5669d64 commit b82b210
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 75ae3bc48fc8f5d1e5f5fe43cd07078325a6194b
refs/heads/master: 277d90f4ba4b7ebb35b85a5d6c58dce2f1e1b58d
5 changes: 4 additions & 1 deletion trunk/drivers/net/wireless/ath/ath6kl/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -913,12 +913,15 @@ static int ath6kl_fetch_fw_api2(struct ath6kl *ar)
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);

for (i = 0; i < ATH6KL_FW_CAPABILITY_MAX; i++) {
index = ALIGN(i, 8) / 8;
index = i / 8;
bit = i % 8;

if (data[index] & (1 << bit))
Expand Down

0 comments on commit b82b210

Please sign in to comment.