Author: eadler
Date: Thu Mar  1 04:28:54 2018
New Revision: 330145
URL: https://svnweb.freebsd.org/changeset/base/330145

Log:
  MFC r305999:
  
  [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.

Modified:
  stable/11/sys/dev/iwm/if_iwm_time_event.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/iwm/if_iwm_time_event.c
==============================================================================
--- stable/11/sys/dev/iwm/if_iwm_time_event.c   Thu Mar  1 04:26:33 2018        
(r330144)
+++ stable/11/sys/dev/iwm/if_iwm_time_event.c   Thu Mar  1 04:28:54 2018        
(r330145)
@@ -266,7 +266,7 @@ iwm_mvm_protect_session(struct iwm_softc *sc, struct i
        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);
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to