Commit 6e50c496 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Greg Kroah-Hartman

Staging: rt2870: use internal command for AsicUpdateProtect()

Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 0df20b67
...@@ -2459,10 +2459,9 @@ BOOLEAN MacTableDeleteEntry( ...@@ -2459,10 +2459,9 @@ BOOLEAN MacTableDeleteEntry(
if (pAd->MacTab.Size == 0) if (pAd->MacTab.Size == 0)
{ {
pAd->CommonCfg.AddHTInfo.AddHtInfo2.OperaionMode = 0; pAd->CommonCfg.AddHTInfo.AddHtInfo2.OperaionMode = 0;
#ifndef RT30xx #ifdef RT2860
AsicUpdateProtect(pAd, 0 /*pAd->CommonCfg.AddHTInfo.AddHtInfo2.OperaionMode*/, (ALLN_SETPROTECT), TRUE, 0 /*pAd->MacTab.fAnyStationNonGF*/); AsicUpdateProtect(pAd, 0 /*pAd->CommonCfg.AddHTInfo.AddHtInfo2.OperaionMode*/, (ALLN_SETPROTECT), TRUE, 0 /*pAd->MacTab.fAnyStationNonGF*/);
#endif #else
#ifdef RT30xx
// edit by johnli, fix "in_interrupt" error when call "MacTableDeleteEntry" in Rx tasklet // edit by johnli, fix "in_interrupt" error when call "MacTableDeleteEntry" in Rx tasklet
// Set MAC register value according operation mode // Set MAC register value according operation mode
RTUSBEnqueueInternalCmd(pAd, CMDTHREAD_UPDATE_PROTECT, NULL, 0); RTUSBEnqueueInternalCmd(pAd, CMDTHREAD_UPDATE_PROTECT, NULL, 0);
......
...@@ -1810,17 +1810,11 @@ VOID CMDHandler( ...@@ -1810,17 +1810,11 @@ VOID CMDHandler(
pEntry->Addr[0], pEntry->Addr[1], pEntry->Addr[2], pEntry->Addr[3], pEntry->Addr[4], pEntry->Addr[5]); pEntry->Addr[0], pEntry->Addr[1], pEntry->Addr[2], pEntry->Addr[3], pEntry->Addr[4], pEntry->Addr[5]);
} }
break; break;
#ifdef RT30xx
// add by johnli, fix "in_interrupt" error when call "MacTableDeleteEntry" in Rx tasklet
case CMDTHREAD_UPDATE_PROTECT: case CMDTHREAD_UPDATE_PROTECT:
{ {
AsicUpdateProtect(pAd, 0, (ALLN_SETPROTECT), TRUE, 0); AsicUpdateProtect(pAd, 0, (ALLN_SETPROTECT), TRUE, 0);
} }
break; break;
// end johnli
#endif
case OID_802_11_ADD_WEP: case OID_802_11_ADD_WEP:
{ {
UINT i; UINT i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment