[iwm] Use htole16 for policy field in struct iwm_time_event_cmd_v2.
The htole32 was working fine for little-endian machines, but would have been broken on big-endian. Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D7929
This commit is contained in:
parent
d36899d10f
commit
b47237ce60
@ -266,7 +266,7 @@ iwm_mvm_protect_session(struct iwm_softc *sc, struct iwm_node *in,
|
||||
time_cmd.duration = htole32(duration);
|
||||
time_cmd.repeat = 1;
|
||||
time_cmd.policy
|
||||
= htole32(IWM_TE_V2_NOTIF_HOST_EVENT_START |
|
||||
= htole16(IWM_TE_V2_NOTIF_HOST_EVENT_START |
|
||||
IWM_TE_V2_NOTIF_HOST_EVENT_END |
|
||||
IWM_T2_V2_START_IMMEDIATELY);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user