mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 05:27:07 +02:00
Staging: rtl8192e: Rename variable IsQoSDataFrame
Rename variable IsQoSDataFrame to is_qos_data_frame to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies <tdavies@darkphysics.net> Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://lore.kernel.org/r/20240521031718.17852-29-tdavies@darkphysics.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
63afc2d922
commit
9ab0d0e99f
|
|
@ -625,7 +625,7 @@ EXPORT_SYMBOL(HT_update_self_and_peer_setting);
|
|||
u8 ht_c_check(struct rtllib_device *ieee, u8 *pFrame)
|
||||
{
|
||||
if (ieee->ht_info->current_ht_support) {
|
||||
if ((IsQoSDataFrame(pFrame) && frame_order(pFrame)) == 1) {
|
||||
if ((is_qos_data_frame(pFrame) && frame_order(pFrame)) == 1) {
|
||||
netdev_dbg(ieee->dev, "HT CONTROL FILED EXIST!!\n");
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -340,7 +340,7 @@ enum rt_op_mode {
|
|||
#define FC_QOS_BIT BIT(7)
|
||||
#define is_data_frame(pdu) (((pdu[0] & 0x0C) == 0x08) ? true : false)
|
||||
#define is_legacy_data_frame(pdu) (is_data_frame(pdu) && (!(pdu[0]&FC_QOS_BIT)))
|
||||
#define IsQoSDataFrame(pframe) \
|
||||
#define is_qos_data_frame(pframe) \
|
||||
((*(u16 *)pframe&(IEEE80211_STYPE_QOS_DATA|RTLLIB_FTYPE_DATA)) == \
|
||||
(IEEE80211_STYPE_QOS_DATA|RTLLIB_FTYPE_DATA))
|
||||
#define frame_order(pframe) (*(u16 *)pframe&IEEE80211_FCTL_ORDER)
|
||||
|
|
|
|||
|
|
@ -1319,7 +1319,7 @@ static int rtllib_rx_infra_adhoc(struct rtllib_device *ieee, struct sk_buff *skb
|
|||
|
||||
/* Get TS for Rx Reorder */
|
||||
hdr = (struct ieee80211_hdr *)skb->data;
|
||||
if (ieee->current_network.qos_data.active && IsQoSDataFrame(skb->data)
|
||||
if (ieee->current_network.qos_data.active && is_qos_data_frame(skb->data)
|
||||
&& !is_multicast_ether_addr(hdr->addr1)) {
|
||||
TID = frame_qos_tid(skb->data);
|
||||
SeqNum = WLAN_GET_SEQ_SEQ(sc);
|
||||
|
|
|
|||
|
|
@ -275,7 +275,7 @@ static void rtllib_tx_query_agg_cap(struct rtllib_device *ieee,
|
|||
|
||||
if (!ht_info->current_ht_support || !ht_info->enable_ht)
|
||||
return;
|
||||
if (!IsQoSDataFrame(skb->data))
|
||||
if (!is_qos_data_frame(skb->data))
|
||||
return;
|
||||
if (is_multicast_ether_addr(hdr->addr1))
|
||||
return;
|
||||
|
|
@ -472,7 +472,7 @@ static u16 rtllib_query_seqnum(struct rtllib_device *ieee, struct sk_buff *skb,
|
|||
|
||||
if (is_multicast_ether_addr(dst))
|
||||
return 0;
|
||||
if (IsQoSDataFrame(skb->data)) {
|
||||
if (is_qos_data_frame(skb->data)) {
|
||||
struct tx_ts_record *ts = NULL;
|
||||
|
||||
if (!rtllib_get_ts(ieee, (struct ts_common_info **)(&ts), dst,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user