Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Sep 2016 22:06:00 +0000 (UTC)
From:      =?UTF-8?Q?Imre_Vad=c3=a1sz?= <ivadasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r305999 - head/sys/dev/iwm
Message-ID:  <201609192206.u8JM60V2070219@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609192206.u8JM60V2070219>