ath6kl: Fix WMI message structure for AP_SET_PVB
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 5 Sep 2011 14:38:44 +0000 (17:38 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 6 Sep 2011 07:44:02 +0000 (10:44 +0300)
There is a 2-octet reserved field between the flag and aid fields. Fix
that to make the target actually behave as requested.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/wmi.c
drivers/net/wireless/ath/ath6kl/wmi.h

index c9ec6303db7285037d9e3198c4c9905a2167dc36..b2c5c40727fbeb430a5f637226f61ce4f164c3d2 100644 (file)
@@ -2740,6 +2740,7 @@ int ath6kl_wmi_set_pvb_cmd(struct wmi *wmi, u16 aid, bool flag)
 
        cmd = (struct wmi_ap_set_pvb_cmd *) skb->data;
        cmd->aid = cpu_to_le16(aid);
+       cmd->rsvd = cpu_to_le16(0);
        cmd->flag = cpu_to_le32(flag);
 
        ret = ath6kl_wmi_cmd_send(wmi, skb, WMI_AP_SET_PVB_CMDID,
index a78e21b9177650fdab1dddbab9924c0e7505ea23..e86b81d326eb352fa09dee6075b1ff2e3fbf652a 100644 (file)
@@ -1922,6 +1922,7 @@ struct wmi_ap_set_mlme_cmd {
 
 struct wmi_ap_set_pvb_cmd {
        __le32 flag;
+       __le16 rsvd;
        __le16 aid;
 } __packed;