diff options
-rw-r--r-- | drivers/staging/rtl8712/rtl8712_led.c | 144 | ||||
-rw-r--r-- | drivers/staging/rtl8712/rtl871x_cmd.c | 2 | ||||
-rw-r--r-- | drivers/staging/rtl8712/rtl871x_mlme.c | 6 | ||||
-rw-r--r-- | drivers/staging/rtl8712/rtl871x_pwrctrl.c | 2 | ||||
-rw-r--r-- | drivers/staging/rtl8712/rtl871x_sta_mgt.c | 2 |
5 files changed, 78 insertions, 78 deletions
diff --git a/drivers/staging/rtl8712/rtl8712_led.c b/drivers/staging/rtl8712/rtl8712_led.c index f1d47a0676c3..ada8d5dafd49 100644 --- a/drivers/staging/rtl8712/rtl8712_led.c +++ b/drivers/staging/rtl8712/rtl8712_led.c | |||
@@ -898,11 +898,11 @@ static void SwLedControlMode1(struct _adapter *padapter, | |||
898 | IS_LED_WPS_BLINKING(pLed)) | 898 | IS_LED_WPS_BLINKING(pLed)) |
899 | return; | 899 | return; |
900 | if (pLed->bLedLinkBlinkInProgress == true) { | 900 | if (pLed->bLedLinkBlinkInProgress == true) { |
901 | del_timer_sync(&pLed->BlinkTimer); | 901 | del_timer(&pLed->BlinkTimer); |
902 | pLed->bLedLinkBlinkInProgress = false; | 902 | pLed->bLedLinkBlinkInProgress = false; |
903 | } | 903 | } |
904 | if (pLed->bLedBlinkInProgress == true) { | 904 | if (pLed->bLedBlinkInProgress == true) { |
905 | del_timer_sync(&pLed->BlinkTimer); | 905 | del_timer(&pLed->BlinkTimer); |
906 | pLed->bLedBlinkInProgress = false; | 906 | pLed->bLedBlinkInProgress = false; |
907 | } | 907 | } |
908 | pLed->bLedNoLinkBlinkInProgress = true; | 908 | pLed->bLedNoLinkBlinkInProgress = true; |
@@ -921,11 +921,11 @@ static void SwLedControlMode1(struct _adapter *padapter, | |||
921 | IS_LED_WPS_BLINKING(pLed)) | 921 | IS_LED_WPS_BLINKING(pLed)) |
922 | return; | 922 | return; |
923 | if (pLed->bLedNoLinkBlinkInProgress == true) { | 923 | if (pLed->bLedNoLinkBlinkInProgress == true) { |
924 | del_timer_sync(&pLed->BlinkTimer); | 924 | del_timer(&pLed->BlinkTimer); |
925 | pLed->bLedNoLinkBlinkInProgress = false; | 925 | pLed->bLedNoLinkBlinkInProgress = false; |
926 | } | 926 | } |
927 | if (pLed->bLedBlinkInProgress == true) { | 927 | if (pLed->bLedBlinkInProgress == true) { |
928 | del_timer_sync(&pLed->BlinkTimer); | 928 | del_timer(&pLed->BlinkTimer); |
929 | pLed->bLedBlinkInProgress = false; | 929 | pLed->bLedBlinkInProgress = false; |
930 | } | 930 | } |
931 | pLed->bLedLinkBlinkInProgress = true; | 931 | pLed->bLedLinkBlinkInProgress = true; |
@@ -946,15 +946,15 @@ static void SwLedControlMode1(struct _adapter *padapter, | |||
946 | if (IS_LED_WPS_BLINKING(pLed)) | 946 | if (IS_LED_WPS_BLINKING(pLed)) |
947 | return; | 947 | return; |
948 | if (pLed->bLedNoLinkBlinkInProgress == true) { | 948 | if (pLed->bLedNoLinkBlinkInProgress == true) { |
949 | del_timer_sync(&pLed->BlinkTimer); | 949 | del_timer(&pLed->BlinkTimer); |
950 | pLed->bLedNoLinkBlinkInProgress = false; | 950 | pLed->bLedNoLinkBlinkInProgress = false; |
951 | } | 951 | } |
952 | if (pLed->bLedLinkBlinkInProgress == true) { | 952 | if (pLed->bLedLinkBlinkInProgress == true) { |
953 | del_timer_sync(&pLed->BlinkTimer); | 953 | del_timer(&pLed->BlinkTimer); |
954 | pLed->bLedLinkBlinkInProgress = false; | 954 | pLed->bLedLinkBlinkInProgress = false; |
955 | } | 955 | } |
956 | if (pLed->bLedBlinkInProgress == true) { | 956 | if (pLed->bLedBlinkInProgress == true) { |
957 | del_timer_sync(&pLed->BlinkTimer); | 957 | del_timer(&pLed->BlinkTimer); |
958 | pLed->bLedBlinkInProgress = false; | 958 | pLed->bLedBlinkInProgress = false; |
959 | } | 959 | } |
960 | pLed->bLedScanBlinkInProgress = true; | 960 | pLed->bLedScanBlinkInProgress = true; |
@@ -975,11 +975,11 @@ static void SwLedControlMode1(struct _adapter *padapter, | |||
975 | IS_LED_WPS_BLINKING(pLed)) | 975 | IS_LED_WPS_BLINKING(pLed)) |
976 | return; | 976 | return; |
977 | if (pLed->bLedNoLinkBlinkInProgress == true) { | 977 | if (pLed->bLedNoLinkBlinkInProgress == true) { |
978 | del_timer_sync(&pLed->BlinkTimer); | 978 | del_timer(&pLed->BlinkTimer); |
979 | pLed->bLedNoLinkBlinkInProgress = false; | 979 | pLed->bLedNoLinkBlinkInProgress = false; |
980 | } | 980 | } |
981 | if (pLed->bLedLinkBlinkInProgress == true) { | 981 | if (pLed->bLedLinkBlinkInProgress == true) { |
982 | del_timer_sync(&pLed->BlinkTimer); | 982 | del_timer(&pLed->BlinkTimer); |
983 | pLed->bLedLinkBlinkInProgress = false; | 983 | pLed->bLedLinkBlinkInProgress = false; |
984 | } | 984 | } |
985 | pLed->bLedBlinkInProgress = true; | 985 | pLed->bLedBlinkInProgress = true; |
@@ -998,19 +998,19 @@ static void SwLedControlMode1(struct _adapter *padapter, | |||
998 | case LED_CTL_START_WPS_BOTTON: | 998 | case LED_CTL_START_WPS_BOTTON: |
999 | if (pLed->bLedWPSBlinkInProgress == false) { | 999 | if (pLed->bLedWPSBlinkInProgress == false) { |
1000 | if (pLed->bLedNoLinkBlinkInProgress == true) { | 1000 | if (pLed->bLedNoLinkBlinkInProgress == true) { |
1001 | del_timer_sync(&pLed->BlinkTimer); | 1001 | del_timer(&pLed->BlinkTimer); |
1002 | pLed->bLedNoLinkBlinkInProgress = false; | 1002 | pLed->bLedNoLinkBlinkInProgress = false; |
1003 | } | 1003 | } |
1004 | if (pLed->bLedLinkBlinkInProgress == true) { | 1004 | if (pLed->bLedLinkBlinkInProgress == true) { |
1005 | del_timer_sync(&pLed->BlinkTimer); | 1005 | del_timer(&pLed->BlinkTimer); |
1006 | pLed->bLedLinkBlinkInProgress = false; | 1006 | pLed->bLedLinkBlinkInProgress = false; |
1007 | } | 1007 | } |
1008 | if (pLed->bLedBlinkInProgress == true) { | 1008 | if (pLed->bLedBlinkInProgress == true) { |
1009 | del_timer_sync(&pLed->BlinkTimer); | 1009 | del_timer(&pLed->BlinkTimer); |
1010 | pLed->bLedBlinkInProgress = false; | 1010 | pLed->bLedBlinkInProgress = false; |
1011 | } | 1011 | } |
1012 | if (pLed->bLedScanBlinkInProgress == true) { | 1012 | if (pLed->bLedScanBlinkInProgress == true) { |
1013 | del_timer_sync(&pLed->BlinkTimer); | 1013 | del_timer(&pLed->BlinkTimer); |
1014 | pLed->bLedScanBlinkInProgress = false; | 1014 | pLed->bLedScanBlinkInProgress = false; |
1015 | } | 1015 | } |
1016 | pLed->bLedWPSBlinkInProgress = true; | 1016 | pLed->bLedWPSBlinkInProgress = true; |
@@ -1025,23 +1025,23 @@ static void SwLedControlMode1(struct _adapter *padapter, | |||
1025 | break; | 1025 | break; |
1026 | case LED_CTL_STOP_WPS: | 1026 | case LED_CTL_STOP_WPS: |
1027 | if (pLed->bLedNoLinkBlinkInProgress == true) { | 1027 | if (pLed->bLedNoLinkBlinkInProgress == true) { |
1028 | del_timer_sync(&pLed->BlinkTimer); | 1028 | del_timer(&pLed->BlinkTimer); |
1029 | pLed->bLedNoLinkBlinkInProgress = false; | 1029 | pLed->bLedNoLinkBlinkInProgress = false; |
1030 | } | 1030 | } |
1031 | if (pLed->bLedLinkBlinkInProgress == true) { | 1031 | if (pLed->bLedLinkBlinkInProgress == true) { |
1032 | del_timer_sync(&pLed->BlinkTimer); | 1032 | del_timer(&pLed->BlinkTimer); |
1033 | pLed->bLedLinkBlinkInProgress = false; | 1033 | pLed->bLedLinkBlinkInProgress = false; |
1034 | } | 1034 | } |
1035 | if (pLed->bLedBlinkInProgress == true) { | 1035 | if (pLed->bLedBlinkInProgress == true) { |
1036 | del_timer_sync(&pLed->BlinkTimer); | 1036 | del_timer(&pLed->BlinkTimer); |
1037 | pLed->bLedBlinkInProgress = false; | 1037 | pLed->bLedBlinkInProgress = false; |
1038 | } | 1038 | } |
1039 | if (pLed->bLedScanBlinkInProgress == true) { | 1039 | if (pLed->bLedScanBlinkInProgress == true) { |
1040 | del_timer_sync(&pLed->BlinkTimer); | 1040 | del_timer(&pLed->BlinkTimer); |
1041 | pLed->bLedScanBlinkInProgress = false; | 1041 | pLed->bLedScanBlinkInProgress = false; |
1042 | } | 1042 | } |
1043 | if (pLed->bLedWPSBlinkInProgress) | 1043 | if (pLed->bLedWPSBlinkInProgress) |
1044 | del_timer_sync(&pLed->BlinkTimer); | 1044 | del_timer(&pLed->BlinkTimer); |
1045 | else | 1045 | else |
1046 | pLed->bLedWPSBlinkInProgress = true; | 1046 | pLed->bLedWPSBlinkInProgress = true; |
1047 | pLed->CurrLedState = LED_BLINK_WPS_STOP; | 1047 | pLed->CurrLedState = LED_BLINK_WPS_STOP; |
@@ -1057,7 +1057,7 @@ static void SwLedControlMode1(struct _adapter *padapter, | |||
1057 | break; | 1057 | break; |
1058 | case LED_CTL_STOP_WPS_FAIL: | 1058 | case LED_CTL_STOP_WPS_FAIL: |
1059 | if (pLed->bLedWPSBlinkInProgress) { | 1059 | if (pLed->bLedWPSBlinkInProgress) { |
1060 | del_timer_sync(&pLed->BlinkTimer); | 1060 | del_timer(&pLed->BlinkTimer); |
1061 | pLed->bLedWPSBlinkInProgress = false; | 1061 | pLed->bLedWPSBlinkInProgress = false; |
1062 | } | 1062 | } |
1063 | pLed->bLedNoLinkBlinkInProgress = true; | 1063 | pLed->bLedNoLinkBlinkInProgress = true; |
@@ -1073,23 +1073,23 @@ static void SwLedControlMode1(struct _adapter *padapter, | |||
1073 | pLed->CurrLedState = LED_OFF; | 1073 | pLed->CurrLedState = LED_OFF; |
1074 | pLed->BlinkingLedState = LED_OFF; | 1074 | pLed->BlinkingLedState = LED_OFF; |
1075 | if (pLed->bLedNoLinkBlinkInProgress) { | 1075 | if (pLed->bLedNoLinkBlinkInProgress) { |
1076 | del_timer_sync(&pLed->BlinkTimer); | 1076 | del_timer(&pLed->BlinkTimer); |
1077 | pLed->bLedNoLinkBlinkInProgress = false; | 1077 | pLed->bLedNoLinkBlinkInProgress = false; |
1078 | } | 1078 | } |
1079 | if (pLed->bLedLinkBlinkInProgress) { | 1079 | if (pLed->bLedLinkBlinkInProgress) { |
1080 | del_timer_sync(&pLed->BlinkTimer); | 1080 | del_timer(&pLed->BlinkTimer); |
1081 | pLed->bLedLinkBlinkInProgress = false; | 1081 | pLed->bLedLinkBlinkInProgress = false; |
1082 | } | 1082 | } |
1083 | if (pLed->bLedBlinkInProgress) { | 1083 | if (pLed->bLedBlinkInProgress) { |
1084 | del_timer_sync(&pLed->BlinkTimer); | 1084 | del_timer(&pLed->BlinkTimer); |
1085 | pLed->bLedBlinkInProgress = false; | 1085 | pLed->bLedBlinkInProgress = false; |
1086 | } | 1086 | } |
1087 | if (pLed->bLedWPSBlinkInProgress) { | 1087 | if (pLed->bLedWPSBlinkInProgress) { |
1088 | del_timer_sync(&pLed->BlinkTimer); | 1088 | del_timer(&pLed->BlinkTimer); |
1089 | pLed->bLedWPSBlinkInProgress = false; | 1089 | pLed->bLedWPSBlinkInProgress = false; |
1090 | } | 1090 | } |
1091 | if (pLed->bLedScanBlinkInProgress) { | 1091 | if (pLed->bLedScanBlinkInProgress) { |
1092 | del_timer_sync(&pLed->BlinkTimer); | 1092 | del_timer(&pLed->BlinkTimer); |
1093 | pLed->bLedScanBlinkInProgress = false; | 1093 | pLed->bLedScanBlinkInProgress = false; |
1094 | } | 1094 | } |
1095 | mod_timer(&pLed->BlinkTimer, | 1095 | mod_timer(&pLed->BlinkTimer, |
@@ -1116,7 +1116,7 @@ static void SwLedControlMode2(struct _adapter *padapter, | |||
1116 | return; | 1116 | return; |
1117 | 1117 | ||
1118 | if (pLed->bLedBlinkInProgress == true) { | 1118 | if (pLed->bLedBlinkInProgress == true) { |
1119 | del_timer_sync(&pLed->BlinkTimer); | 1119 | del_timer(&pLed->BlinkTimer); |
1120 | pLed->bLedBlinkInProgress = false; | 1120 | pLed->bLedBlinkInProgress = false; |
1121 | } | 1121 | } |
1122 | pLed->bLedScanBlinkInProgress = true; | 1122 | pLed->bLedScanBlinkInProgress = true; |
@@ -1154,11 +1154,11 @@ static void SwLedControlMode2(struct _adapter *padapter, | |||
1154 | pLed->CurrLedState = LED_ON; | 1154 | pLed->CurrLedState = LED_ON; |
1155 | pLed->BlinkingLedState = LED_ON; | 1155 | pLed->BlinkingLedState = LED_ON; |
1156 | if (pLed->bLedBlinkInProgress) { | 1156 | if (pLed->bLedBlinkInProgress) { |
1157 | del_timer_sync(&pLed->BlinkTimer); | 1157 | del_timer(&pLed->BlinkTimer); |
1158 | pLed->bLedBlinkInProgress = false; | 1158 | pLed->bLedBlinkInProgress = false; |
1159 | } | 1159 | } |
1160 | if (pLed->bLedScanBlinkInProgress) { | 1160 | if (pLed->bLedScanBlinkInProgress) { |
1161 | del_timer_sync(&pLed->BlinkTimer); | 1161 | del_timer(&pLed->BlinkTimer); |
1162 | pLed->bLedScanBlinkInProgress = false; | 1162 | pLed->bLedScanBlinkInProgress = false; |
1163 | } | 1163 | } |
1164 | 1164 | ||
@@ -1170,11 +1170,11 @@ static void SwLedControlMode2(struct _adapter *padapter, | |||
1170 | case LED_CTL_START_WPS_BOTTON: | 1170 | case LED_CTL_START_WPS_BOTTON: |
1171 | if (pLed->bLedWPSBlinkInProgress == false) { | 1171 | if (pLed->bLedWPSBlinkInProgress == false) { |
1172 | if (pLed->bLedBlinkInProgress == true) { | 1172 | if (pLed->bLedBlinkInProgress == true) { |
1173 | del_timer_sync(&pLed->BlinkTimer); | 1173 | del_timer(&pLed->BlinkTimer); |
1174 | pLed->bLedBlinkInProgress = false; | 1174 | pLed->bLedBlinkInProgress = false; |
1175 | } | 1175 | } |
1176 | if (pLed->bLedScanBlinkInProgress == true) { | 1176 | if (pLed->bLedScanBlinkInProgress == true) { |
1177 | del_timer_sync(&pLed->BlinkTimer); | 1177 | del_timer(&pLed->BlinkTimer); |
1178 | pLed->bLedScanBlinkInProgress = false; | 1178 | pLed->bLedScanBlinkInProgress = false; |
1179 | } | 1179 | } |
1180 | pLed->bLedWPSBlinkInProgress = true; | 1180 | pLed->bLedWPSBlinkInProgress = true; |
@@ -1214,15 +1214,15 @@ static void SwLedControlMode2(struct _adapter *padapter, | |||
1214 | pLed->CurrLedState = LED_OFF; | 1214 | pLed->CurrLedState = LED_OFF; |
1215 | pLed->BlinkingLedState = LED_OFF; | 1215 | pLed->BlinkingLedState = LED_OFF; |
1216 | if (pLed->bLedBlinkInProgress) { | 1216 | if (pLed->bLedBlinkInProgress) { |
1217 | del_timer_sync(&pLed->BlinkTimer); | 1217 | del_timer(&pLed->BlinkTimer); |
1218 | pLed->bLedBlinkInProgress = false; | 1218 | pLed->bLedBlinkInProgress = false; |
1219 | } | 1219 | } |
1220 | if (pLed->bLedScanBlinkInProgress) { | 1220 | if (pLed->bLedScanBlinkInProgress) { |
1221 | del_timer_sync(&pLed->BlinkTimer); | 1221 | del_timer(&pLed->BlinkTimer); |
1222 | pLed->bLedScanBlinkInProgress = false; | 1222 | pLed->bLedScanBlinkInProgress = false; |
1223 | } | 1223 | } |
1224 | if (pLed->bLedWPSBlinkInProgress) { | 1224 | if (pLed->bLedWPSBlinkInProgress) { |
1225 | del_timer_sync(&pLed->BlinkTimer); | 1225 | del_timer(&pLed->BlinkTimer); |
1226 | pLed->bLedWPSBlinkInProgress = false; | 1226 | pLed->bLedWPSBlinkInProgress = false; |
1227 | } | 1227 | } |
1228 | mod_timer(&pLed->BlinkTimer, | 1228 | mod_timer(&pLed->BlinkTimer, |
@@ -1248,7 +1248,7 @@ static void SwLedControlMode3(struct _adapter *padapter, | |||
1248 | if (IS_LED_WPS_BLINKING(pLed)) | 1248 | if (IS_LED_WPS_BLINKING(pLed)) |
1249 | return; | 1249 | return; |
1250 | if (pLed->bLedBlinkInProgress == true) { | 1250 | if (pLed->bLedBlinkInProgress == true) { |
1251 | del_timer_sync(&pLed->BlinkTimer); | 1251 | del_timer(&pLed->BlinkTimer); |
1252 | pLed->bLedBlinkInProgress = false; | 1252 | pLed->bLedBlinkInProgress = false; |
1253 | } | 1253 | } |
1254 | pLed->bLedScanBlinkInProgress = true; | 1254 | pLed->bLedScanBlinkInProgress = true; |
@@ -1286,11 +1286,11 @@ static void SwLedControlMode3(struct _adapter *padapter, | |||
1286 | pLed->CurrLedState = LED_ON; | 1286 | pLed->CurrLedState = LED_ON; |
1287 | pLed->BlinkingLedState = LED_ON; | 1287 | pLed->BlinkingLedState = LED_ON; |
1288 | if (pLed->bLedBlinkInProgress) { | 1288 | if (pLed->bLedBlinkInProgress) { |
1289 | del_timer_sync(&pLed->BlinkTimer); | 1289 | del_timer(&pLed->BlinkTimer); |
1290 | pLed->bLedBlinkInProgress = false; | 1290 | pLed->bLedBlinkInProgress = false; |
1291 | } | 1291 | } |
1292 | if (pLed->bLedScanBlinkInProgress) { | 1292 | if (pLed->bLedScanBlinkInProgress) { |
1293 | del_timer_sync(&pLed->BlinkTimer); | 1293 | del_timer(&pLed->BlinkTimer); |
1294 | pLed->bLedScanBlinkInProgress = false; | 1294 | pLed->bLedScanBlinkInProgress = false; |
1295 | } | 1295 | } |
1296 | mod_timer(&pLed->BlinkTimer, | 1296 | mod_timer(&pLed->BlinkTimer, |
@@ -1300,11 +1300,11 @@ static void SwLedControlMode3(struct _adapter *padapter, | |||
1300 | case LED_CTL_START_WPS_BOTTON: | 1300 | case LED_CTL_START_WPS_BOTTON: |
1301 | if (pLed->bLedWPSBlinkInProgress == false) { | 1301 | if (pLed->bLedWPSBlinkInProgress == false) { |
1302 | if (pLed->bLedBlinkInProgress == true) { | 1302 | if (pLed->bLedBlinkInProgress == true) { |
1303 | del_timer_sync(&pLed->BlinkTimer); | 1303 | del_timer(&pLed->BlinkTimer); |
1304 | pLed->bLedBlinkInProgress = false; | 1304 | pLed->bLedBlinkInProgress = false; |
1305 | } | 1305 | } |
1306 | if (pLed->bLedScanBlinkInProgress == true) { | 1306 | if (pLed->bLedScanBlinkInProgress == true) { |
1307 | del_timer_sync(&pLed->BlinkTimer); | 1307 | del_timer(&pLed->BlinkTimer); |
1308 | pLed->bLedScanBlinkInProgress = false; | 1308 | pLed->bLedScanBlinkInProgress = false; |
1309 | } | 1309 | } |
1310 | pLed->bLedWPSBlinkInProgress = true; | 1310 | pLed->bLedWPSBlinkInProgress = true; |
@@ -1319,7 +1319,7 @@ static void SwLedControlMode3(struct _adapter *padapter, | |||
1319 | break; | 1319 | break; |
1320 | case LED_CTL_STOP_WPS: | 1320 | case LED_CTL_STOP_WPS: |
1321 | if (pLed->bLedWPSBlinkInProgress) { | 1321 | if (pLed->bLedWPSBlinkInProgress) { |
1322 | del_timer_sync(&(pLed->BlinkTimer)); | 1322 | del_timer(&pLed->BlinkTimer); |
1323 | pLed->bLedWPSBlinkInProgress = false; | 1323 | pLed->bLedWPSBlinkInProgress = false; |
1324 | } else | 1324 | } else |
1325 | pLed->bLedWPSBlinkInProgress = true; | 1325 | pLed->bLedWPSBlinkInProgress = true; |
@@ -1336,7 +1336,7 @@ static void SwLedControlMode3(struct _adapter *padapter, | |||
1336 | break; | 1336 | break; |
1337 | case LED_CTL_STOP_WPS_FAIL: | 1337 | case LED_CTL_STOP_WPS_FAIL: |
1338 | if (pLed->bLedWPSBlinkInProgress) { | 1338 | if (pLed->bLedWPSBlinkInProgress) { |
1339 | del_timer_sync(&pLed->BlinkTimer); | 1339 | del_timer(&pLed->BlinkTimer); |
1340 | pLed->bLedWPSBlinkInProgress = false; | 1340 | pLed->bLedWPSBlinkInProgress = false; |
1341 | } | 1341 | } |
1342 | pLed->CurrLedState = LED_OFF; | 1342 | pLed->CurrLedState = LED_OFF; |
@@ -1357,15 +1357,15 @@ static void SwLedControlMode3(struct _adapter *padapter, | |||
1357 | pLed->CurrLedState = LED_OFF; | 1357 | pLed->CurrLedState = LED_OFF; |
1358 | pLed->BlinkingLedState = LED_OFF; | 1358 | pLed->BlinkingLedState = LED_OFF; |
1359 | if (pLed->bLedBlinkInProgress) { | 1359 | if (pLed->bLedBlinkInProgress) { |
1360 | del_timer_sync(&pLed->BlinkTimer); | 1360 | del_timer(&pLed->BlinkTimer); |
1361 | pLed->bLedBlinkInProgress = false; | 1361 | pLed->bLedBlinkInProgress = false; |
1362 | } | 1362 | } |
1363 | if (pLed->bLedScanBlinkInProgress) { | 1363 | if (pLed->bLedScanBlinkInProgress) { |
1364 | del_timer_sync(&pLed->BlinkTimer); | 1364 | del_timer(&pLed->BlinkTimer); |
1365 | pLed->bLedScanBlinkInProgress = false; | 1365 | pLed->bLedScanBlinkInProgress = false; |
1366 | } | 1366 | } |
1367 | if (pLed->bLedWPSBlinkInProgress) { | 1367 | if (pLed->bLedWPSBlinkInProgress) { |
1368 | del_timer_sync(&pLed->BlinkTimer); | 1368 | del_timer(&pLed->BlinkTimer); |
1369 | pLed->bLedWPSBlinkInProgress = false; | 1369 | pLed->bLedWPSBlinkInProgress = false; |
1370 | } | 1370 | } |
1371 | mod_timer(&pLed->BlinkTimer, | 1371 | mod_timer(&pLed->BlinkTimer, |
@@ -1388,7 +1388,7 @@ static void SwLedControlMode4(struct _adapter *padapter, | |||
1388 | case LED_CTL_START_TO_LINK: | 1388 | case LED_CTL_START_TO_LINK: |
1389 | if (pLed1->bLedWPSBlinkInProgress) { | 1389 | if (pLed1->bLedWPSBlinkInProgress) { |
1390 | pLed1->bLedWPSBlinkInProgress = false; | 1390 | pLed1->bLedWPSBlinkInProgress = false; |
1391 | del_timer_sync(&pLed1->BlinkTimer); | 1391 | del_timer(&pLed1->BlinkTimer); |
1392 | pLed1->BlinkingLedState = LED_OFF; | 1392 | pLed1->BlinkingLedState = LED_OFF; |
1393 | pLed1->CurrLedState = LED_OFF; | 1393 | pLed1->CurrLedState = LED_OFF; |
1394 | if (pLed1->bLedOn) | 1394 | if (pLed1->bLedOn) |
@@ -1400,11 +1400,11 @@ static void SwLedControlMode4(struct _adapter *padapter, | |||
1400 | IS_LED_WPS_BLINKING(pLed)) | 1400 | IS_LED_WPS_BLINKING(pLed)) |
1401 | return; | 1401 | return; |
1402 | if (pLed->bLedBlinkInProgress == true) { | 1402 | if (pLed->bLedBlinkInProgress == true) { |
1403 | del_timer_sync(&pLed->BlinkTimer); | 1403 | del_timer(&pLed->BlinkTimer); |
1404 | pLed->bLedBlinkInProgress = false; | 1404 | pLed->bLedBlinkInProgress = false; |
1405 | } | 1405 | } |
1406 | if (pLed->bLedNoLinkBlinkInProgress == true) { | 1406 | if (pLed->bLedNoLinkBlinkInProgress == true) { |
1407 | del_timer_sync(&pLed->BlinkTimer); | 1407 | del_timer(&pLed->BlinkTimer); |
1408 | pLed->bLedNoLinkBlinkInProgress = false; | 1408 | pLed->bLedNoLinkBlinkInProgress = false; |
1409 | } | 1409 | } |
1410 | pLed->bLedStartToLinkBlinkInProgress = true; | 1410 | pLed->bLedStartToLinkBlinkInProgress = true; |
@@ -1426,7 +1426,7 @@ static void SwLedControlMode4(struct _adapter *padapter, | |||
1426 | if (LedAction == LED_CTL_LINK) { | 1426 | if (LedAction == LED_CTL_LINK) { |
1427 | if (pLed1->bLedWPSBlinkInProgress) { | 1427 | if (pLed1->bLedWPSBlinkInProgress) { |
1428 | pLed1->bLedWPSBlinkInProgress = false; | 1428 | pLed1->bLedWPSBlinkInProgress = false; |
1429 | del_timer_sync(&pLed1->BlinkTimer); | 1429 | del_timer(&pLed1->BlinkTimer); |
1430 | pLed1->BlinkingLedState = LED_OFF; | 1430 | pLed1->BlinkingLedState = LED_OFF; |
1431 | pLed1->CurrLedState = LED_OFF; | 1431 | pLed1->CurrLedState = LED_OFF; |
1432 | if (pLed1->bLedOn) | 1432 | if (pLed1->bLedOn) |
@@ -1439,7 +1439,7 @@ static void SwLedControlMode4(struct _adapter *padapter, | |||
1439 | IS_LED_WPS_BLINKING(pLed)) | 1439 | IS_LED_WPS_BLINKING(pLed)) |
1440 | return; | 1440 | return; |
1441 | if (pLed->bLedBlinkInProgress == true) { | 1441 | if (pLed->bLedBlinkInProgress == true) { |
1442 | del_timer_sync(&pLed->BlinkTimer); | 1442 | del_timer(&pLed->BlinkTimer); |
1443 | pLed->bLedBlinkInProgress = false; | 1443 | pLed->bLedBlinkInProgress = false; |
1444 | } | 1444 | } |
1445 | pLed->bLedNoLinkBlinkInProgress = true; | 1445 | pLed->bLedNoLinkBlinkInProgress = true; |
@@ -1460,11 +1460,11 @@ static void SwLedControlMode4(struct _adapter *padapter, | |||
1460 | if (IS_LED_WPS_BLINKING(pLed)) | 1460 | if (IS_LED_WPS_BLINKING(pLed)) |
1461 | return; | 1461 | return; |
1462 | if (pLed->bLedNoLinkBlinkInProgress == true) { | 1462 | if (pLed->bLedNoLinkBlinkInProgress == true) { |
1463 | del_timer_sync(&pLed->BlinkTimer); | 1463 | del_timer(&pLed->BlinkTimer); |
1464 | pLed->bLedNoLinkBlinkInProgress = false; | 1464 | pLed->bLedNoLinkBlinkInProgress = false; |
1465 | } | 1465 | } |
1466 | if (pLed->bLedBlinkInProgress == true) { | 1466 | if (pLed->bLedBlinkInProgress == true) { |
1467 | del_timer_sync(&pLed->BlinkTimer); | 1467 | del_timer(&pLed->BlinkTimer); |
1468 | pLed->bLedBlinkInProgress = false; | 1468 | pLed->bLedBlinkInProgress = false; |
1469 | } | 1469 | } |
1470 | pLed->bLedScanBlinkInProgress = true; | 1470 | pLed->bLedScanBlinkInProgress = true; |
@@ -1485,7 +1485,7 @@ static void SwLedControlMode4(struct _adapter *padapter, | |||
1485 | IS_LED_WPS_BLINKING(pLed)) | 1485 | IS_LED_WPS_BLINKING(pLed)) |
1486 | return; | 1486 | return; |
1487 | if (pLed->bLedNoLinkBlinkInProgress == true) { | 1487 | if (pLed->bLedNoLinkBlinkInProgress == true) { |
1488 | del_timer_sync(&pLed->BlinkTimer); | 1488 | del_timer(&pLed->BlinkTimer); |
1489 | pLed->bLedNoLinkBlinkInProgress = false; | 1489 | pLed->bLedNoLinkBlinkInProgress = false; |
1490 | } | 1490 | } |
1491 | pLed->bLedBlinkInProgress = true; | 1491 | pLed->bLedBlinkInProgress = true; |
@@ -1503,7 +1503,7 @@ static void SwLedControlMode4(struct _adapter *padapter, | |||
1503 | case LED_CTL_START_WPS_BOTTON: | 1503 | case LED_CTL_START_WPS_BOTTON: |
1504 | if (pLed1->bLedWPSBlinkInProgress) { | 1504 | if (pLed1->bLedWPSBlinkInProgress) { |
1505 | pLed1->bLedWPSBlinkInProgress = false; | 1505 | pLed1->bLedWPSBlinkInProgress = false; |
1506 | del_timer_sync(&(pLed1->BlinkTimer)); | 1506 | del_timer(&pLed1->BlinkTimer); |
1507 | pLed1->BlinkingLedState = LED_OFF; | 1507 | pLed1->BlinkingLedState = LED_OFF; |
1508 | pLed1->CurrLedState = LED_OFF; | 1508 | pLed1->CurrLedState = LED_OFF; |
1509 | if (pLed1->bLedOn) | 1509 | if (pLed1->bLedOn) |
@@ -1512,15 +1512,15 @@ static void SwLedControlMode4(struct _adapter *padapter, | |||
1512 | } | 1512 | } |
1513 | if (pLed->bLedWPSBlinkInProgress == false) { | 1513 | if (pLed->bLedWPSBlinkInProgress == false) { |
1514 | if (pLed->bLedNoLinkBlinkInProgress == true) { | 1514 | if (pLed->bLedNoLinkBlinkInProgress == true) { |
1515 | del_timer_sync(&pLed->BlinkTimer); | 1515 | del_timer(&pLed->BlinkTimer); |
1516 | pLed->bLedNoLinkBlinkInProgress = false; | 1516 | pLed->bLedNoLinkBlinkInProgress = false; |
1517 | } | 1517 | } |
1518 | if (pLed->bLedBlinkInProgress == true) { | 1518 | if (pLed->bLedBlinkInProgress == true) { |
1519 | del_timer_sync(&pLed->BlinkTimer); | 1519 | del_timer(&pLed->BlinkTimer); |
1520 | pLed->bLedBlinkInProgress = false; | 1520 | pLed->bLedBlinkInProgress = false; |
1521 | } | 1521 | } |
1522 | if (pLed->bLedScanBlinkInProgress == true) { | 1522 | if (pLed->bLedScanBlinkInProgress == true) { |
1523 | del_timer_sync(&pLed->BlinkTimer); | 1523 | del_timer(&pLed->BlinkTimer); |
1524 | pLed->bLedScanBlinkInProgress = false; | 1524 | pLed->bLedScanBlinkInProgress = false; |
1525 | } | 1525 | } |
1526 | pLed->bLedWPSBlinkInProgress = true; | 1526 | pLed->bLedWPSBlinkInProgress = true; |
@@ -1538,7 +1538,7 @@ static void SwLedControlMode4(struct _adapter *padapter, | |||
1538 | break; | 1538 | break; |
1539 | case LED_CTL_STOP_WPS: /*WPS connect success*/ | 1539 | case LED_CTL_STOP_WPS: /*WPS connect success*/ |
1540 | if (pLed->bLedWPSBlinkInProgress) { | 1540 | if (pLed->bLedWPSBlinkInProgress) { |
1541 | del_timer_sync(&pLed->BlinkTimer); | 1541 | del_timer(&pLed->BlinkTimer); |
1542 | pLed->bLedWPSBlinkInProgress = false; | 1542 | pLed->bLedWPSBlinkInProgress = false; |
1543 | } | 1543 | } |
1544 | pLed->bLedNoLinkBlinkInProgress = true; | 1544 | pLed->bLedNoLinkBlinkInProgress = true; |
@@ -1552,7 +1552,7 @@ static void SwLedControlMode4(struct _adapter *padapter, | |||
1552 | break; | 1552 | break; |
1553 | case LED_CTL_STOP_WPS_FAIL: /*WPS authentication fail*/ | 1553 | case LED_CTL_STOP_WPS_FAIL: /*WPS authentication fail*/ |
1554 | if (pLed->bLedWPSBlinkInProgress) { | 1554 | if (pLed->bLedWPSBlinkInProgress) { |
1555 | del_timer_sync(&pLed->BlinkTimer); | 1555 | del_timer(&pLed->BlinkTimer); |
1556 | pLed->bLedWPSBlinkInProgress = false; | 1556 | pLed->bLedWPSBlinkInProgress = false; |
1557 | } | 1557 | } |
1558 | pLed->bLedNoLinkBlinkInProgress = true; | 1558 | pLed->bLedNoLinkBlinkInProgress = true; |
@@ -1565,7 +1565,7 @@ static void SwLedControlMode4(struct _adapter *padapter, | |||
1565 | msecs_to_jiffies(LED_BLINK_NO_LINK_INTERVAL_ALPHA)); | 1565 | msecs_to_jiffies(LED_BLINK_NO_LINK_INTERVAL_ALPHA)); |
1566 | /*LED1 settings*/ | 1566 | /*LED1 settings*/ |
1567 | if (pLed1->bLedWPSBlinkInProgress) | 1567 | if (pLed1->bLedWPSBlinkInProgress) |
1568 | del_timer_sync(&pLed1->BlinkTimer); | 1568 | del_timer(&pLed1->BlinkTimer); |
1569 | else | 1569 | else |
1570 | pLed1->bLedWPSBlinkInProgress = true; | 1570 | pLed1->bLedWPSBlinkInProgress = true; |
1571 | pLed1->CurrLedState = LED_BLINK_WPS_STOP; | 1571 | pLed1->CurrLedState = LED_BLINK_WPS_STOP; |
@@ -1578,7 +1578,7 @@ static void SwLedControlMode4(struct _adapter *padapter, | |||
1578 | break; | 1578 | break; |
1579 | case LED_CTL_STOP_WPS_FAIL_OVERLAP: /*WPS session overlap*/ | 1579 | case LED_CTL_STOP_WPS_FAIL_OVERLAP: /*WPS session overlap*/ |
1580 | if (pLed->bLedWPSBlinkInProgress) { | 1580 | if (pLed->bLedWPSBlinkInProgress) { |
1581 | del_timer_sync(&pLed->BlinkTimer); | 1581 | del_timer(&pLed->BlinkTimer); |
1582 | pLed->bLedWPSBlinkInProgress = false; | 1582 | pLed->bLedWPSBlinkInProgress = false; |
1583 | } | 1583 | } |
1584 | pLed->bLedNoLinkBlinkInProgress = true; | 1584 | pLed->bLedNoLinkBlinkInProgress = true; |
@@ -1591,7 +1591,7 @@ static void SwLedControlMode4(struct _adapter *padapter, | |||
1591 | msecs_to_jiffies(LED_BLINK_NO_LINK_INTERVAL_ALPHA)); | 1591 | msecs_to_jiffies(LED_BLINK_NO_LINK_INTERVAL_ALPHA)); |
1592 | /*LED1 settings*/ | 1592 | /*LED1 settings*/ |
1593 | if (pLed1->bLedWPSBlinkInProgress) | 1593 | if (pLed1->bLedWPSBlinkInProgress) |
1594 | del_timer_sync(&pLed1->BlinkTimer); | 1594 | del_timer(&pLed1->BlinkTimer); |
1595 | else | 1595 | else |
1596 | pLed1->bLedWPSBlinkInProgress = true; | 1596 | pLed1->bLedWPSBlinkInProgress = true; |
1597 | pLed1->CurrLedState = LED_BLINK_WPS_STOP_OVERLAP; | 1597 | pLed1->CurrLedState = LED_BLINK_WPS_STOP_OVERLAP; |
@@ -1607,31 +1607,31 @@ static void SwLedControlMode4(struct _adapter *padapter, | |||
1607 | pLed->CurrLedState = LED_OFF; | 1607 | pLed->CurrLedState = LED_OFF; |
1608 | pLed->BlinkingLedState = LED_OFF; | 1608 | pLed->BlinkingLedState = LED_OFF; |
1609 | if (pLed->bLedNoLinkBlinkInProgress) { | 1609 | if (pLed->bLedNoLinkBlinkInProgress) { |
1610 | del_timer_sync(&pLed->BlinkTimer); | 1610 | del_timer(&pLed->BlinkTimer); |
1611 | pLed->bLedNoLinkBlinkInProgress = false; | 1611 | pLed->bLedNoLinkBlinkInProgress = false; |
1612 | } | 1612 | } |
1613 | if (pLed->bLedLinkBlinkInProgress) { | 1613 | if (pLed->bLedLinkBlinkInProgress) { |
1614 | del_timer_sync(&pLed->BlinkTimer); | 1614 | del_timer(&pLed->BlinkTimer); |
1615 | pLed->bLedLinkBlinkInProgress = false; | 1615 | pLed->bLedLinkBlinkInProgress = false; |
1616 | } | 1616 | } |
1617 | if (pLed->bLedBlinkInProgress) { | 1617 | if (pLed->bLedBlinkInProgress) { |
1618 | del_timer_sync(&pLed->BlinkTimer); | 1618 | del_timer(&pLed->BlinkTimer); |
1619 | pLed->bLedBlinkInProgress = false; | 1619 | pLed->bLedBlinkInProgress = false; |
1620 | } | 1620 | } |
1621 | if (pLed->bLedWPSBlinkInProgress) { | 1621 | if (pLed->bLedWPSBlinkInProgress) { |
1622 | del_timer_sync(&pLed->BlinkTimer); | 1622 | del_timer(&pLed->BlinkTimer); |
1623 | pLed->bLedWPSBlinkInProgress = false; | 1623 | pLed->bLedWPSBlinkInProgress = false; |
1624 | } | 1624 | } |
1625 | if (pLed->bLedScanBlinkInProgress) { | 1625 | if (pLed->bLedScanBlinkInProgress) { |
1626 | del_timer_sync(&pLed->BlinkTimer); | 1626 | del_timer(&pLed->BlinkTimer); |
1627 | pLed->bLedScanBlinkInProgress = false; | 1627 | pLed->bLedScanBlinkInProgress = false; |
1628 | } | 1628 | } |
1629 | if (pLed->bLedStartToLinkBlinkInProgress) { | 1629 | if (pLed->bLedStartToLinkBlinkInProgress) { |
1630 | del_timer_sync(&pLed->BlinkTimer); | 1630 | del_timer(&pLed->BlinkTimer); |
1631 | pLed->bLedStartToLinkBlinkInProgress = false; | 1631 | pLed->bLedStartToLinkBlinkInProgress = false; |
1632 | } | 1632 | } |
1633 | if (pLed1->bLedWPSBlinkInProgress) { | 1633 | if (pLed1->bLedWPSBlinkInProgress) { |
1634 | del_timer_sync(&pLed1->BlinkTimer); | 1634 | del_timer(&pLed1->BlinkTimer); |
1635 | pLed1->bLedWPSBlinkInProgress = false; | 1635 | pLed1->bLedWPSBlinkInProgress = false; |
1636 | } | 1636 | } |
1637 | pLed1->BlinkingLedState = LED_UNKNOWN; | 1637 | pLed1->BlinkingLedState = LED_UNKNOWN; |
@@ -1671,7 +1671,7 @@ static void SwLedControlMode5(struct _adapter *padapter, | |||
1671 | ; /* dummy branch */ | 1671 | ; /* dummy branch */ |
1672 | else if (pLed->bLedScanBlinkInProgress == false) { | 1672 | else if (pLed->bLedScanBlinkInProgress == false) { |
1673 | if (pLed->bLedBlinkInProgress == true) { | 1673 | if (pLed->bLedBlinkInProgress == true) { |
1674 | del_timer_sync(&pLed->BlinkTimer); | 1674 | del_timer(&pLed->BlinkTimer); |
1675 | pLed->bLedBlinkInProgress = false; | 1675 | pLed->bLedBlinkInProgress = false; |
1676 | } | 1676 | } |
1677 | pLed->bLedScanBlinkInProgress = true; | 1677 | pLed->bLedScanBlinkInProgress = true; |
@@ -1705,7 +1705,7 @@ static void SwLedControlMode5(struct _adapter *padapter, | |||
1705 | pLed->CurrLedState = LED_OFF; | 1705 | pLed->CurrLedState = LED_OFF; |
1706 | pLed->BlinkingLedState = LED_OFF; | 1706 | pLed->BlinkingLedState = LED_OFF; |
1707 | if (pLed->bLedBlinkInProgress) { | 1707 | if (pLed->bLedBlinkInProgress) { |
1708 | del_timer_sync(&pLed->BlinkTimer); | 1708 | del_timer(&pLed->BlinkTimer); |
1709 | pLed->bLedBlinkInProgress = false; | 1709 | pLed->bLedBlinkInProgress = false; |
1710 | } | 1710 | } |
1711 | SwLedOff(padapter, pLed); | 1711 | SwLedOff(padapter, pLed); |
@@ -1756,7 +1756,7 @@ static void SwLedControlMode6(struct _adapter *padapter, | |||
1756 | case LED_CTL_START_WPS_BOTTON: | 1756 | case LED_CTL_START_WPS_BOTTON: |
1757 | if (pLed->bLedWPSBlinkInProgress == false) { | 1757 | if (pLed->bLedWPSBlinkInProgress == false) { |
1758 | if (pLed->bLedBlinkInProgress == true) { | 1758 | if (pLed->bLedBlinkInProgress == true) { |
1759 | del_timer_sync(&pLed->BlinkTimer); | 1759 | del_timer(&pLed->BlinkTimer); |
1760 | pLed->bLedBlinkInProgress = false; | 1760 | pLed->bLedBlinkInProgress = false; |
1761 | } | 1761 | } |
1762 | pLed->bLedWPSBlinkInProgress = true; | 1762 | pLed->bLedWPSBlinkInProgress = true; |
@@ -1772,7 +1772,7 @@ static void SwLedControlMode6(struct _adapter *padapter, | |||
1772 | case LED_CTL_STOP_WPS_FAIL: | 1772 | case LED_CTL_STOP_WPS_FAIL: |
1773 | case LED_CTL_STOP_WPS: | 1773 | case LED_CTL_STOP_WPS: |
1774 | if (pLed->bLedWPSBlinkInProgress) { | 1774 | if (pLed->bLedWPSBlinkInProgress) { |
1775 | del_timer_sync(&pLed->BlinkTimer); | 1775 | del_timer(&pLed->BlinkTimer); |
1776 | pLed->bLedWPSBlinkInProgress = false; | 1776 | pLed->bLedWPSBlinkInProgress = false; |
1777 | } | 1777 | } |
1778 | pLed->CurrLedState = LED_ON; | 1778 | pLed->CurrLedState = LED_ON; |
@@ -1784,11 +1784,11 @@ static void SwLedControlMode6(struct _adapter *padapter, | |||
1784 | pLed->CurrLedState = LED_OFF; | 1784 | pLed->CurrLedState = LED_OFF; |
1785 | pLed->BlinkingLedState = LED_OFF; | 1785 | pLed->BlinkingLedState = LED_OFF; |
1786 | if (pLed->bLedBlinkInProgress) { | 1786 | if (pLed->bLedBlinkInProgress) { |
1787 | del_timer_sync(&pLed->BlinkTimer); | 1787 | del_timer(&pLed->BlinkTimer); |
1788 | pLed->bLedBlinkInProgress = false; | 1788 | pLed->bLedBlinkInProgress = false; |
1789 | } | 1789 | } |
1790 | if (pLed->bLedWPSBlinkInProgress) { | 1790 | if (pLed->bLedWPSBlinkInProgress) { |
1791 | del_timer_sync(&pLed->BlinkTimer); | 1791 | del_timer(&pLed->BlinkTimer); |
1792 | pLed->bLedWPSBlinkInProgress = false; | 1792 | pLed->bLedWPSBlinkInProgress = false; |
1793 | } | 1793 | } |
1794 | SwLedOff(padapter, pLed); | 1794 | SwLedOff(padapter, pLed); |
diff --git a/drivers/staging/rtl8712/rtl871x_cmd.c b/drivers/staging/rtl8712/rtl871x_cmd.c index 1a1c38f885d6..e35854d28f90 100644 --- a/drivers/staging/rtl8712/rtl871x_cmd.c +++ b/drivers/staging/rtl8712/rtl871x_cmd.c | |||
@@ -910,7 +910,7 @@ void r8712_createbss_cmd_callback(struct _adapter *padapter, | |||
910 | if (pcmd->res != H2C_SUCCESS) | 910 | if (pcmd->res != H2C_SUCCESS) |
911 | mod_timer(&pmlmepriv->assoc_timer, | 911 | mod_timer(&pmlmepriv->assoc_timer, |
912 | jiffies + msecs_to_jiffies(1)); | 912 | jiffies + msecs_to_jiffies(1)); |
913 | del_timer_sync(&pmlmepriv->assoc_timer); | 913 | del_timer(&pmlmepriv->assoc_timer); |
914 | #ifdef __BIG_ENDIAN | 914 | #ifdef __BIG_ENDIAN |
915 | /* endian_convert */ | 915 | /* endian_convert */ |
916 | pnetwork->Length = le32_to_cpu(pnetwork->Length); | 916 | pnetwork->Length = le32_to_cpu(pnetwork->Length); |
diff --git a/drivers/staging/rtl8712/rtl871x_mlme.c b/drivers/staging/rtl8712/rtl871x_mlme.c index fb2b195b90af..c044b0e55ba9 100644 --- a/drivers/staging/rtl8712/rtl871x_mlme.c +++ b/drivers/staging/rtl8712/rtl871x_mlme.c | |||
@@ -582,7 +582,7 @@ void r8712_surveydone_event_callback(struct _adapter *adapter, u8 *pbuf) | |||
582 | spin_lock_irqsave(&pmlmepriv->lock, irqL); | 582 | spin_lock_irqsave(&pmlmepriv->lock, irqL); |
583 | 583 | ||
584 | if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY) == true) { | 584 | if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY) == true) { |
585 | del_timer_sync(&pmlmepriv->scan_to_timer); | 585 | del_timer(&pmlmepriv->scan_to_timer); |
586 | 586 | ||
587 | _clr_fwstate_(pmlmepriv, _FW_UNDER_SURVEY); | 587 | _clr_fwstate_(pmlmepriv, _FW_UNDER_SURVEY); |
588 | } | 588 | } |
@@ -696,7 +696,7 @@ void r8712_ind_disconnect(struct _adapter *padapter) | |||
696 | } | 696 | } |
697 | if (padapter->pwrctrlpriv.pwr_mode != | 697 | if (padapter->pwrctrlpriv.pwr_mode != |
698 | padapter->registrypriv.power_mgnt) { | 698 | padapter->registrypriv.power_mgnt) { |
699 | del_timer_sync(&pmlmepriv->dhcp_timer); | 699 | del_timer(&pmlmepriv->dhcp_timer); |
700 | r8712_set_ps_mode(padapter, padapter->registrypriv.power_mgnt, | 700 | r8712_set_ps_mode(padapter, padapter->registrypriv.power_mgnt, |
701 | padapter->registrypriv.smart_ps); | 701 | padapter->registrypriv.smart_ps); |
702 | } | 702 | } |
@@ -910,7 +910,7 @@ void r8712_joinbss_event_callback(struct _adapter *adapter, u8 *pbuf) | |||
910 | if (check_fwstate(pmlmepriv, WIFI_STATION_STATE) | 910 | if (check_fwstate(pmlmepriv, WIFI_STATION_STATE) |
911 | == true) | 911 | == true) |
912 | r8712_indicate_connect(adapter); | 912 | r8712_indicate_connect(adapter); |
913 | del_timer_sync(&pmlmepriv->assoc_timer); | 913 | del_timer(&pmlmepriv->assoc_timer); |
914 | } else | 914 | } else |
915 | goto ignore_joinbss_callback; | 915 | goto ignore_joinbss_callback; |
916 | } else { | 916 | } else { |
diff --git a/drivers/staging/rtl8712/rtl871x_pwrctrl.c b/drivers/staging/rtl8712/rtl871x_pwrctrl.c index aaa584435c87..9bc04f474d18 100644 --- a/drivers/staging/rtl8712/rtl871x_pwrctrl.c +++ b/drivers/staging/rtl8712/rtl871x_pwrctrl.c | |||
@@ -103,7 +103,7 @@ void r8712_cpwm_int_hdl(struct _adapter *padapter, | |||
103 | 103 | ||
104 | if (pwrpriv->cpwm_tog == ((preportpwrstate->state) & 0x80)) | 104 | if (pwrpriv->cpwm_tog == ((preportpwrstate->state) & 0x80)) |
105 | return; | 105 | return; |
106 | del_timer_sync(&padapter->pwrctrlpriv.rpwm_check_timer); | 106 | del_timer(&padapter->pwrctrlpriv.rpwm_check_timer); |
107 | _enter_pwrlock(&pwrpriv->lock); | 107 | _enter_pwrlock(&pwrpriv->lock); |
108 | pwrpriv->cpwm = (preportpwrstate->state) & 0xf; | 108 | pwrpriv->cpwm = (preportpwrstate->state) & 0xf; |
109 | if (pwrpriv->cpwm >= PS_STATE_S2) { | 109 | if (pwrpriv->cpwm >= PS_STATE_S2) { |
diff --git a/drivers/staging/rtl8712/rtl871x_sta_mgt.c b/drivers/staging/rtl8712/rtl871x_sta_mgt.c index 7bb96c47f188..a9b93d0f6f56 100644 --- a/drivers/staging/rtl8712/rtl871x_sta_mgt.c +++ b/drivers/staging/rtl8712/rtl871x_sta_mgt.c | |||
@@ -198,7 +198,7 @@ void r8712_free_stainfo(struct _adapter *padapter, struct sta_info *psta) | |||
198 | * cancel reordering_ctrl_timer */ | 198 | * cancel reordering_ctrl_timer */ |
199 | for (i = 0; i < 16; i++) { | 199 | for (i = 0; i < 16; i++) { |
200 | preorder_ctrl = &psta->recvreorder_ctrl[i]; | 200 | preorder_ctrl = &psta->recvreorder_ctrl[i]; |
201 | del_timer_sync(&preorder_ctrl->reordering_ctrl_timer); | 201 | del_timer(&preorder_ctrl->reordering_ctrl_timer); |
202 | } | 202 | } |
203 | spin_lock(&(pfree_sta_queue->lock)); | 203 | spin_lock(&(pfree_sta_queue->lock)); |
204 | /* insert into free_sta_queue; 20061114 */ | 204 | /* insert into free_sta_queue; 20061114 */ |