libertas: fix command size for CMD_802_11_SUBSCRIBE_EVENT
authorHolger Schurig <hs4233@mail.mn-solutions.de>
Fri, 30 May 2008 12:53:22 +0000 (14:53 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 4 Jun 2008 19:57:10 +0000 (15:57 -0400)
The size was two small by two bytes.

Signed-off-by: Holger Schurig
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/debugfs.c

index ad2fabc..0aa0ce3 100644 (file)
@@ -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);