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

Adrian Chadd adrian at FreeBSD.org
Sun Jun 4 21:13:15 UTC 2017


Author: adrian
Date: Sun Jun  4 21:13:13 2017
New Revision: 319581
URL: https://svnweb.freebsd.org/changeset/base/319581

Log:
  [iwm] Set command code for PHY_DB as well.
  
  Obtained from:	dragonflybsd.git 58318c956a74382d1286ccabaf767012fdcfe1a2

Modified:
  head/sys/dev/iwm/if_iwm.c
  head/sys/dev/iwm/if_iwm_phy_db.c
  head/sys/dev/iwm/if_iwmreg.h

Modified: head/sys/dev/iwm/if_iwm.c
==============================================================================
--- head/sys/dev/iwm/if_iwm.c	Sun Jun  4 21:12:11 2017	(r319580)
+++ head/sys/dev/iwm/if_iwm.c	Sun Jun  4 21:13:13 2017	(r319581)
@@ -5370,7 +5370,7 @@ iwm_handle_rxb(struct iwm_softc *sc, struct mbuf *m)
 			break;
 
 		/* ignore */
-		case 0x6c: /* IWM_PHY_DB_CMD, no idea why it's not in fw-api.h */
+		case IWM_PHY_DB_CMD:
 			break;
 
 		case IWM_INIT_COMPLETE_NOTIF:

Modified: head/sys/dev/iwm/if_iwm_phy_db.c
==============================================================================
--- head/sys/dev/iwm/if_iwm_phy_db.c	Sun Jun  4 21:12:11 2017	(r319580)
+++ head/sys/dev/iwm/if_iwm_phy_db.c	Sun Jun  4 21:13:13 2017	(r319581)
@@ -195,7 +195,7 @@ enum iwm_phy_db_section_type {
 	IWM_PHY_DB_MAX
 };
 
-#define PHY_DB_CMD 0x6c	/* TEMP API - The actual is 0x8c */
+#define PHY_DB_CMD 0x6c
 
 /*
  * phy db - configure operational ucode

Modified: head/sys/dev/iwm/if_iwmreg.h
==============================================================================
--- head/sys/dev/iwm/if_iwmreg.h	Sun Jun  4 21:12:11 2017	(r319580)
+++ head/sys/dev/iwm/if_iwmreg.h	Sun Jun  4 21:13:13 2017	(r319581)
@@ -1806,7 +1806,7 @@ enum {
 	/* Phy */
 	IWM_PHY_CONFIGURATION_CMD = 0x6a,
 	IWM_CALIB_RES_NOTIF_PHY_DB = 0x6b,
-	/* IWM_PHY_DB_CMD = 0x6c, */
+	IWM_PHY_DB_CMD = 0x6c,
 
 	/* Power - legacy power table command */
 	IWM_POWER_TABLE_CMD = 0x77,


More information about the svn-src-all mailing list