mirror of
https://github.com/open-sdr/openwifi.git
synced 2025-01-19 11:16:28 +00:00
Add OPENWIFI_MIN_SIGNAL_LEN_TH 14 to set min pkt length threshold for FPGA signal watchdog
This commit is contained in:
parent
7f48aacad4
commit
26825b8b77
@ -240,7 +240,10 @@ enum openofdm_rx_mode {
|
||||
#define OPENOFDM_RX_DC_RUNNING_SUM_TH_INIT 64
|
||||
#define OPENOFDM_RX_MIN_PLATEAU_INIT 100
|
||||
|
||||
#define OPENWIFI_MAX_SIGNAL_LEN_TH 1700 //Packet longer than this threshold will result in receiver early termination. It goes to openofdm_rx/xpu/rx_intf
|
||||
#define OPENWIFI_MAX_SIGNAL_LEN_TH 1700 //Packet longer than this threshold will result in receiver early termination. It goes to openofdm_rx/xpu/rx_intf
|
||||
|
||||
#define OPENWIFI_MIN_SIGNAL_LEN_TH 14 //Packet shorter than this threshold will result in receiver early termination. It goes to openofdm_rx/xpu/rx_intf
|
||||
//due to CRC32, at least 4 bytes needed to push out expected CRC result
|
||||
|
||||
struct openofdm_rx_driver_api {
|
||||
u32 (*hw_init)(enum openofdm_rx_mode mode);
|
||||
|
@ -93,7 +93,7 @@ static inline u32 hw_init(enum openofdm_rx_mode mode){
|
||||
// 1) power threshold configuration and reset
|
||||
openofdm_rx_api->OPENOFDM_RX_REG_POWER_THRES_write((OPENOFDM_RX_DC_RUNNING_SUM_TH_INIT<<16)|OPENOFDM_RX_POWER_THRES_INIT); // turn on signal watchdog by default
|
||||
openofdm_rx_api->OPENOFDM_RX_REG_MIN_PLATEAU_write(OPENOFDM_RX_MIN_PLATEAU_INIT);
|
||||
openofdm_rx_api->OPENOFDM_RX_REG_SOFT_DECODING_write((OPENWIFI_MAX_SIGNAL_LEN_TH<<16)|1); //bit1 enable soft decoding; bit31~16 max pkt length threshold
|
||||
openofdm_rx_api->OPENOFDM_RX_REG_SOFT_DECODING_write((OPENWIFI_MAX_SIGNAL_LEN_TH<<16)|(OPENWIFI_MIN_SIGNAL_LEN_TH<<12)|1); //bit1 enable soft decoding; bit15~12 min pkt length threshold; bit31~16 max pkt length threshold
|
||||
|
||||
//rst
|
||||
for (i=0;i<8;i++)
|
||||
|
Loading…
Reference in New Issue
Block a user