OSDN Git Service

iwlwifi: dbg_ini: support FW notification dumping in case of missed beacon
authorShahar S Matityahu <shahar.s.matityahu@intel.com>
Thu, 25 Jul 2019 10:25:07 +0000 (13:25 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 25 Oct 2019 07:10:00 +0000 (10:10 +0300)
Pass the FW notification packet to the dump collection flow to allow
the driver to include it in the dump file if requested.

Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c
drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c

index 1934df7..f266647 100644 (file)
@@ -1067,6 +1067,7 @@ void iwl_dbg_tlv_time_point(struct iwl_fw_runtime *fwrt,
                iwl_dbg_tlv_send_hcmds(fwrt, hcmd_list);
                break;
        case IWL_FW_INI_TIME_POINT_FW_RSP_OR_NOTIF:
+       case IWL_FW_INI_TIME_POINT_MISSED_BEACONS:
                iwl_dbg_tlv_send_hcmds(fwrt, hcmd_list);
                iwl_dbg_tlv_tp_trigger(fwrt, trig_list, tp_data,
                                       iwl_dbg_tlv_check_fw_pkt);
index 9c417dd..70bb150 100644 (file)
@@ -1404,6 +1404,7 @@ void iwl_mvm_rx_missed_beacons_notif(struct iwl_mvm *mvm,
        u32 rx_missed_bcon, rx_missed_bcon_since_rx;
        struct ieee80211_vif *vif;
        u32 id = le32_to_cpu(mb->mac_id);
+       union iwl_dbg_tlv_tp_data tp_data = { .fw_pkt = pkt };
 
        IWL_DEBUG_INFO(mvm,
                       "missed bcn mac_id=%u, consecutive=%u (%u, %u, %u)\n",
@@ -1432,7 +1433,7 @@ void iwl_mvm_rx_missed_beacons_notif(struct iwl_mvm *mvm,
                ieee80211_beacon_loss(vif);
 
        iwl_dbg_tlv_time_point(&mvm->fwrt,
-                              IWL_FW_INI_TIME_POINT_MISSED_BEACONS, NULL);
+                              IWL_FW_INI_TIME_POINT_MISSED_BEACONS, &tp_data);
 
        trigger = iwl_fw_dbg_trigger_on(&mvm->fwrt, ieee80211_vif_to_wdev(vif),
                                        FW_DBG_TRIGGER_MISSED_BEACONS);