Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66535
b: refs/heads/master
c: 70500f5
h: refs/heads/master
i:
  66533: ed4e549
  66531: 576aa04
  66527: f7b8047
v: v3
  • Loading branch information
Marek Vašut authored and David S. Miller committed Oct 10, 2007
1 parent f8fddfb commit 94a9595
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 794760f750655d987499d7a5034519afc84af63b
refs/heads/master: 70500f5443be1b27ea2c9ab71ce9dc2250af7b19
6 changes: 5 additions & 1 deletion trunk/drivers/net/wireless/libertas/cmdresp.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,11 @@ static int wlan_ret_get_hw_spec(wlan_private * priv,
lbs_deb_cmd("GET_HW_SPEC: hardware interface 0x%x, hardware spec 0x%04x\n",
hwspec->hwifversion, hwspec->version);

adapter->regioncode = le16_to_cpu(hwspec->regioncode);
/* Clamp region code to 8-bit since FW spec indicates that it should
* only ever be 8-bit, even though the field size is 16-bit. Some firmware
* returns non-zero high 8 bits here.
*/
adapter->regioncode = le16_to_cpu(hwspec->regioncode) & 0xFF;

for (i = 0; i < MRVDRV_MAX_REGION_CODE; i++) {
/* use the region code to search for the index */
Expand Down

0 comments on commit 94a9595

Please sign in to comment.