wmi.c (30868f5d4413759ba82c0703290f2483402fea39) wmi.c (eb4c02155881696ee6abb090d554b765e41d46ed)
1/*
2 * Copyright (c) 2012-2017 Qualcomm Atheros, Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 330 unchanged lines hidden (view full) ---

339
340 wil_info(wil, "FW ver. %s(SW %d); MAC %pM; %d MID's\n",
341 wil->fw_version, le32_to_cpu(evt->sw_version),
342 evt->mac, wil->n_mids);
343 /* ignore MAC address, we already have it from the boot loader */
344 strlcpy(wdev->wiphy->fw_version, wil->fw_version,
345 sizeof(wdev->wiphy->fw_version));
346
1/*
2 * Copyright (c) 2012-2017 Qualcomm Atheros, Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 330 unchanged lines hidden (view full) ---

339
340 wil_info(wil, "FW ver. %s(SW %d); MAC %pM; %d MID's\n",
341 wil->fw_version, le32_to_cpu(evt->sw_version),
342 evt->mac, wil->n_mids);
343 /* ignore MAC address, we already have it from the boot loader */
344 strlcpy(wdev->wiphy->fw_version, wil->fw_version,
345 sizeof(wdev->wiphy->fw_version));
346
347 if (len > offsetof(struct wmi_ready_event, rfc_read_calib_result)) {
348 wil_dbg_wmi(wil, "rfc calibration result %d\n",
349 evt->rfc_read_calib_result);
350 wil->fw_calib_result = evt->rfc_read_calib_result;
351 }
347 wil_set_recovery_state(wil, fw_recovery_idle);
348 set_bit(wil_status_fwready, wil->status);
349 /* let the reset sequence continue */
350 complete(&wil->wmi_ready);
351}
352
353static void wmi_evt_rx_mgmt(struct wil6210_priv *wil, int id, void *d, int len)
354{

--- 1645 unchanged lines hidden ---
352 wil_set_recovery_state(wil, fw_recovery_idle);
353 set_bit(wil_status_fwready, wil->status);
354 /* let the reset sequence continue */
355 complete(&wil->wmi_ready);
356}
357
358static void wmi_evt_rx_mgmt(struct wil6210_priv *wil, int id, void *d, int len)
359{

--- 1645 unchanged lines hidden ---