Commit d58df751 authored by Rashika Kheria's avatar Rashika Kheria Committed by Greg Kroah-Hartman
Browse files

Staging: rtl8187se: Fix printk() should include KERN_ facility level



This patch fixes the following checkpatch.pl issues in
ieee80211/dot11d.c-
WARNING: printk() should include KERN_ facility level

Signed-off-by: default avatarRashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8e0e3aee
Loading
Loading
Loading
Loading
+12 −10
Original line number Original line Diff line number Diff line
@@ -21,7 +21,7 @@ Dot11d_Init(struct ieee80211_device *ieee)
	memset(pDot11dInfo->MaxTxPwrDbmList, 0xFF, MAX_CHANNEL_NUMBER+1);
	memset(pDot11dInfo->MaxTxPwrDbmList, 0xFF, MAX_CHANNEL_NUMBER+1);
	RESET_CIE_WATCHDOG(ieee);
	RESET_CIE_WATCHDOG(ieee);


	printk("Dot11d_Init()\n");
	netdev_info(ieee->dev, "Dot11d_Init()\n");
}
}


/*
/*
@@ -74,7 +74,7 @@ Dot11d_UpdateCountryIe(
	PCHNL_TXPOWER_TRIPLE pTriple;
	PCHNL_TXPOWER_TRIPLE pTriple;


	if ((CoutryIeLen - 3)%3 != 0) {
	if ((CoutryIeLen - 3)%3 != 0) {
		printk("Dot11d_UpdateCountryIe(): Invalid country IE, skip it........1\n");
		netdev_info(dev->dev, "Dot11d_UpdateCountryIe(): Invalid country IE, skip it........1\n");
		Dot11d_Reset(dev);
		Dot11d_Reset(dev);
		return;
		return;
	}
	}
@@ -90,7 +90,8 @@ Dot11d_UpdateCountryIe(
			 * It is not in a monotonically increasing order,
			 * It is not in a monotonically increasing order,
			 * so stop processing.
			 * so stop processing.
			 */
			 */
			printk("Dot11d_UpdateCountryIe(): Invalid country IE, skip it........1\n");
			netdev_info(dev->dev,
				    "Dot11d_UpdateCountryIe(): Invalid country IE, skip it........1\n");
			Dot11d_Reset(dev);
			Dot11d_Reset(dev);
			return;
			return;
		}
		}
@@ -99,7 +100,8 @@ Dot11d_UpdateCountryIe(
			 * It is not a valid set of channel id,
			 * It is not a valid set of channel id,
			 * so stop processing
			 * so stop processing
			 */
			 */
			printk("Dot11d_UpdateCountryIe(): Invalid country IE, skip it........2\n");
			netdev_info(dev->dev,
				    "Dot11d_UpdateCountryIe(): Invalid country IE, skip it........2\n");
			Dot11d_Reset(dev);
			Dot11d_Reset(dev);
			return;
			return;
		}
		}
@@ -113,11 +115,11 @@ Dot11d_UpdateCountryIe(
		pTriple = (PCHNL_TXPOWER_TRIPLE)((u8 *)pTriple + 3);
		pTriple = (PCHNL_TXPOWER_TRIPLE)((u8 *)pTriple + 3);
	}
	}
#if 1
#if 1
	printk("Channel List:");
	netdev_info(dev->dev, "Channel List:");
	for (i = 1; i <= MAX_CHANNEL_NUMBER; i++)
	for (i = 1; i <= MAX_CHANNEL_NUMBER; i++)
		if (pDot11dInfo->channel_map[i] > 0)
		if (pDot11dInfo->channel_map[i] > 0)
			printk(" %d", i);
			netdev_info(dev->dev, " %d", i);
	printk("\n");
	netdev_info(dev->dev, "\n");
#endif
#endif


	UPDATE_CIE_SRC(dev, pTaddr);
	UPDATE_CIE_SRC(dev, pTaddr);
@@ -137,7 +139,7 @@ DOT11D_GetMaxTxPwrInDbm(
	u8 MaxTxPwrInDbm = 255;
	u8 MaxTxPwrInDbm = 255;


	if (MAX_CHANNEL_NUMBER < Channel) {
	if (MAX_CHANNEL_NUMBER < Channel) {
		printk("DOT11D_GetMaxTxPwrInDbm(): Invalid Channel\n");
		netdev_info(dev->dev, "DOT11D_GetMaxTxPwrInDbm(): Invalid Channel\n");
		return MaxTxPwrInDbm;
		return MaxTxPwrInDbm;
	}
	}
	if (pDot11dInfo->channel_map[Channel]) {
	if (pDot11dInfo->channel_map[Channel]) {
@@ -179,7 +181,7 @@ int IsLegalChannel(
	PRT_DOT11D_INFO pDot11dInfo = GET_DOT11D_INFO(dev);
	PRT_DOT11D_INFO pDot11dInfo = GET_DOT11D_INFO(dev);


	if (MAX_CHANNEL_NUMBER < channel) {
	if (MAX_CHANNEL_NUMBER < channel) {
		printk("IsLegalChannel(): Invalid Channel\n");
		netdev_info(dev->dev, "IsLegalChannel(): Invalid Channel\n");
		return 0;
		return 0;
	}
	}
	if (pDot11dInfo->channel_map[channel] > 0)
	if (pDot11dInfo->channel_map[channel] > 0)
@@ -204,7 +206,7 @@ int ToLegalChannel(
	}
	}


	if (MAX_CHANNEL_NUMBER < channel) {
	if (MAX_CHANNEL_NUMBER < channel) {
		printk("IsLegalChannel(): Invalid Channel\n");
		netdev_info(dev->dev, "IsLegalChannel(): Invalid Channel\n");
		return default_chn;
		return default_chn;
	}
	}