Skip to content
Permalink
Browse files

Added code to dump commands set to firmware.

Signed-off-by: David Lin <dlin@marvell.com>
  • Loading branch information
yuhhaurlin committed Oct 26, 2018
1 parent 369d99c commit f48571458fc6001204f57d71c6dea03dae191690
Showing with 9 additions and 4 deletions.
  1. +1 −0 core.h
  2. +7 −0 hif/pcie/pcie.c
  3. +1 −4 hif/pcie/tx.c
1 core.h
@@ -251,6 +251,7 @@ struct mwl_priv {
unsigned short *pcmd_buf; /* pointer to CmdBuf (virtual) */
dma_addr_t pphys_cmd_buf; /* pointer to CmdBuf (physical) */
bool in_send_cmd;
bool cmd_timeout;
bool rmmod;

int irq;
@@ -151,6 +151,10 @@ static bool pcie_chk_adapter(struct pcie_priv *pcie_priv)
return false;
}

if (priv->cmd_timeout)
wiphy_debug(priv->hw->wiphy, "MACREG_REG_INT_CODE: 0x%04x\n",
regval);

return true;
}

@@ -382,10 +386,13 @@ static int pcie_exec_cmd(struct ieee80211_hw *hw, unsigned short cmd)

if (!priv->in_send_cmd && !priv->rmmod) {
priv->in_send_cmd = true;
wiphy_debug(priv->hw->wiphy, "send cmd 0x%04x=%s\n",
cmd, mwl_fwcmd_get_cmd_string(cmd));
pcie_send_cmd(pcie_priv);
if (pcie_wait_complete(priv, 0x8000 | cmd)) {
wiphy_err(priv->hw->wiphy, "timeout: 0x%04x\n", cmd);
priv->in_send_cmd = false;
priv->cmd_timeout = true;
vendor_cmd_basic_event(hw->wiphy,
MWL_VENDOR_EVENT_CMD_TIMEOUT);
return -EIO;
@@ -954,11 +954,8 @@ void pcie_tx_skbs(unsigned long data)
break;

tx_skb = skb_dequeue(&pcie_priv->txq[num]);
if (!tx_skb) {
wiphy_warn(hw->wiphy,
"Socket buffer is NULL\n");
if (!tx_skb)
continue;
}
tx_info = IEEE80211_SKB_CB(tx_skb);
tx_ctrl = (struct pcie_tx_ctrl *)&tx_info->status;

0 comments on commit f485714

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