Commit 1cc589b9 authored by Zhu Yi's avatar Zhu Yi Committed by John W. Linville

iwmc3200wifi: fix UMAC INIT_COMPLETE notification handling

The patch fixes the missing UMAC iwm_umac_wifi_in_hdr header in
the UMAC INIT_COMPLETE (iwm_umac_notif_init_complete) notification.
Signed-off-by: default avatarZhu Yi <yi.zhu@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent ea9edaf6
...@@ -102,7 +102,6 @@ static int iwm_ntf_error(struct iwm_priv *iwm, u8 *buf, ...@@ -102,7 +102,6 @@ static int iwm_ntf_error(struct iwm_priv *iwm, u8 *buf,
error = (struct iwm_umac_notif_error *)buf; error = (struct iwm_umac_notif_error *)buf;
fw_err = &error->err; fw_err = &error->err;
IWM_ERR(iwm, "%cMAC FW ERROR:\n", IWM_ERR(iwm, "%cMAC FW ERROR:\n",
(le32_to_cpu(fw_err->category) == UMAC_SYS_ERR_CAT_LMAC) ? 'L' : 'U'); (le32_to_cpu(fw_err->category) == UMAC_SYS_ERR_CAT_LMAC) ? 'L' : 'U');
IWM_ERR(iwm, "\tCategory: %d\n", le32_to_cpu(fw_err->category)); IWM_ERR(iwm, "\tCategory: %d\n", le32_to_cpu(fw_err->category));
......
...@@ -615,6 +615,7 @@ struct iwm_umac_notif_alive { ...@@ -615,6 +615,7 @@ struct iwm_umac_notif_alive {
} __attribute__ ((packed)); } __attribute__ ((packed));
struct iwm_umac_notif_init_complete { struct iwm_umac_notif_init_complete {
struct iwm_umac_wifi_in_hdr hdr;
__le16 status; __le16 status;
__le16 reserved; __le16 reserved;
} __attribute__ ((packed)); } __attribute__ ((packed));
...@@ -643,6 +644,11 @@ struct iwm_fw_error_hdr { ...@@ -643,6 +644,11 @@ struct iwm_fw_error_hdr {
__le32 umac_status; __le32 umac_status;
__le32 lmac_status; __le32 lmac_status;
__le32 sdio_status; __le32 sdio_status;
__le32 dbm_sample_ctrl;
__le32 dbm_buf_base;
__le32 dbm_buf_end;
__le32 dbm_buf_write_ptr;
__le32 dbm_buf_cycle_cnt;
} __attribute__ ((packed)); } __attribute__ ((packed));
struct iwm_umac_notif_error { struct iwm_umac_notif_error {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment