aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/libertas/scan.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c
index 8b6ce61aba43..92d84c72e2a9 100644
--- a/drivers/net/wireless/libertas/scan.c
+++ b/drivers/net/wireless/libertas/scan.c
@@ -709,7 +709,7 @@ static int lbs_process_bss(struct bss_descriptor *bss,
709 709
710 if (*bytesleft >= sizeof(beaconsize)) { 710 if (*bytesleft >= sizeof(beaconsize)) {
711 /* Extract & convert beacon size from the command buffer */ 711 /* Extract & convert beacon size from the command buffer */
712 beaconsize = le16_to_cpu(get_unaligned((u16 *)*pbeaconinfo)); 712 beaconsize = le16_to_cpu(get_unaligned((__le16 *)*pbeaconinfo));
713 *bytesleft -= sizeof(beaconsize); 713 *bytesleft -= sizeof(beaconsize);
714 *pbeaconinfo += sizeof(beaconsize); 714 *pbeaconinfo += sizeof(beaconsize);
715 } 715 }
@@ -823,7 +823,7 @@ static int lbs_process_bss(struct bss_descriptor *bss,
823 823
824 case MFIE_TYPE_IBSS_SET: 824 case MFIE_TYPE_IBSS_SET:
825 pibss = (struct ieeetypes_ibssparamset *) pos; 825 pibss = (struct ieeetypes_ibssparamset *) pos;
826 bss->atimwindow = le32_to_cpu(pibss->atimwindow); 826 bss->atimwindow = le16_to_cpu(pibss->atimwindow);
827 memmove(&bss->ssparamset.ibssparamset, pibss, 827 memmove(&bss->ssparamset.ibssparamset, pibss,
828 sizeof(struct ieeetypes_ibssparamset)); 828 sizeof(struct ieeetypes_ibssparamset));
829 lbs_deb_scan("got IBSS IE\n"); 829 lbs_deb_scan("got IBSS IE\n");
@@ -1562,12 +1562,11 @@ int lbs_ret_80211_scan(struct lbs_private *priv, struct cmd_ds_command *resp)
1562 goto done; 1562 goto done;
1563 } 1563 }
1564 1564
1565 bytesleft = le16_to_cpu(get_unaligned((u16*)&pscan->bssdescriptsize)); 1565 bytesleft = le16_to_cpu(pscan->bssdescriptsize);
1566 lbs_deb_scan("SCAN_RESP: bssdescriptsize %d\n", bytesleft); 1566 lbs_deb_scan("SCAN_RESP: bssdescriptsize %d\n", bytesleft);
1567 1567
1568 scanrespsize = le16_to_cpu(get_unaligned((u16*)&resp->size)); 1568 scanrespsize = le16_to_cpu(resp->size);
1569 lbs_deb_scan("SCAN_RESP: scan results %d\n", 1569 lbs_deb_scan("SCAN_RESP: scan results %d\n", pscan->nr_sets);
1570 pscan->nr_sets);
1571 1570
1572 pbssinfo = pscan->bssdesc_and_tlvbuffer; 1571 pbssinfo = pscan->bssdesc_and_tlvbuffer;
1573 1572