提交 a0e803a2 编写于 作者: S Samuel Ortiz 提交者: John W. Linville

iwmc3200wifi: Add UMAC wifi headers to the pmkid command

Without this header, we can trigger a UMAC crash with debug enabled UMACs.
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 8c5d9808
...@@ -973,6 +973,10 @@ int iwm_send_pmkid_update(struct iwm_priv *iwm, ...@@ -973,6 +973,10 @@ int iwm_send_pmkid_update(struct iwm_priv *iwm,
memset(&update, 0, sizeof(struct iwm_umac_pmkid_update)); memset(&update, 0, sizeof(struct iwm_umac_pmkid_update));
update.hdr.oid = UMAC_WIFI_IF_CMD_PMKID_UPDATE;
update.hdr.buf_size = cpu_to_le16(sizeof(struct iwm_umac_pmkid_update) -
sizeof(struct iwm_umac_wifi_if));
update.command = cpu_to_le32(command); update.command = cpu_to_le32(command);
if (pmksa->bssid) if (pmksa->bssid)
memcpy(&update.bssid, pmksa->bssid, ETH_ALEN); memcpy(&update.bssid, pmksa->bssid, ETH_ALEN);
......
...@@ -463,6 +463,7 @@ struct iwm_umac_cmd_stop_resume_tx { ...@@ -463,6 +463,7 @@ struct iwm_umac_cmd_stop_resume_tx {
#define IWM_CMD_PMKID_FLUSH 3 #define IWM_CMD_PMKID_FLUSH 3
struct iwm_umac_pmkid_update { struct iwm_umac_pmkid_update {
struct iwm_umac_wifi_if hdr;
__le32 command; __le32 command;
u8 bssid[ETH_ALEN]; u8 bssid[ETH_ALEN];
__le16 reserved; __le16 reserved;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册