aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192e
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/rtl8192e')
-rw-r--r--drivers/staging/rtl8192e/r8192E_phy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192e/r8192E_phy.c b/drivers/staging/rtl8192e/r8192E_phy.c
index 83e00d72199..7ec6139cb4f 100644
--- a/drivers/staging/rtl8192e/r8192E_phy.c
+++ b/drivers/staging/rtl8192e/r8192E_phy.c
@@ -937,7 +937,7 @@ static u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel,
937 break; 937 break;
938 } 938 }
939 939
940 if (CurrentCmd->CmdID == CmdID_End) { 940 if (CurrentCmd && CurrentCmd->CmdID == CmdID_End) {
941 if ((*stage) == 2) { 941 if ((*stage) == 2) {
942 return true; 942 return true;
943 } else { 943 } else {
@@ -947,6 +947,8 @@ static u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel,
947 } 947 }
948 } 948 }
949 949
950 if (!CurrentCmd)
951 continue;
950 switch (CurrentCmd->CmdID) { 952 switch (CurrentCmd->CmdID) {
951 case CmdID_SetTxPowerLevel: 953 case CmdID_SetTxPowerLevel:
952 if (priv->IC_Cut > (u8)VERSION_8190_BD) 954 if (priv->IC_Cut > (u8)VERSION_8190_BD)