Skip to content

Commit b9e4dfb

Browse files
treedaviesgregkh
authored andcommitted
Staging: rtl8192e: Rename function GetHalfNmodeSupportByAPsHandler()
Rename function GetHalfNmodeSupportByAPsHandler to get_half_nmode_support_by_aps_handler to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies <tdavies@darkphysics.net> Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/20240229024325.453374-9-tdavies@darkphysics.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent da8f893 commit b9e4dfb

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

drivers/staging/rtl8192e/rtl8192e/rtl_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ static void _rtl92e_init_priv_handler(struct net_device *dev)
657657
priv->rtllib->ps_is_queue_empty = _rtl92e_is_tx_queue_empty;
658658

659659
priv->rtllib->get_nmode_support_by_sec_cfg = rtl92e_get_nmode_support_by_sec;
660-
priv->rtllib->GetHalfNmodeSupportByAPsHandler =
660+
priv->rtllib->get_half_nmode_support_by_aps_handler =
661661
rtl92e_is_halfn_supported_by_ap;
662662

663663
priv->rtllib->set_hw_reg_handler = rtl92e_set_reg;

drivers/staging/rtl8192e/rtl8192e/rtl_dm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ static void _rtl92e_dm_check_rate_adaptive(struct net_device *dev)
354354
}
355355
}
356356

357-
if (priv->rtllib->GetHalfNmodeSupportByAPsHandler(dev))
357+
if (priv->rtllib->get_half_nmode_support_by_aps_handler(dev))
358358
target_ratr &= 0xf00fffff;
359359

360360
current_ratr = rtl92e_readl(dev, RATR0);

drivers/staging/rtl8192e/rtl819x_BAProc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ int rtllib_rx_add_ba_req(struct rtllib_device *ieee, struct sk_buff *skb)
276276
ba->ba_timeout_value = *ba_timeout_value;
277277
ba->ba_start_seq_ctrl = *ba_start_seq_ctrl;
278278

279-
if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev) ||
279+
if (ieee->get_half_nmode_support_by_aps_handler(ieee->dev) ||
280280
(ieee->ht_info->iot_action & HT_IOT_ACT_ALLOW_PEER_AGG_ONE_PKT))
281281
ba->ba_param_set.field.buffer_size = 1;
282282
else

drivers/staging/rtl8192e/rtl819x_HTProc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ void ht_construct_capability_element(struct rtllib_device *ieee, u8 *pos_ht_cap,
252252
}
253253

254254
cap_ele->AdvCoding = 0;
255-
if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev))
255+
if (ieee->get_half_nmode_support_by_aps_handler(ieee->dev))
256256
cap_ele->ChlWidth = 0;
257257
else
258258
cap_ele->ChlWidth = 1;
@@ -301,7 +301,7 @@ void ht_construct_capability_element(struct rtllib_device *ieee, u8 *pos_ht_cap,
301301
if (ht->iot_action & HT_IOT_ACT_DISABLE_RX_40MHZ_SHORT_GI)
302302
cap_ele->ShortGI40Mhz = 0;
303303

304-
if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev)) {
304+
if (ieee->get_half_nmode_support_by_aps_handler(ieee->dev)) {
305305
cap_ele->ChlWidth = 0;
306306
cap_ele->MCS[1] = 0;
307307
}
@@ -408,7 +408,7 @@ static u8 ht_filter_mcs_rate(struct rtllib_device *ieee, u8 *pSupportMCS,
408408

409409
ht_pick_mcs_rate(ieee, pOperateMCS);
410410

411-
if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev))
411+
if (ieee->get_half_nmode_support_by_aps_handler(ieee->dev))
412412
pOperateMCS[1] = 0;
413413

414414
for (i = 2; i <= 15; i++)
@@ -666,7 +666,7 @@ void ht_set_connect_bw_mode(struct rtllib_device *ieee,
666666
{
667667
struct rt_hi_throughput *ht_info = ieee->ht_info;
668668

669-
if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev))
669+
if (ieee->get_half_nmode_support_by_aps_handler(ieee->dev))
670670
bandwidth = HT_CHANNEL_WIDTH_20;
671671

672672
if (ht_info->sw_bw_in_progress) {

drivers/staging/rtl8192e/rtllib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,7 @@ struct rtllib_device {
14691469
enum ht_extchnl_offset Offset);
14701470
bool (*get_nmode_support_by_sec_cfg)(struct net_device *dev);
14711471
void (*set_wireless_mode)(struct net_device *dev, u8 wireless_mode);
1472-
bool (*GetHalfNmodeSupportByAPsHandler)(struct net_device *dev);
1472+
bool (*get_half_nmode_support_by_aps_handler)(struct net_device *dev);
14731473
u8 (*rtllib_ap_sec_type)(struct rtllib_device *ieee);
14741474
void (*init_gain_handler)(struct net_device *dev, u8 Operation);
14751475
void (*ScanOperationBackupHandler)(struct net_device *dev,

0 commit comments

Comments
 (0)