Commit fe403d4b authored by William Durand's avatar William Durand Committed by Greg Kroah-Hartman
Browse files

staging: rtl8192e: rename bdRT2RTLongSlotTime to bd_rt2rt_long_slot_time in bss_ht struct



Rename bdRT2RTLongSlotTime to bd_rt2rt_long_slot_time to silence a
checkpatch warning about CamelCase.

Reviewed-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarWilliam Durand <will+git@drnd.me>
Link: https://lore.kernel.org/r/20210220172909.15812-11-will+git@drnd.me


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3f1f39fb
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -375,8 +375,7 @@ static void _rtl92e_update_beacon(void *data)


	if (ieee->pHTInfo->bCurrentHTSupport)
	if (ieee->pHTInfo->bCurrentHTSupport)
		HT_update_self_and_peer_setting(ieee, net);
		HT_update_self_and_peer_setting(ieee, net);
	ieee->pHTInfo->bCurrentRT2RTLongSlotTime =
	ieee->pHTInfo->bCurrentRT2RTLongSlotTime = net->bssht.bd_rt2rt_long_slot_time;
		 net->bssht.bdRT2RTLongSlotTime;
	ieee->pHTInfo->RT2RT_HT_Mode = net->bssht.RT2RT_HT_Mode;
	ieee->pHTInfo->RT2RT_HT_Mode = net->bssht.RT2RT_HT_Mode;
	_rtl92e_update_cap(dev, net->capability);
	_rtl92e_update_cap(dev, net->capability);
}
}
+1 −1
Original line number Original line Diff line number Diff line
@@ -190,7 +190,7 @@ struct bss_ht {
	enum ht_channel_width bd_bandwidth;
	enum ht_channel_width bd_bandwidth;


	u8					bd_rt2rt_aggregation;
	u8					bd_rt2rt_aggregation;
	u8					bdRT2RTLongSlotTime;
	u8					bd_rt2rt_long_slot_time;
	u8					RT2RT_HT_Mode;
	u8					RT2RT_HT_Mode;
	u8					bdHT1R;
	u8					bdHT1R;
};
};
+2 −2
Original line number Original line Diff line number Diff line
@@ -698,7 +698,7 @@ void HTInitializeBssDesc(struct bss_ht *pBssHT)
	pBssHT->bd_ht_spec_ver = HT_SPEC_VER_IEEE;
	pBssHT->bd_ht_spec_ver = HT_SPEC_VER_IEEE;


	pBssHT->bd_rt2rt_aggregation = false;
	pBssHT->bd_rt2rt_aggregation = false;
	pBssHT->bdRT2RTLongSlotTime = false;
	pBssHT->bd_rt2rt_long_slot_time = false;
	pBssHT->RT2RT_HT_Mode = (enum rt_ht_capability)0;
	pBssHT->RT2RT_HT_Mode = (enum rt_ht_capability)0;
}
}


@@ -733,7 +733,7 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee,
			pHTInfo->bCurrentRT2RTAggregation =
			pHTInfo->bCurrentRT2RTAggregation =
				 pNetwork->bssht.bd_rt2rt_aggregation;
				 pNetwork->bssht.bd_rt2rt_aggregation;
			pHTInfo->bCurrentRT2RTLongSlotTime =
			pHTInfo->bCurrentRT2RTLongSlotTime =
				 pNetwork->bssht.bdRT2RTLongSlotTime;
				 pNetwork->bssht.bd_rt2rt_long_slot_time;
			pHTInfo->RT2RT_HT_Mode = pNetwork->bssht.RT2RT_HT_Mode;
			pHTInfo->RT2RT_HT_Mode = pNetwork->bssht.RT2RT_HT_Mode;
		} else {
		} else {
			pHTInfo->bCurrentRT2RTAggregation = false;
			pHTInfo->bCurrentRT2RTAggregation = false;
+2 −2
Original line number Original line Diff line number Diff line
@@ -1904,7 +1904,7 @@ static void rtllib_parse_mife_generic(struct rtllib_device *ieee,


			if ((ht_realtek_agg_buf[4] == 1) &&
			if ((ht_realtek_agg_buf[4] == 1) &&
			    (ht_realtek_agg_buf[5] & 0x02))
			    (ht_realtek_agg_buf[5] & 0x02))
				network->bssht.bdRT2RTLongSlotTime = true;
				network->bssht.bd_rt2rt_long_slot_time = true;


			if ((ht_realtek_agg_buf[4] == 1) &&
			if ((ht_realtek_agg_buf[4] == 1) &&
			    (ht_realtek_agg_buf[5] & RT_HT_CAP_USE_92SE))
			    (ht_realtek_agg_buf[5] & RT_HT_CAP_USE_92SE))
@@ -2467,7 +2467,7 @@ static inline void update_network(struct rtllib_device *ieee,
	memcpy(dst->bssht.bd_ht_info_buf, src->bssht.bd_ht_info_buf,
	memcpy(dst->bssht.bd_ht_info_buf, src->bssht.bd_ht_info_buf,
	       src->bssht.bd_ht_info_len);
	       src->bssht.bd_ht_info_len);
	dst->bssht.bd_ht_spec_ver = src->bssht.bd_ht_spec_ver;
	dst->bssht.bd_ht_spec_ver = src->bssht.bd_ht_spec_ver;
	dst->bssht.bdRT2RTLongSlotTime = src->bssht.bdRT2RTLongSlotTime;
	dst->bssht.bd_rt2rt_long_slot_time = src->bssht.bd_rt2rt_long_slot_time;
	dst->broadcom_cap_exist = src->broadcom_cap_exist;
	dst->broadcom_cap_exist = src->broadcom_cap_exist;
	dst->ralink_cap_exist = src->ralink_cap_exist;
	dst->ralink_cap_exist = src->ralink_cap_exist;
	dst->atheros_cap_exist = src->atheros_cap_exist;
	dst->atheros_cap_exist = src->atheros_cap_exist;