Skip to content

Commit

Permalink
staging: r8188eu: Remove mp, a.k.a. manufacturing process, code
Browse files Browse the repository at this point in the history
The standard driver contains code used by the factory to evaluate chips
that have just been manufactured. Such code is indicated by "mp" in
the variable names, the routine names, and in file names. All of these
can be deleted.

In addition to removing nearly 7,000 lines of code, the size of the driver
is reduced by 63 KB:
          text    data     bss     dec     hex
Before  573959   48582   14660  637201   9b911
After   513530   45894   14660  574084   8c284

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Link: https://lore.kernel.org/r/20210920185437.15652-1-Larry.Finger@lwfinger.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
lwfinger authored and gregkh committed Sep 20, 2021
1 parent d1c73dd commit 7bdedfe
Show file tree
Hide file tree
Showing 23 changed files with 178 additions and 7,034 deletions.
3 changes: 0 additions & 3 deletions drivers/staging/r8188eu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ OUTSRC_FILES := \
hal/rtl8188e_cmd.o \
hal/rtl8188e_dm.o \
hal/rtl8188e_hal_init.o \
hal/rtl8188e_mp.o \
hal/rtl8188e_phycfg.o \
hal/rtl8188e_rf6052.o \
hal/rtl8188e_rxdesc.o \
Expand Down Expand Up @@ -83,8 +82,6 @@ rtk_core := \
core/rtw_led.o \
core/rtw_mlme.o \
core/rtw_mlme_ext.o \
core/rtw_mp.o \
core/rtw_mp_ioctl.o \
core/rtw_pwrctrl.o \
core/rtw_p2p.o \
core/rtw_recv.o \
Expand Down
10 changes: 0 additions & 10 deletions drivers/staging/r8188eu/core/rtw_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -689,22 +689,12 @@ void rtw_getbbrfreg_cmdrsp_callback(struct adapter *padapter, struct cmd_obj *p

kfree(pcmd->parmbuf);
kfree(pcmd);

if (padapter->registrypriv.mp_mode == 1)
padapter->mppriv.workparam.bcompleted = true;

}

void rtw_readtssi_cmdrsp_callback(struct adapter *padapter, struct cmd_obj *pcmd)
{


kfree(pcmd->parmbuf);
kfree(pcmd);

if (padapter->registrypriv.mp_mode == 1)
padapter->mppriv.workparam.bcompleted = true;

}

u8 rtw_createbss_cmd(struct adapter *padapter)
Expand Down
5 changes: 0 additions & 5 deletions drivers/staging/r8188eu/core/rtw_ioctl_set.c
Original file line number Diff line number Diff line change
Expand Up @@ -781,11 +781,6 @@ u16 rtw_get_cur_max_rate(struct adapter *adapter)
u16 mcs_rate = 0;
u32 ht_ielen = 0;

if (adapter->registrypriv.mp_mode == 1) {
if (check_fwstate(pmlmepriv, WIFI_MP_STATE))
return 0;
}

if ((!check_fwstate(pmlmepriv, _FW_LINKED)) &&
(!check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE)))
return 0;
Expand Down
Loading

0 comments on commit 7bdedfe

Please sign in to comment.