Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79175
b: refs/heads/master
c: e7240ac
h: refs/heads/master
i:
  79173: 5a11f44
  79171: fc27406
  79167: 9a2fa39
v: v3
  • Loading branch information
David Woodhouse authored and David S. Miller committed Jan 28, 2008
1 parent 71e73e8 commit b543e71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 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: 2fd6cfe307557f3022b47288db3dc094c076e539
refs/heads/master: e7240acae372727aa8eb3a67ca7b189dd261136a
11 changes: 5 additions & 6 deletions trunk/drivers/net/wireless/libertas/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ static int lbs_process_bss(struct bss_descriptor *bss,

if (*bytesleft >= sizeof(beaconsize)) {
/* Extract & convert beacon size from the command buffer */
beaconsize = le16_to_cpu(get_unaligned((u16 *)*pbeaconinfo));
beaconsize = le16_to_cpu(get_unaligned((__le16 *)*pbeaconinfo));
*bytesleft -= sizeof(beaconsize);
*pbeaconinfo += sizeof(beaconsize);
}
Expand Down Expand Up @@ -823,7 +823,7 @@ static int lbs_process_bss(struct bss_descriptor *bss,

case MFIE_TYPE_IBSS_SET:
pibss = (struct ieeetypes_ibssparamset *) pos;
bss->atimwindow = le32_to_cpu(pibss->atimwindow);
bss->atimwindow = le16_to_cpu(pibss->atimwindow);
memmove(&bss->ssparamset.ibssparamset, pibss,
sizeof(struct ieeetypes_ibssparamset));
lbs_deb_scan("got IBSS IE\n");
Expand Down Expand Up @@ -1562,12 +1562,11 @@ int lbs_ret_80211_scan(struct lbs_private *priv, struct cmd_ds_command *resp)
goto done;
}

bytesleft = le16_to_cpu(get_unaligned((u16*)&pscan->bssdescriptsize));
bytesleft = le16_to_cpu(pscan->bssdescriptsize);
lbs_deb_scan("SCAN_RESP: bssdescriptsize %d\n", bytesleft);

scanrespsize = le16_to_cpu(get_unaligned((u16*)&resp->size));
lbs_deb_scan("SCAN_RESP: scan results %d\n",
pscan->nr_sets);
scanrespsize = le16_to_cpu(resp->size);
lbs_deb_scan("SCAN_RESP: scan results %d\n", pscan->nr_sets);

pbssinfo = pscan->bssdesc_and_tlvbuffer;

Expand Down

0 comments on commit b543e71

Please sign in to comment.