Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133031372
D7324.id18778.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D7324.id18778.diff
View Options
Index: sys/dev/iwm/if_iwm.c
===================================================================
--- sys/dev/iwm/if_iwm.c
+++ sys/dev/iwm/if_iwm.c
@@ -3360,12 +3360,15 @@
uint8_t subtype = wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK;
if (subtype == IEEE80211_FC0_SUBTYPE_ASSOC_REQ ||
- subtype == IEEE80211_FC0_SUBTYPE_REASSOC_REQ)
- tx->pm_frame_timeout = htole16(3);
- else
- tx->pm_frame_timeout = htole16(2);
+ subtype == IEEE80211_FC0_SUBTYPE_REASSOC_REQ) {
+ tx->pm_frame_timeout = htole16(IWM_PM_FRAME_ASSOC);
+ } else if (subtype == IEEE80211_FC0_SUBTYPE_ACTION) {
+ tx->pm_frame_timeout = htole16(IWM_PM_FRAME_NONE);
+ } else {
+ tx->pm_frame_timeout = htole16(IWM_PM_FRAME_MGMT);
+ }
} else {
- tx->pm_frame_timeout = htole16(0);
+ tx->pm_frame_timeout = htole16(IWM_PM_FRAME_NONE);
}
if (hdrlen & 3) {
Index: sys/dev/iwm/if_iwmreg.h
===================================================================
--- sys/dev/iwm/if_iwmreg.h
+++ sys/dev/iwm/if_iwmreg.h
@@ -4244,6 +4244,18 @@
IWM_TX_CMD_FLG_HCCA_CHUNK = (1 << 31)
}; /* IWM_TX_FLAGS_BITS_API_S_VER_1 */
+/**
+ * enum iwm_tx_pm_timeouts - pm timeout values in TX command
+ * @IWM_PM_FRAME_NONE: no need to suspend sleep mode
+ * @IWM_PM_FRAME_MGMT: fw suspend sleep mode for 100TU
+ * @IWM_PM_FRAME_ASSOC: fw suspend sleep mode for 10sec
+ */
+enum iwm_tx_pm_timeouts {
+ IWM_PM_FRAME_NONE = 0,
+ IWM_PM_FRAME_MGMT = 2,
+ IWM_PM_FRAME_ASSOC = 3,
+};
+
/*
* TX command security control
*/
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 23, 6:21 AM (14 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24084628
Default Alt Text
D7324.id18778.diff (1 KB)
Attached To
Mode
D7324: [iwm] Set different pm_timeout for action frames.
Attached
Detach File
Event Timeline
Log In to Comment