diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2008-05-30 14:53:22 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-04 21:57:10 +0200 |
commit | a75eda43dc4a64d0bd0502da546871c01f70e899 (patch) | |
tree | 686383992b26a096ce49975f5608c9faf4e89080 | |
parent | ipw2200: expire and use oldest BSS on adhoc create (diff) | |
download | linux-a75eda43dc4a64d0bd0502da546871c01f70e899.tar.xz linux-a75eda43dc4a64d0bd0502da546871c01f70e899.zip |
libertas: fix command size for CMD_802_11_SUBSCRIBE_EVENT
The size was two small by two bytes.
Signed-off-by: Holger Schurig
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/libertas/debugfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/debugfs.c b/drivers/net/wireless/libertas/debugfs.c index ad2fabca9116..0aa0ce3b2c42 100644 --- a/drivers/net/wireless/libertas/debugfs.c +++ b/drivers/net/wireless/libertas/debugfs.c @@ -312,8 +312,8 @@ static ssize_t lbs_threshold_write(uint16_t tlv_type, uint16_t event_mask, if (tlv_type != TLV_TYPE_BCNMISS) tlv->freq = freq; - /* The command header, the event mask, and the one TLV */ - events->hdr.size = cpu_to_le16(sizeof(events->hdr) + 2 + sizeof(*tlv)); + /* The command header, the action, the event mask, and one TLV */ + events->hdr.size = cpu_to_le16(sizeof(events->hdr) + 4 + sizeof(*tlv)); ret = lbs_cmd_with_response(priv, CMD_802_11_SUBSCRIBE_EVENT, events); |