IWL_FW_CHECK
if (IWL_FW_CHECK(fwrt, lmac_num > ARRAY_SIZE(fwrt->smem_cfg.lmac),
!IWL_FW_CHECK(fwrt, iwl_rx_packet_payload_len(pkt) < sizeof(*mem_cfg),
if (IWL_FW_CHECK(mld, pkt_len < sizeof(*release),
if (IWL_FW_CHECK(mld, baid >= ARRAY_SIZE(mld->fw_id_to_ba),
if (IWL_FW_CHECK(mld, tid != baid_data->tid ||
if (IWL_FW_CHECK(mld,
if (IWL_FW_CHECK(mld, resp_len != sizeof(*resp),
if (IWL_FW_CHECK(mld, baid < 0 || baid >= ARRAY_SIZE(mld->fw_id_to_ba),
if (IWL_FW_CHECK(mld, pkt_len < sizeof(*release),
if (IWL_FW_CHECK(mld, mlo_key->link_id >= IEEE80211_MLD_MAX_NUM_LINKS ||
if (IWL_FW_CHECK(mld, !mld->netdetect,
if (IWL_FW_CHECK(mld, len < sizeof(*notif),
if (IWL_FW_CHECK(mld, resume_data->wowlan_status->wakeup_reasons !=
if (IWL_FW_CHECK(mld, wowlan_status->num_mlo_keys > WOWLAN_MAX_MLO_KEYS,
if (IWL_FW_CHECK(mld, len < expected_len,
if (IWL_FW_CHECK(mld, len < len_with_mlo_keys,
if (IWL_FW_CHECK(mld, notif->tid_offloaded_tx != IWL_WOWLAN_OFFLOAD_TID,
if (IWL_FW_CHECK(mld, len < sizeof(*notif),
if (IWL_FW_CHECK(mld, !(wowlan_status->wakeup_reasons &
if (IWL_FW_CHECK(mld, request_id != (u8)mld->ftm_initiator.req->cookie,
if (IWL_FW_CHECK(mld, num_of_aps > mld->ftm_initiator.req->n_peers ||
if (IWL_FW_CHECK(mld, !mld->ftm_initiator.req,
if (IWL_FW_CHECK(mld, pkt_len != sizeof(resp),
if (IWL_FW_CHECK(mld, ret, "Failed to start firmware %d\n", ret)) {
if (IWL_FW_CHECK(mld, le32_to_cpu(notif->mac_id) >=
if (IWL_FW_CHECK(mld, notif->noa_active &&
if (IWL_FW_CHECK(mld, notif->mac_id >= ARRAY_SIZE(mld->fw_id_to_vif),
if (IWL_FW_CHECK(mld, !other_link, "link doesn't exist for: %d\n",
if (IWL_FW_CHECK(mld, !link_conf, "invalid link ID %d\n", link_id))
IWL_FW_CHECK(mld, !mcc, "mcc can't be 0: %d\n", mcc);
if (IWL_FW_CHECK(mld, fw_link_id >= mld->fw->ucode_capa.num_links,
if (IWL_FW_CHECK(mld, !bss_conf,
if (IWL_FW_CHECK(mld, !wdev, "NAN: cluster event without wdev\n"))
if (IWL_FW_CHECK(mld, !ieee80211_vif_nan_started(mld->nan_device_vif),
if (IWL_FW_CHECK(mld, !mld_vif, "NAN: DW end without mld_vif\n"))
if (IWL_FW_CHECK(mld, !ieee80211_vif_nan_started(mld->nan_device_vif),
IWL_FW_CHECK(mld, false,
if (IWL_FW_CHECK(mld, size < handler->sizes[i].size,
if (IWL_FW_CHECK(mld, !vif,
if (IWL_FW_CHECK(mld,
if (IWL_FW_CHECK(mld,
if (IWL_FW_CHECK(mld, pkt_len < mpdu_desc_size,
if (IWL_FW_CHECK(mld, mpdu_len + mpdu_desc_size > pkt_len,
if (IWL_FW_CHECK(mld, len < combined_notif_len,
if (IWL_FW_CHECK(mld, mld->rxq_sync.cookie != internal_notif->cookie,
IWL_FW_CHECK(mld, len,
if (IWL_FW_CHECK(mld, len != sizeof(struct iwl_mld_delba_data),
IWL_FW_CHECK(mld, !test_and_clear_bit(queue, &mld->rxq_sync.state),
if (IWL_FW_CHECK(mld, iwl_rx_packet_payload_len(pkt) < sizeof(*ntfy),
if (IWL_FW_CHECK(mld, resp_len != sizeof(*resp),
if (IWL_FW_CHECK(mld, uid >= ARRAY_SIZE(mld->scan.uid_status),
if (IWL_FW_CHECK(mld, uid >= ARRAY_SIZE(mld->scan.uid_status),
if (IWL_FW_CHECK(mld, !(mld->scan.uid_status[uid] & mld->scan.status),
if (IWL_FW_CHECK(mld, mld->scan.uid_status[uid] != IWL_MLD_SCAN_INT_MLO,
if (IWL_FW_CHECK(mld, uid >= ARRAY_SIZE(mld->scan.uid_status),
if (IWL_FW_CHECK(mld, !(mld->scan.uid_status[uid] & mld->scan.status),
if (IWL_FW_CHECK(mld, pkt_len < sizeof(*notif),
if (IWL_FW_CHECK(phy->mld,
if (IWL_FW_CHECK(mld, temp < 0, "negative temperature %d\n", temp))
if (IWL_FW_CHECK(mld, ths_crossed >= IWL_MAX_DTS_TRIPS,
if (IWL_FW_CHECK(mld, !time_sync,
if (IWL_FW_CHECK(mld, !skb, "Time sync event but no pending skb\n"))
if (IWL_FW_CHECK(mld, !status.skb,
if (IWL_FW_CHECK(mld, notif->sta_id >= mld->fw->ucode_capa.num_stations,
if (IWL_FW_CHECK(mld, size > link_sta->agg.max_amsdu_len,
if (IWL_FW_CHECK(mld, tx_resp->frame_count != 1,
if (IWL_FW_CHECK(mld, notif_size != pkt_len,
if (IWL_FW_CHECK(mld, sta_id >= mld->fw->ucode_capa.num_stations,
if (IWL_FW_CHECK(mld, resp_len != sizeof(*rsp),
if (IWL_FW_CHECK(mld, le16_to_cpu(rsp->sta_id) != fw_sta_id,
if (IWL_FW_CHECK(mld, num_flushed_queues > IWL_TX_FLUSH_QUEUE_RSP,
if (IWL_FW_CHECK(mld,
if (IWL_FW_CHECK(mld, struct_size(ba_res, tfd, tfd_cnt) > pkt_len,
if (IWL_FW_CHECK(mld,
if (IWL_FW_CHECK(mld, sta_id >= mld->fw->ucode_capa.num_stations,
if (IWL_FW_CHECK(mld, IS_ERR_OR_NULL(link_sta),
if (IWL_FW_CHECK(mvm, data->num_mlo_link_keys,
if (IWL_FW_CHECK(mvm,
IWL_FW_CHECK(mvm, 1,
if (IWL_FW_CHECK(mvm, notif->noa_active &&
if (IWL_FW_CHECK(mvm, pkt_len < rx_h->min_size,
if (IWL_FW_CHECK(mvm, iwl_mvm_has_rlc_offload(mvm),
if (IWL_FW_CHECK(mvm, pkt_len < sizeof(*release),
if (IWL_FW_CHECK(mvm, id >= ARRAY_SIZE(mvm->vif_id_to_mac),
if (IWL_FW_CHECK(mvm,
if (IWL_FW_CHECK(mvm,
if (IWL_FW_CHECK(mvm, sizeof(*ba_res) > pkt_len,
if (IWL_FW_CHECK(mvm,
if (IWL_FW_CHECK(mvm, !mvmsta,
if (IWL_FW_CHECK(trans, txq_id != trans->conf.cmd_queue,