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>
This commit is contained in:
Holger Schurig 2008-05-30 14:53:22 +02:00 коммит произвёл John W. Linville
Родитель a6d4eae801
Коммит a75eda43dc
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -312,8 +312,8 @@ static ssize_t lbs_threshold_write(uint16_t tlv_type, uint16_t event_mask,
if (tlv_type != TLV_TYPE_BCNMISS) if (tlv_type != TLV_TYPE_BCNMISS)
tlv->freq = freq; tlv->freq = freq;
/* The command header, the event mask, and the one TLV */ /* The command header, the action, the event mask, and one TLV */
events->hdr.size = cpu_to_le16(sizeof(events->hdr) + 2 + sizeof(*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); ret = lbs_cmd_with_response(priv, CMD_802_11_SUBSCRIBE_EVENT, events);