mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 14:33:05 +00:00
rtl8188eu: Remove configuration parameter CONFIG_80211N_HT
This one will always be selected. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
de0b9f2155
commit
1ada4e9170
23 changed files with 3 additions and 250 deletions
|
@ -5321,9 +5321,7 @@ static int rtw_dbg_port(struct net_device *dev,
|
|||
break;
|
||||
case 0x03:
|
||||
DBG_88E("qos_option=%d\n", pmlmepriv->qospriv.qos_option);
|
||||
#ifdef CONFIG_80211N_HT
|
||||
DBG_88E("ht_option=%d\n", pmlmepriv->htpriv.ht_option);
|
||||
#endif //CONFIG_80211N_HT
|
||||
break;
|
||||
case 0x04:
|
||||
DBG_88E("cur_ch=%d\n", pmlmeext->cur_channel);
|
||||
|
@ -5342,13 +5340,10 @@ static int rtw_dbg_port(struct net_device *dev,
|
|||
DBG_88E("cur_channel=%d, cur_bwmode=%d, cur_ch_offset=%d\n", pmlmeext->cur_channel, pmlmeext->cur_bwmode, pmlmeext->cur_ch_offset);
|
||||
DBG_88E("rtsen=%d, cts2slef=%d\n", psta->rtsen, psta->cts2self);
|
||||
DBG_88E("state=0x%x, aid=%d, macid=%d, raid=%d\n", psta->state, psta->aid, psta->mac_id, psta->raid);
|
||||
#ifdef CONFIG_80211N_HT
|
||||
DBG_88E("qos_en=%d, ht_en=%d, init_rate=%d\n", psta->qos_option, psta->htpriv.ht_option, psta->init_rate);
|
||||
DBG_88E("bwmode=%d, ch_offset=%d, sgi=%d\n", psta->htpriv.bwmode, psta->htpriv.ch_offset, psta->htpriv.sgi);
|
||||
DBG_88E("ampdu_enable = %d\n", psta->htpriv.ampdu_enable);
|
||||
DBG_88E("agg_enable_bitmap=%x, candidate_tid_bitmap=%x\n", psta->htpriv.agg_enable_bitmap, psta->htpriv.candidate_tid_bitmap);
|
||||
#endif //CONFIG_80211N_HT
|
||||
|
||||
for (i=0;i<16;i++)
|
||||
{
|
||||
preorder_ctrl = &psta->recvreorder_ctrl[i];
|
||||
|
@ -5415,12 +5410,10 @@ static int rtw_dbg_port(struct net_device *dev,
|
|||
DBG_88E("sta's macaddr:%pM\n", (psta->hwaddr));
|
||||
DBG_88E("rtsen=%d, cts2slef=%d\n", psta->rtsen, psta->cts2self);
|
||||
DBG_88E("state=0x%x, aid=%d, macid=%d, raid=%d\n", psta->state, psta->aid, psta->mac_id, psta->raid);
|
||||
#ifdef CONFIG_80211N_HT
|
||||
DBG_88E("qos_en=%d, ht_en=%d, init_rate=%d\n", psta->qos_option, psta->htpriv.ht_option, psta->init_rate);
|
||||
DBG_88E("bwmode=%d, ch_offset=%d, sgi=%d\n", psta->htpriv.bwmode, psta->htpriv.ch_offset, psta->htpriv.sgi);
|
||||
DBG_88E("ampdu_enable = %d\n", psta->htpriv.ampdu_enable);
|
||||
DBG_88E("agg_enable_bitmap=%x, candidate_tid_bitmap=%x\n", psta->htpriv.agg_enable_bitmap, psta->htpriv.candidate_tid_bitmap);
|
||||
#endif //CONFIG_80211N_HT
|
||||
|
||||
#ifdef CONFIG_AP_MODE
|
||||
DBG_88E("capability=0x%x\n", psta->capability);
|
||||
|
@ -6413,7 +6406,6 @@ static int rtw_add_sta(struct net_device *dev, struct ieee_param *param)
|
|||
psta->qos_option = 0;
|
||||
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
//chec 802.11n ht cap.
|
||||
if (WLAN_STA_HT&flags)
|
||||
{
|
||||
|
@ -6428,7 +6420,6 @@ static int rtw_add_sta(struct net_device *dev, struct ieee_param *param)
|
|||
|
||||
if (pmlmepriv->htpriv.ht_option == false)
|
||||
psta->htpriv.ht_option = false;
|
||||
#endif
|
||||
|
||||
|
||||
update_sta_info_apmode(padapter, psta);
|
||||
|
@ -6550,9 +6541,7 @@ static int rtw_ioctl_get_sta_data(struct net_device *dev, struct ieee_param *par
|
|||
|
||||
psta_data->tx_supp_rates_len = psta->bssratelen;
|
||||
_rtw_memcpy(psta_data->tx_supp_rates, psta->bssrateset, psta->bssratelen);
|
||||
#ifdef CONFIG_80211N_HT
|
||||
_rtw_memcpy(&psta_data->ht_cap, &psta->htpriv.ht_cap, sizeof(struct rtw_ieee80211_ht_cap));
|
||||
#endif //CONFIG_80211N_HT
|
||||
psta_data->rx_pkts = psta->sta_stats.rx_data_pkts;
|
||||
psta_data->rx_bytes = psta->sta_stats.rx_bytes;
|
||||
psta_data->rx_drops = psta->sta_stats.rx_drops;
|
||||
|
|
|
@ -83,13 +83,11 @@ static int rtw_uapsd_acbe_en = 0;
|
|||
static int rtw_uapsd_acvi_en = 0;
|
||||
static int rtw_uapsd_acvo_en = 0;
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
int rtw_ht_enable = 1;
|
||||
int rtw_cbw40_enable = 3; // 0 :diable, bit(0): enable 2.4g, bit(1): enable 5g
|
||||
int rtw_ampdu_enable = 1;//for enable tx_ampdu
|
||||
static int rtw_rx_stbc = 1;// 0: disable, bit(0):enable 2.4g, bit(1):enable 5g, default is set to enable 2.4GHZ for IOT issue with bufflao's AP at 5GHZ
|
||||
static int rtw_ampdu_amsdu = 0;// 0: disabled, 1:enabled, 2:auto
|
||||
#endif
|
||||
|
||||
static int rtw_lowrate_two_xmit = 1;//Use 2 path Tx to transmit MCS0~7 and legacy mode
|
||||
|
||||
|
@ -144,13 +142,11 @@ module_param(rtw_wmm_enable, int, 0644);
|
|||
module_param(rtw_vrtl_carrier_sense, int, 0644);
|
||||
module_param(rtw_vcs_type, int, 0644);
|
||||
module_param(rtw_busy_thresh, int, 0644);
|
||||
#ifdef CONFIG_80211N_HT
|
||||
module_param(rtw_ht_enable, int, 0644);
|
||||
module_param(rtw_cbw40_enable, int, 0644);
|
||||
module_param(rtw_ampdu_enable, int, 0644);
|
||||
module_param(rtw_rx_stbc, int, 0644);
|
||||
module_param(rtw_ampdu_amsdu, int, 0644);
|
||||
#endif
|
||||
module_param(rtw_lowrate_two_xmit, int, 0644);
|
||||
module_param(rtw_rf_config, int, 0644);
|
||||
module_param(rtw_power_mgnt, int, 0644);
|
||||
|
@ -445,7 +441,6 @@ void rtw_proc_init_one(struct net_device *dev)
|
|||
return;
|
||||
}
|
||||
entry->write_proc = proc_set_rx_signal;
|
||||
#ifdef CONFIG_80211N_HT
|
||||
entry = create_proc_read_entry("ht_enable", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_ht_enable, dev);
|
||||
if (!entry) {
|
||||
|
@ -477,7 +472,6 @@ void rtw_proc_init_one(struct net_device *dev)
|
|||
return;
|
||||
}
|
||||
entry->write_proc = proc_set_rx_stbc;
|
||||
#endif //CONFIG_80211N_HT
|
||||
|
||||
entry = create_proc_read_entry("path_rssi", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_two_path_rssi, dev);
|
||||
|
@ -543,12 +537,10 @@ void rtw_proc_remove_one(struct net_device *dev)
|
|||
|
||||
remove_proc_entry("best_channel", dir_dev);
|
||||
remove_proc_entry("rx_signal", dir_dev);
|
||||
#ifdef CONFIG_80211N_HT
|
||||
remove_proc_entry("cbw40_enable", dir_dev);
|
||||
remove_proc_entry("ht_enable", dir_dev);
|
||||
remove_proc_entry("ampdu_enable", dir_dev);
|
||||
remove_proc_entry("rx_stbc", dir_dev);
|
||||
#endif //CONFIG_80211N_HT
|
||||
remove_proc_entry("path_rssi", dir_dev);
|
||||
remove_proc_entry("rssi_disp", dir_dev);
|
||||
#ifdef CONFIG_BT_COEXIST
|
||||
|
@ -625,13 +617,11 @@ _func_enter_;
|
|||
registry_par->uapsd_acvi_en = (u8)rtw_uapsd_acvi_en;
|
||||
registry_par->uapsd_acvo_en = (u8)rtw_uapsd_acvo_en;
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
registry_par->ht_enable = (u8)rtw_ht_enable;
|
||||
registry_par->cbw40_enable = (u8)rtw_cbw40_enable;
|
||||
registry_par->ampdu_enable = (u8)rtw_ampdu_enable;
|
||||
registry_par->rx_stbc = (u8)rtw_rx_stbc;
|
||||
registry_par->ampdu_amsdu = (u8)rtw_ampdu_amsdu;
|
||||
#endif
|
||||
registry_par->lowrate_two_xmit = (u8)rtw_lowrate_two_xmit;
|
||||
registry_par->rf_config = (u8)rtw_rf_config;
|
||||
registry_par->low_power = (u8)rtw_low_power;
|
||||
|
@ -877,9 +867,7 @@ static u8 rtw_init_default_value(struct adapter *padapter)
|
|||
pmlmepriv->scan_mode = SCAN_ACTIVE;
|
||||
|
||||
//ht_priv
|
||||
#ifdef CONFIG_80211N_HT
|
||||
pmlmepriv->htpriv.ampdu_enable = false;//set to disabled
|
||||
#endif
|
||||
|
||||
//security_priv
|
||||
psecuritypriv->binstallGrpkey = _FAIL;
|
||||
|
|
|
@ -468,15 +468,12 @@ static void process_spec_devid(const struct usb_device_id *pdid)
|
|||
pid = specific_device_id_tbl[i].idProduct;
|
||||
flags = specific_device_id_tbl[i].flags;
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
if ((pdid->idVendor==vid) && (pdid->idProduct==pid) && (flags&SPEC_DEV_ID_DISABLE_HT))
|
||||
{
|
||||
rtw_ht_enable = 0;
|
||||
rtw_cbw40_enable = 0;
|
||||
rtw_ampdu_enable = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue