DragonFlyBSD Kernel Audit
DF-1523 / fix.diff
← back to finding ↓ download raw
1
2
3
4
5
6
7
8
9
--- a/sys/dev/netif/ath/ath_hal/ar5212/ar5212_misc.c
+++ b/sys/dev/netif/ath/ath_hal/ar5212/ar5212_misc.c
@@ -780,7 +780,7 @@ ar5212GetNfAdjust(struct ath_hal *ah, const HAL_CHANNEL_INTERNAL *c)
 		{ 5209,  0 },
 		{ 3000,  1 },
-		{    0,  0 },
+		{ 0xffff, 0 },	/* NB: sentinel must exceed any uint16_t channel */
 	};
 	int i;