Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57678
b: refs/heads/master
c: 981f187
h: refs/heads/master
v: v3
  • Loading branch information
David Woodhouse authored and John W. Linville committed Jun 11, 2007
1 parent e1bcdff commit 0deacf0
Show file tree
Hide file tree
Showing 22 changed files with 716 additions and 797 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: 123e0e044091ca35a4766b38ae15032f2d41bcd6
refs/heads/master: 981f187b7c4b237011d4175cae0120d5d203c0fd
9 changes: 4 additions & 5 deletions trunk/drivers/net/wireless/libertas/11d.c
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ int libertas_cmd_802_11d_domain_info(wlan_private * priv,
cpu_to_le16(sizeof(pdomaininfo->action) + S_DS_GEN);
}

lbs_dbg_hex("11D:802_11D_DOMAIN_INFO:", (u8 *) cmd, (int)(cmd->size));
lbs_dbg_hex("11D:802_11D_DOMAIN_INFO:", (u8 *) cmd, le16_to_cpu(cmd->size));

done:
lbs_deb_enter(LBS_DEB_11D);
Expand Down Expand Up @@ -611,8 +611,7 @@ int libertas_cmd_enable_11d(wlan_private * priv, struct iwreq *wrq)
int libertas_ret_802_11d_domain_info(wlan_private * priv,
struct cmd_ds_command *resp)
{
struct cmd_ds_802_11d_domain_info
*domaininfo = &resp->params.domaininforesp;
struct cmd_ds_802_11d_domain_info *domaininfo = &resp->params.domaininforesp;
struct mrvlietypes_domainparamset *domain = &domaininfo->domain;
u16 action = le16_to_cpu(domaininfo->action);
s16 ret = 0;
Expand All @@ -623,8 +622,8 @@ int libertas_ret_802_11d_domain_info(wlan_private * priv,
lbs_dbg_hex("11D DOMAIN Info Rsp Data:", (u8 *) resp,
(int)le16_to_cpu(resp->size));

nr_subband = (domain->header.len - 3) / sizeof(struct ieeetypes_subbandset);
/* countrycode 3 bytes */
nr_subband = (le16_to_cpu(domain->header.len) - COUNTRY_CODE_LEN) /
sizeof(struct ieeetypes_subbandset);

lbs_deb_11d("11D Domain Info Resp: nr_subband=%d\n", nr_subband);

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/libertas/11d.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct mrvlietypes_domainparamset {
} __attribute__ ((packed));

struct cmd_ds_802_11d_domain_info {
u16 action;
__le16 action;
struct mrvlietypes_domainparamset domain;
} __attribute__ ((packed));

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/libertas/assoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ static int assoc_helper_mode(wlan_private *priv,
cmd_802_11_snmp_mib,
0, cmd_option_waitforrsp,
OID_802_11_INFRASTRUCTURE_MODE,
(void *) (size_t) assoc_req->mode);
/* Shoot me now */ (void *) (size_t) assoc_req->mode);

done:
lbs_deb_leave_args(LBS_DEB_ASSOC, "ret %d", ret);
Expand Down
Loading

0 comments on commit 0deacf0

Please sign in to comment.