Merge "wil6210: support NL_60G_GEN_FW_RESET UNSPEC vendor command"
This commit is contained in:
commit
ef2471214e
1 changed files with 19 additions and 0 deletions
|
@ -103,6 +103,8 @@ enum wil_nl_60g_evt_type {
|
|||
|
||||
enum wil_nl_60g_debug_cmd {
|
||||
NL_60G_DBG_FORCE_WMI_SEND,
|
||||
NL_60G_GEN_RADAR_ALLOC_BUFFER,
|
||||
NL_60G_GEN_FW_RESET,
|
||||
};
|
||||
|
||||
struct wil_nl_60g_send_receive_wmi {
|
||||
|
@ -3586,6 +3588,23 @@ static int wil_nl_60g_handle_cmd(struct wiphy *wiphy, struct wireless_dev *wdev,
|
|||
wil_dbg_wmi(wil, "force sending wmi commands %d\n",
|
||||
wil->force_wmi_send);
|
||||
break;
|
||||
case NL_60G_GEN_FW_RESET:
|
||||
if (!test_bit(WMI_FW_CAPABILITY_WMI_ONLY,
|
||||
wil->fw_capabilities)) {
|
||||
rc = -EOPNOTSUPP;
|
||||
break;
|
||||
}
|
||||
|
||||
wil_dbg_misc(wil,
|
||||
"NL_60G_GEN_FW_RESET, resetting...\n");
|
||||
|
||||
mutex_lock(&wil->mutex);
|
||||
down_write(&wil->mem_lock);
|
||||
rc = wil_reset(wil, true);
|
||||
up_write(&wil->mem_lock);
|
||||
mutex_unlock(&wil->mutex);
|
||||
|
||||
break;
|
||||
default:
|
||||
rc = -EINVAL;
|
||||
wil_err(wil, "invalid debug_cmd id %d",
|
||||
|
|
Loading…
Reference in a new issue