From 441850b11313dc03b2de1c5c275bd5910e6c0f3c Mon Sep 17 00:00:00 2001 From: Xianjun Jiao Date: Thu, 9 Feb 2023 16:14:10 +0100 Subject: [PATCH] NO code change. Formating --- driver/hw_def.h | 6 +++--- driver/sdr.c | 2 +- user_space/inject_80211/inject_80211.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/driver/hw_def.h b/driver/hw_def.h index e324dc3..d77d6a4 100644 --- a/driver/hw_def.h +++ b/driver/hw_def.h @@ -308,10 +308,10 @@ const char *xpu_compatible_str = "sdr,xpu"; #define XPU_REG_RSSI_DB_CFG_ADDR (7*4) #define XPU_REG_LBT_TH_ADDR (8*4) #define XPU_REG_CSMA_DEBUG_ADDR (9*4) -#define XPU_REG_BB_RF_DELAY_ADDR (10*4) +#define XPU_REG_BB_RF_DELAY_ADDR (10*4) #define XPU_REG_ACK_CTL_MAX_NUM_RETRANS_ADDR (11*4) -#define XPU_REG_AMPDU_ACTION_ADDR (12*4) -#define XPU_REG_SPI_DISABLE_ADDR (13*4) +#define XPU_REG_AMPDU_ACTION_ADDR (12*4) +#define XPU_REG_SPI_DISABLE_ADDR (13*4) #define XPU_REG_RECV_ACK_COUNT_TOP0_ADDR (16*4) #define XPU_REG_RECV_ACK_COUNT_TOP1_ADDR (17*4) #define XPU_REG_SEND_ACK_WAIT_TOP_ADDR (18*4) diff --git a/driver/sdr.c b/driver/sdr.c index c869874..8c93f7b 100644 --- a/driver/sdr.c +++ b/driver/sdr.c @@ -1098,7 +1098,7 @@ static void openwifi_tx(struct ieee80211_hw *dev, rate_hw_value = 1; // sifs = (priv->actual_rx_lo<2500?10:16); - sifs = 16; // for ofdm, sifs is always 16 + sifs = 16; // for ofdm, sifs is always 16 if (use_ht_rate) { // printk("%s openwifi_tx: rate_hw_value %d aggr %d sifs %d\n", sdr_compatible_str, rate_hw_value, use_ht_aggr, sifs); diff --git a/user_space/inject_80211/inject_80211.c b/user_space/inject_80211/inject_80211.c index a5d1847..251b82f 100644 --- a/user_space/inject_80211/inject_80211.c +++ b/user_space/inject_80211/inject_80211.c @@ -270,7 +270,7 @@ int main(int argc, char *argv[]) ieee_hdr_data[0] = ( ieee_hdr_data[0]|(sub_type<<4) ); ieee_hdr_data[9] = addr1; ieee_hdr_data[15] = addr2; - ieee_hdr_data[21] = addr1; + ieee_hdr_data[21] = addr1; ieee_hdr_len = sizeof(ieee_hdr_data); ieee_hdr = ieee_hdr_data; } @@ -279,7 +279,7 @@ int main(int argc, char *argv[]) ieee_hdr_mgmt[0] = ( ieee_hdr_mgmt[0]|(sub_type<<4) ); ieee_hdr_mgmt[9] = addr1; ieee_hdr_mgmt[15] = addr2; - ieee_hdr_mgmt[21] = addr1; + ieee_hdr_mgmt[21] = addr1; ieee_hdr_len = sizeof(ieee_hdr_mgmt); ieee_hdr = ieee_hdr_mgmt; }