svn commit: r305999 - head/sys/dev/iwm

Imre Vadász ivadasz at FreeBSD.org
Mon Sep 19 22:06:02 UTC 2016


Author: ivadasz
Date: Mon Sep 19 22:06:00 2016
New Revision: 305999
URL: https://svnweb.freebsd.org/changeset/base/305999

Log:
  [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

Modified:
  head/sys/dev/iwm/if_iwm_time_event.c

Modified: head/sys/dev/iwm/if_iwm_time_event.c
==============================================================================
--- head/sys/dev/iwm/if_iwm_time_event.c	Mon Sep 19 20:43:03 2016	(r305998)
+++ head/sys/dev/iwm/if_iwm_time_event.c	Mon Sep 19 22:06:00 2016	(r305999)
@@ -266,7 +266,7 @@ iwm_mvm_protect_session(struct iwm_softc
 	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);
 


More information about the svn-src-all mailing list