Skip to content
Permalink
Browse files

Modified the code to get correct region code.

For 88W8964.

Signed-off-by: David Lin <dlin@marvell.com>
  • Loading branch information
yuhhaurlin committed Dec 13, 2017
1 parent c96d1ed commit 1fcef06e2ef8c03df50bc040d376b3b4282d41a0
Showing with 5 additions and 1 deletion.
  1. +4 −1 hif/fwcmd.c
  2. +1 −0 hif/hostcmd.h
@@ -3118,7 +3118,10 @@ int mwl_fwcmd_get_fw_region_code_sc4(struct ieee80211_hw *hw,
return -EINVAL;
}

*fw_region_code = le32_to_cpu(pcmd->fw_region_code);
if (pcmd->status)
*fw_region_code = (pcmd->status == 1) ? 0 : pcmd->status;
else
*fw_region_code = le32_to_cpu(pcmd->fw_region_code);

mutex_unlock(&priv->fwcmd_mutex);

@@ -1017,6 +1017,7 @@ struct hostcmd_cmd_newdp_dmathread_start {
/* HOSTCMD_CMD_GET_FW_REGION_CODE_SC4 */
struct hostcmd_cmd_get_fw_region_code_sc4 {
struct hostcmd_header cmd_hdr;
__le32 status; /* 0 = Found, 1 = Error */
__le32 fw_region_code;
} __packed;

0 comments on commit 1fcef06

Please sign in to comment.
You can’t perform that action at this time.