Skip to content

Commit

Permalink
change bScan to enum
Browse files Browse the repository at this point in the history
  • Loading branch information
maage committed Sep 21, 2015
1 parent f491462 commit 1d3f9f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions chips/mt76x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion chips/rtmp_chip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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__));
}
Expand Down

0 comments on commit 1d3f9f7

Please sign in to comment.