Skip to content

Commit

Permalink
ath10k: Fix out-of-tree compile for 4.16 driver.
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Greear <greearb@candelatech.com>
  • Loading branch information
greearb committed Mar 7, 2019
1 parent 4b3cf7c commit cc73ceb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ath10k-4.16/wmi.c
Expand Up @@ -4071,16 +4071,18 @@ static void ath10k_dfs_radar_report(struct ath10k *ar,
}

radar_detected:
ath10k_dbg(ar, ATH10K_DBG_REGULATORY, "dfs radar detected: %s\n", pe.msg);
ATH10K_DFS_STAT_INC(ar, radar_detected);

#ifdef ATH_HAVE_PULSE_EVENT_MSG /* so we can compile out-of-tree easier */
ath10k_dbg(ar, ATH10K_DBG_REGULATORY, "dfs radar detected: %s\n", pe.msg);
if (pe.msg[0]) {
strncpy(ar->debug.dfs_last_msg, pe.msg,
sizeof(ar->debug.dfs_last_msg));
/* ensure null term */
ar->debug.dfs_last_msg[sizeof(ar->debug.dfs_last_msg) - 1] = 0;
}
#else
ath10k_dbg(ar, ATH10K_DBG_REGULATORY, "dfs radar detected\n");
#endif

/* Control radar events reporting in debugfs file
Expand Down

0 comments on commit cc73ceb

Please sign in to comment.