Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66441
b: refs/heads/master
c: 492b6da
h: refs/heads/master
i:
  66439: 9c222a1
v: v3
  • Loading branch information
Dan Williams authored and David S. Miller committed Oct 10, 2007
1 parent bb1d0ae commit 7e9f0c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 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: 9e22cb67d9a8acde7a5af6ed8cd5e74ebd6551b3
refs/heads/master: 492b6da7d220b37275efb03710d57215304149fa
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/libertas/hostcmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ struct cmd_ds_802_11_subscribe_event {
*/
struct cmd_ds_802_11_scan {
u8 bsstype;
u8 BSSID[ETH_ALEN];
u8 bssid[ETH_ALEN];
u8 tlvbuffer[1];
#if 0
mrvlietypes_ssidparamset_t ssidParamSet;
Expand Down
7 changes: 3 additions & 4 deletions trunk/drivers/net/wireless/libertas/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1677,15 +1677,14 @@ int libertas_cmd_80211_scan(wlan_private * priv,

/* Set fixed field variables in scan command */
pscan->bsstype = pscancfg->bsstype;
memcpy(pscan->BSSID, pscancfg->bssid, sizeof(pscan->BSSID));
memcpy(pscan->bssid, pscancfg->bssid, ETH_ALEN);
memcpy(pscan->tlvbuffer, pscancfg->tlvbuffer, pscancfg->tlvbufferlen);

cmd->command = cpu_to_le16(cmd_802_11_scan);

/* size is equal to the sizeof(fixed portions) + the TLV len + header */
cmd->size = cpu_to_le16(sizeof(pscan->bsstype)
+ sizeof(pscan->BSSID)
+ pscancfg->tlvbufferlen + S_DS_GEN);
cmd->size = cpu_to_le16(sizeof(pscan->bsstype) + ETH_ALEN
+ pscancfg->tlvbufferlen + S_DS_GEN);

lbs_deb_scan("SCAN_CMD: command=%x, size=%x, seqnum=%x\n",
le16_to_cpu(cmd->command), le16_to_cpu(cmd->size),
Expand Down

0 comments on commit 7e9f0c3

Please sign in to comment.