mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-25 14:44:09 +00:00
CONFIG_MP_VHT_HW_TX_MODE: Mark floating point regions
This commit is contained in:
parent
c0b49289d5
commit
181b199679
5
Makefile
5
Makefile
@ -110,7 +110,7 @@ CONFIG_AP_WOWLAN = n
|
||||
######### Notify SDIO Host Keep Power During Syspend ##########
|
||||
CONFIG_RTW_SDIO_PM_KEEP_POWER = y
|
||||
###################### MP HW TX MODE FOR VHT #######################
|
||||
CONFIG_MP_VHT_HW_TX_MODE = n
|
||||
CONFIG_MP_VHT_HW_TX_MODE = y
|
||||
###################### Platform Related #######################
|
||||
CONFIG_PLATFORM_I386_PC = y
|
||||
CONFIG_PLATFORM_ARM_RPI = n
|
||||
@ -1038,7 +1038,8 @@ ifeq ($(CONFIG_PLATFORM_I386_PC), y)
|
||||
EXTRA_CFLAGS += -mhard-float
|
||||
else
|
||||
## For ARM ToolChain use Hardware FLOATING
|
||||
EXTRA_CFLAGS += -mfloat-abi=hard
|
||||
# Raspbian kernel is with soft-float, so can't do this here
|
||||
#EXTRA_CFLAGS += -mfloat-abi=hard
|
||||
endif
|
||||
endif
|
||||
|
||||
|
@ -14,6 +14,11 @@
|
||||
*****************************************************************************/
|
||||
#if defined(CONFIG_MP_INCLUDED)
|
||||
|
||||
#ifdef CONFIG_MP_VHT_HW_TX_MODE
|
||||
#include <linux/kernel.h>
|
||||
#include <asm/fpu/api.h>
|
||||
#endif
|
||||
|
||||
#include <drv_types.h>
|
||||
#include <rtw_mp.h>
|
||||
#include <rtw_mp_ioctl.h>
|
||||
@ -1617,14 +1622,16 @@ int rtw_mp_tx(struct net_device *dev,
|
||||
|
||||
PMAC_Get_Pkt_Param(&pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo);
|
||||
|
||||
kernel_fpu_begin();
|
||||
if (MPT_IS_CCK_RATE(pMptCtx->PMacTxInfo.TX_RATE))
|
||||
|
||||
CCK_generator(&pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo);
|
||||
CCK_generator(&pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo); // Floating-Point!
|
||||
else {
|
||||
PMAC_Nsym_generator(&pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo);
|
||||
PMAC_Nsym_generator(&pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo); // Floating-Point!
|
||||
/* 24 BIT*/
|
||||
L_SIG_generator(pMptCtx->PMacPktInfo.N_sym, &pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo);
|
||||
L_SIG_generator(pMptCtx->PMacPktInfo.N_sym, &pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo); // Floating-Point!
|
||||
}
|
||||
kernel_fpu_end();
|
||||
|
||||
/* 48BIT*/
|
||||
if (MPT_IS_HT_RATE(pMptCtx->PMacTxInfo.TX_RATE))
|
||||
HT_SIG_generator(&pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo);
|
||||
@ -1640,7 +1647,6 @@ int rtw_mp_tx(struct net_device *dev,
|
||||
}
|
||||
|
||||
mpt_ProSetPMacTx(padapter);
|
||||
|
||||
} else if (strncmp(extra, "pmact,mode=", 11) == 0) {
|
||||
int txmode = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user