Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145050843
D10146.1777281632.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D10146.1777281632.diff
View Options
Index: head/sys/dev/iwm/if_iwm_scan.c
===================================================================
--- head/sys/dev/iwm/if_iwm_scan.c
+++ head/sys/dev/iwm/if_iwm_scan.c
@@ -201,6 +201,7 @@
return htole32(IWM_RATE_6M_PLCP | tx_ant);
}
+#ifdef IWM_DEBUG
static const char *
iwm_mvm_ebs_status_str(enum iwm_scan_ebs_status status)
{
@@ -216,12 +217,18 @@
}
}
+static const char *
+iwm_mvm_offload_status_str(enum iwm_scan_offload_complete_status status)
+{
+ return (status == IWM_SCAN_OFFLOAD_ABORTED) ? "aborted" : "completed";
+}
+#endif
+
void
iwm_mvm_rx_lmac_scan_complete_notif(struct iwm_softc *sc,
struct iwm_rx_packet *pkt)
{
struct iwm_periodic_scan_complete *scan_notif = (void *)pkt->data;
- boolean_t aborted = (scan_notif->status == IWM_SCAN_OFFLOAD_ABORTED);
/* If this happens, the firmware has mistakenly sent an LMAC
* notification during UMAC scans -- warn and ignore it.
@@ -234,7 +241,7 @@
}
IWM_DPRINTF(sc, IWM_DEBUG_SCAN, "Regular scan %s, EBS status %s (FW)\n",
- aborted ? "aborted" : "completed",
+ iwm_mvm_offload_status_str(scan_notif->status),
iwm_mvm_ebs_status_str(scan_notif->ebs_status));
sc->last_ebs_successful =
@@ -248,13 +255,11 @@
struct iwm_rx_packet *pkt)
{
struct iwm_umac_scan_complete *notif = (void *)pkt->data;
- uint32_t uid = le32toh(notif->uid);
- boolean_t aborted = (notif->status == IWM_SCAN_OFFLOAD_ABORTED);
IWM_DPRINTF(sc, IWM_DEBUG_SCAN,
"Scan completed, uid %u, status %s, EBS status %s\n",
- uid,
- aborted ? "aborted" : "completed",
+ le32toh(notif->uid),
+ iwm_mvm_offload_status_str(notif->status),
iwm_mvm_ebs_status_str(notif->ebs_status));
if (notif->ebs_status != IWM_SCAN_EBS_SUCCESS &&
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 27, 9:20 AM (17 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28438093
Default Alt Text
D10146.1777281632.diff (1 KB)
Attached To
Mode
D10146: iwm: fix build without IWM_DEBUG
Attached
Detach File
Event Timeline
Log In to Comment