From 1d3f9f7d507ef764428a645d390e5f9f1837710b Mon Sep 17 00:00:00 2001 From: Markus Linnala Date: Mon, 21 Sep 2015 16:11:13 +0300 Subject: [PATCH] change bScan to enum --- chips/mt76x0.c | 4 ++-- chips/rtmp_chip.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chips/mt76x0.c b/chips/mt76x0.c index f81dc02..937a4e6 100644 --- a/chips/mt76x0.c +++ b/chips/mt76x0.c @@ -1781,7 +1781,7 @@ static VOID MT76x0_ChipBBPAdjust(RTMP_ADAPTER *pAd) static VOID MT76x0_ChipSwitchChannel( struct _RTMP_ADAPTER *pAd, UCHAR Channel, - BOOLEAN bScan) + enum SWITCH_CHANNEL_STAGE bScan) { CHAR TxPwer = 0; /* Bbp94 = BBPR94_DEFAULT, TxPwer2 = DEFAULT_RF_TX_POWER; */ UCHAR RFValue = 0; @@ -1933,7 +1933,7 @@ static VOID MT76x0_ChipSwitchChannel( */ MT76x0_VCO_CalibrationMode3(pAd, Channel); - if (bScan) + if (bScan & SCANNING) MT76x0_Calibration(pAd, Channel, FALSE, FALSE, FALSE); RTMPusecDelay(1000); diff --git a/chips/rtmp_chip.c b/chips/rtmp_chip.c index 342e3b9..193b281 100644 --- a/chips/rtmp_chip.c +++ b/chips/rtmp_chip.c @@ -592,7 +592,7 @@ static VOID ChipBBPAdjust(RTMP_ADAPTER *pAd) static VOID Default_ChipSwitchChannel( IN PRTMP_ADAPTER pAd, IN UCHAR Channel, - IN BOOLEAN bScan) + IN enum SWITCH_CHANNEL_STAGE bScan) { DBGPRINT(RT_DEBUG_ERROR, ("%s(): dummy channel switch function!\n", __FUNCTION__)); }