mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-12-10 00:04:17 +00:00
use common ieee80211 constants
Many defined constants in wifi.h are unused and/or available from <linux/ieee80211.h>, some with slightly different names. Remove the constants from wifi.h and use the common ones. Rename where necessary. Link: https://lore.kernel.org/r/20210814165518.8672-1-straube.linux@gmail.com
This commit is contained in:
committed by
Carlos Garcés
parent
22a000acb9
commit
c1f70ba056
@@ -474,7 +474,7 @@ void rtw_tdls_process_ht_cap(_adapter *padapter, struct sta_info *ptdls_sta, u8
|
||||
ptdls_sta->htpriv.sgi_40m = _TRUE;
|
||||
|
||||
/* Bwmode would still followed AP's setting */
|
||||
if (ptdls_sta->htpriv.ht_cap.cap_info & cpu_to_le16(IEEE80211_HT_CAP_SUP_WIDTH)) {
|
||||
if (ptdls_sta->htpriv.ht_cap.cap_info & cpu_to_le16(IEEE80211_HT_CAP_SUP_WIDTH_20_40)) {
|
||||
if (padapter->mlmeextpriv.cur_bwmode >= CHANNEL_WIDTH_40)
|
||||
ptdls_sta->cmn.bw_mode = CHANNEL_WIDTH_40;
|
||||
ptdls_sta->htpriv.ch_offset = padapter->mlmeextpriv.cur_ch_offset;
|
||||
|
||||
Reference in New Issue
Block a user