This commit is contained in:
pvvx 2017-03-02 12:38:12 +03:00
parent 4cf5fcf936
commit 151c53c5ce
11 changed files with 2342 additions and 2339 deletions

View file

@ -157,10 +157,10 @@ void patch_rltk_wlan_deinit(void) {
uint8_t chk;
if (rltk_wlan_info[0].enable || rltk_wlan_info[0].enable) {
_adapter *ad = rltk_wlan_info[0].dev->priv;
ad->bSurpriseRemoved = 1; // + 5892
rtw_wakeup_task(&ad->isrThread.task); // +5912
ad->bSurpriseRemoved = 1;
rtw_wakeup_task(&ad->isrThread.task);
while (1) {
save_and_cli(); // taskENTER_CRITICAL(); // vPortEnterCritical()
save_and_cli(); // = taskENTER_CRITICAL(); // = vPortEnterCritical()
rltk_wlan_info[0].enable = 0;
rltk_wlan_info[1].enable = 0;
chk = rltk_wlan_info[0].tx_busy + rltk_wlan_info[0].rx_busy

View file

@ -442,8 +442,6 @@ static void vProcessConnection( struct netconn *pxNetCon );
rtw_wifi_setting_t wifi_setting = {RTW_MODE_NONE, {0}, 0, RTW_SECURITY_OPEN, {0}};
#ifndef WLAN0_NAME
#define WLAN0_NAME "wlan0"
#endif