diff options
author | Dan Williams <dcbw@redhat.com> | 2007-08-03 09:40:55 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:50:17 -0400 |
commit | 8362cd413e8116306fafbaf414f0419db0595142 (patch) | |
tree | dad2dc7fe6988d6733eaf2f1f454bf6068133448 /drivers/net/wireless/libertas/11d.c | |
parent | c7fdf26995d5d6ebf1c3314ad001b9a4983c3f04 (diff) |
[PATCH] libertas: fix sparse-reported problems
A few fields being converted to the wrong sized type, and a few missed
endian conversions.
Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/11d.c')
-rw-r--r-- | drivers/net/wireless/libertas/11d.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/11d.c b/drivers/net/wireless/libertas/11d.c index 8b366ef2fe95..9cf0211de67f 100644 --- a/drivers/net/wireless/libertas/11d.c +++ b/drivers/net/wireless/libertas/11d.c | |||
@@ -543,7 +543,7 @@ int libertas_cmd_802_11d_domain_info(wlan_private * priv, | |||
543 | nr_subband * sizeof(struct ieeetypes_subbandset)); | 543 | nr_subband * sizeof(struct ieeetypes_subbandset)); |
544 | 544 | ||
545 | cmd->size = cpu_to_le16(sizeof(pdomaininfo->action) + | 545 | cmd->size = cpu_to_le16(sizeof(pdomaininfo->action) + |
546 | domain->header.len + | 546 | le16_to_cpu(domain->header.len) + |
547 | sizeof(struct mrvlietypesheader) + | 547 | sizeof(struct mrvlietypesheader) + |
548 | S_DS_GEN); | 548 | S_DS_GEN); |
549 | } else { | 549 | } else { |