mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
staging: rtl8712: remove struct rtl_ieee80211_ht_cap and ieee80211_ht_addt_info
struct 'ieee80211_ht_addt_info' is unused and can be removed. struct 'rtl_ieee80211_ht_cap' can be replaced by 'ieee80211_ht_cap' defined in <linux/ieee80211.h> which has the same layout. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/4291cb10744457cc12c89fc9fd414c37d732bc9d.1617911201.git.christophe.jaillet@wanadoo.fr Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7569c1bc3f
commit
63ee275711
@ -26,7 +26,7 @@ struct ht_priv {
|
||||
unsigned int rx_ampdu_maxlen; /* for rx reordering ctrl win_sz,
|
||||
* updated when join_callback.
|
||||
*/
|
||||
struct rtl_ieee80211_ht_cap ht_cap;
|
||||
struct ieee80211_ht_cap ht_cap;
|
||||
};
|
||||
|
||||
#endif /*_RTL871X_HT_H_ */
|
||||
|
@ -1389,7 +1389,7 @@ static int r8711_wx_get_rate(struct net_device *dev,
|
||||
struct _adapter *padapter = netdev_priv(dev);
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
struct wlan_bssid_ex *pcur_bss = &pmlmepriv->cur_network.network;
|
||||
struct rtl_ieee80211_ht_cap *pht_capie;
|
||||
struct ieee80211_ht_cap *pht_capie;
|
||||
unsigned char rf_type = padapter->registrypriv.rf_config;
|
||||
int i;
|
||||
u8 *p;
|
||||
@ -1405,8 +1405,8 @@ static int r8711_wx_get_rate(struct net_device *dev,
|
||||
pcur_bss->IELength - 12);
|
||||
if (p && ht_ielen > 0) {
|
||||
ht_cap = true;
|
||||
pht_capie = (struct rtl_ieee80211_ht_cap *)(p + 2);
|
||||
memcpy(&mcs_rate, pht_capie->supp_mcs_set, 2);
|
||||
pht_capie = (struct ieee80211_ht_cap *)(p + 2);
|
||||
memcpy(&mcs_rate, &pht_capie->mcs, 2);
|
||||
bw_40MHz = (le16_to_cpu(pht_capie->cap_info) &
|
||||
IEEE80211_HT_CAP_SUP_WIDTH_20_40) ? 1 : 0;
|
||||
short_GI = (le16_to_cpu(pht_capie->cap_info) &
|
||||
|
@ -1640,7 +1640,7 @@ unsigned int r8712_restructure_ht_ie(struct _adapter *padapter, u8 *in_ie,
|
||||
{
|
||||
u32 ielen, out_len;
|
||||
unsigned char *p;
|
||||
struct rtl_ieee80211_ht_cap ht_capie;
|
||||
struct ieee80211_ht_cap ht_capie;
|
||||
unsigned char WMM_IE[] = {0x00, 0x50, 0xf2, 0x02, 0x00, 0x01, 0x00};
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
struct qos_priv *pqospriv = &pmlmepriv->qospriv;
|
||||
@ -1656,7 +1656,7 @@ unsigned int r8712_restructure_ht_ie(struct _adapter *padapter, u8 *in_ie,
|
||||
pqospriv->qos_option = 1;
|
||||
}
|
||||
out_len = *pout_len;
|
||||
memset(&ht_capie, 0, sizeof(struct rtl_ieee80211_ht_cap));
|
||||
memset(&ht_capie, 0, sizeof(struct ieee80211_ht_cap));
|
||||
ht_capie.cap_info = cpu_to_le16(IEEE80211_HT_CAP_SUP_WIDTH_20_40 |
|
||||
IEEE80211_HT_CAP_SGI_20 |
|
||||
IEEE80211_HT_CAP_SGI_40 |
|
||||
@ -1666,7 +1666,7 @@ unsigned int r8712_restructure_ht_ie(struct _adapter *padapter, u8 *in_ie,
|
||||
ht_capie.ampdu_params_info = (IEEE80211_HT_AMPDU_PARM_FACTOR &
|
||||
0x03) | (IEEE80211_HT_AMPDU_PARM_DENSITY & 0x00);
|
||||
r8712_set_ie(out_ie + out_len, WLAN_EID_HT_CAPABILITY,
|
||||
sizeof(struct rtl_ieee80211_ht_cap),
|
||||
sizeof(struct ieee80211_ht_cap),
|
||||
(unsigned char *)&ht_capie, pout_len);
|
||||
phtpriv->ht_option = 1;
|
||||
}
|
||||
@ -1680,7 +1680,7 @@ static void update_ht_cap(struct _adapter *padapter, u8 *pie, uint ie_len)
|
||||
int i;
|
||||
uint len;
|
||||
struct sta_info *bmc_sta, *psta;
|
||||
struct rtl_ieee80211_ht_cap *pht_capie;
|
||||
struct ieee80211_ht_cap *pht_capie;
|
||||
struct recv_reorder_ctrl *preorder_ctrl;
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
struct ht_priv *phtpriv = &pmlmepriv->htpriv;
|
||||
@ -1700,7 +1700,7 @@ static void update_ht_cap(struct _adapter *padapter, u8 *pie, uint ie_len)
|
||||
&len, ie_len -
|
||||
sizeof(struct NDIS_802_11_FIXED_IEs));
|
||||
if (p && len > 0) {
|
||||
pht_capie = (struct rtl_ieee80211_ht_cap *)(p + 2);
|
||||
pht_capie = (struct ieee80211_ht_cap *)(p + 2);
|
||||
max_ampdu_sz = (pht_capie->ampdu_params_info &
|
||||
IEEE80211_HT_AMPDU_PARM_FACTOR);
|
||||
/* max_ampdu_sz (kbytes); */
|
||||
|
@ -276,40 +276,5 @@ static inline unsigned char *get_hdr_bssid(unsigned char *pframe)
|
||||
*/
|
||||
#define _WMM_IE_Length_ 7 /* for WMM STA */
|
||||
|
||||
/*-----------------------------------------------------------------------------
|
||||
* Below is the definition for 802.11n
|
||||
*------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/*
|
||||
* struct rtl_ieee80211_ht_cap - HT capabilities
|
||||
*
|
||||
* This structure refers to "HT capabilities element" as
|
||||
* described in 802.11n draft section 7.3.2.52
|
||||
*/
|
||||
|
||||
struct rtl_ieee80211_ht_cap {
|
||||
__le16 cap_info;
|
||||
unsigned char ampdu_params_info;
|
||||
unsigned char supp_mcs_set[16];
|
||||
__le16 extended_ht_cap_info;
|
||||
__le32 tx_BF_cap_info;
|
||||
unsigned char antenna_selection_info;
|
||||
} __packed;
|
||||
|
||||
/**
|
||||
* struct ieee80211_ht_addt_info - HT additional information
|
||||
*
|
||||
* This structure refers to "HT information element" as
|
||||
* described in 802.11n draft section 7.3.2.53
|
||||
*/
|
||||
struct ieee80211_ht_addt_info {
|
||||
unsigned char control_chan;
|
||||
unsigned char ht_param;
|
||||
__le16 operation_mode;
|
||||
__le16 stbc_param;
|
||||
unsigned char basic_set[16];
|
||||
} __packed;
|
||||
|
||||
#endif /* _WIFI_H_ */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user