Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5692938pxv; Wed, 21 Jul 2021 11:28:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeGQWKEhMORBgi1sqdQrdIO41awC3Zxz1xNprPhzFvrgI7Z6CKv+pq+hSz1Tv5in4KyuFD X-Received: by 2002:a02:a69a:: with SMTP id j26mr31862873jam.9.1626892082763; Wed, 21 Jul 2021 11:28:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626892082; cv=none; d=google.com; s=arc-20160816; b=jlx244Rcu/onO9IPsr590pZ++OnjPMJMdeEPW96w13Q7SsUdQv9IxzofhP2a1LRQXB KN8GgAsZ0PhzZaI/iLTB833lUDInNas0hqOs3lIcAfbwcEPEofP7OYlpD/A9nktViudn Zi6B4i478w9VukmEZgLFCU0RUC5YpKuJtQCof3uKzAW2bHJ5skiJ6ttIwzbg6/3vSlq6 fRoEjN5RV0hwddqWOiOn+Le/pPRNOHqYJWk28A3r999ksTn+8lH9TkRx0s5AnveY0J9R 8YmKOdXWv74050HUKNpxBT/O7ILTzSeVKZmffWuSmWqy+6ZNjDu4enwDe0q/EZz00Js/ /mlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SMjuPxhinOa2feNA8CC5hEMDGs+6QzUFA+HdTbnhsDk=; b=laT2aod6ZX2hUI+5xkF1RcvEBo63dNd9AvELGAdeXXd8HUt9nDjl6rImD2qtIF8u4A KCz8PrCEU6xys43nrwztDJNaZefjR8RDvRd8UlLHLeffyNBDwdVv94HKioQ1AGXzJ+M4 w5BbJwI2biLxSnCAPVMveqtywky8nhP6+7sawcWU2i9gKUXHJHdpwNSgB+2MwAQ6Djgl 23xJUUGHCe29vlmpkuOvj7ApD9pX7pPh00IpM3IvauBmJYd4U81ZSj/S0KBQxPc+PrAu ohv6ADGNCOBDlc/N//WhHBCIzV7vBruVcSi2cvCQBRp79MtWudePb2hRjjKBMqMMH7gT eNTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IBHBLDkC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w11si21178050ilo.1.2021.07.21.11.27.51; Wed, 21 Jul 2021 11:28:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IBHBLDkC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237820AbhGUM7i (ORCPT + 99 others); Wed, 21 Jul 2021 08:59:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238304AbhGUM5J (ORCPT ); Wed, 21 Jul 2021 08:57:09 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29EE2C0613E2 for ; Wed, 21 Jul 2021 06:37:43 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id hr1so3335161ejc.1 for ; Wed, 21 Jul 2021 06:37:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SMjuPxhinOa2feNA8CC5hEMDGs+6QzUFA+HdTbnhsDk=; b=IBHBLDkC9SXhRKFYeg9i1nJxQtOCOJtYpeb6wOTneByiF8GeUTHxCm1B30vNJnkvvF mvpNroxZ83v6G2G37Jo/hIVRWBDRWyd8jniGZsqUuIlOc82QhEzDkoIiDEzekjbl5zAz /HGyDSk3uMXAY6B4roPmGnP+QT0Tx1AFP4jYmhGxdjyCpEHL6DZfMXS2OoG7qgpHveal +98x8jYjp1aZH3RfVWp5Z56xHXTZk7IH0d+ScZitdjCOw9ARK6yHQ+6lLcAvwj6mgHwB zSgqJixx79yO4zplA42DnTT6bGOfPshteUWDmY7JLisMh++hIgJ7FxYxq28ye/IrZsNP Lidg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SMjuPxhinOa2feNA8CC5hEMDGs+6QzUFA+HdTbnhsDk=; b=iAnT5iwC22x9/gsmwzuLaTTlsCISKWZPa9C5lfMWh+lTcHORJb2DfDno4fsE7nvWwn ZTr3F1PyLRwNPuSSOGNUdB8Orz5PX4N/d/4lrlo7SRVp011xXI3H942RnENCO8Y9d501 D96vfJ79xk8GjIlMlsRIQozGpsOIMGN5etCZcuxH62nNCU9cHlpG5lau32Cx4Af/7gjw 9PMj2kIMxCo0vqR18TJh0QW4PqlkYhaXgSWMWdSgbapw3RJR3VNQqm5Fh23yimZUHyz/ 7XL4x5sDLENC9zeL0jb6c10PuzM/JO4hKvwPQj38o5qiyUUlnlNSYrMPVkIbJkJyffrP CwmQ== X-Gm-Message-State: AOAM530ofr81N5/Wb6GvsM/X/Kfy/n7yS4of7GWdHUxfq05p/8nBvxtw +7CdVXi+EIQOtqMhOlaNV85K5LxsOeA= X-Received: by 2002:a17:906:43c9:: with SMTP id j9mr37936233ejn.57.1626874661630; Wed, 21 Jul 2021 06:37:41 -0700 (PDT) Received: from agape ([5.171.73.45]) by smtp.gmail.com with ESMTPSA id c17sm10677121edv.6.2021.07.21.06.37.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jul 2021 06:37:41 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: hdegoede@redhat.com, Larry.Finger@lwfinger.net, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 11/16] staging: rtl8723bs: fix camel case in struct wlan_phy_info Date: Wed, 21 Jul 2021 15:37:18 +0200 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fix camel case in struct wlan_phy_info all over the driver. Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 30 +++++++++---------- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 8 ++--- .../staging/rtl8723bs/include/wlan_bssdef.h | 8 ++--- .../staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 2 +- .../staging/rtl8723bs/os_dep/ioctl_linux.c | 4 +-- 5 files changed, 26 insertions(+), 26 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c index f9c3525ffb57..a0c19253095d 100644 --- a/drivers/staging/rtl8723bs/core/rtw_mlme.c +++ b/drivers/staging/rtl8723bs/core/rtw_mlme.c @@ -452,7 +452,7 @@ void update_network(struct wlan_bssid_ex *dst, struct wlan_bssid_ex *src, { long rssi_ori = dst->rssi; - u8 sq_smp = src->phy_info.SignalQuality; + u8 sq_smp = src->phy_info.signal_quality; u8 ss_final; u8 sq_final; @@ -470,13 +470,13 @@ void update_network(struct wlan_bssid_ex *dst, struct wlan_bssid_ex *src, rssi_final = rssi_ori; } else { if (sq_smp != 101) { /* from the right channel */ - ss_final = ((u32)(src->phy_info.SignalStrength)+(u32)(dst->phy_info.SignalStrength)*4)/5; - sq_final = ((u32)(src->phy_info.SignalQuality)+(u32)(dst->phy_info.SignalQuality)*4)/5; + ss_final = ((u32)(src->phy_info.signal_strength)+(u32)(dst->phy_info.signal_strength)*4)/5; + sq_final = ((u32)(src->phy_info.signal_quality)+(u32)(dst->phy_info.signal_quality)*4)/5; rssi_final = (src->rssi+dst->rssi*4)/5; } else { /* bss info not receiving from the right channel, use the original RX signal infos */ - ss_final = dst->phy_info.SignalStrength; - sq_final = dst->phy_info.SignalQuality; + ss_final = dst->phy_info.signal_strength; + sq_final = dst->phy_info.signal_quality; rssi_final = dst->rssi; } @@ -488,8 +488,8 @@ void update_network(struct wlan_bssid_ex *dst, struct wlan_bssid_ex *src, memcpy((u8 *)dst, (u8 *)src, get_wlan_bssid_ex_sz(src)); } - dst->phy_info.SignalStrength = ss_final; - dst->phy_info.SignalQuality = sq_final; + dst->phy_info.signal_strength = ss_final; + dst->phy_info.signal_quality = sq_final; dst->rssi = rssi_final; } @@ -568,8 +568,8 @@ void rtw_update_scanned_network(struct adapter *adapter, struct wlan_bssid_ex *t pnetwork->join_res = 0; /* bss info not receiving from the right channel */ - if (pnetwork->network.phy_info.SignalQuality == 101) - pnetwork->network.phy_info.SignalQuality = 0; + if (pnetwork->network.phy_info.signal_quality == 101) + pnetwork->network.phy_info.signal_quality = 0; } else { /* Otherwise just pull from the free list */ @@ -585,8 +585,8 @@ void rtw_update_scanned_network(struct adapter *adapter, struct wlan_bssid_ex *t pnetwork->last_scanned = jiffies; /* bss info not receiving from the right channel */ - if (pnetwork->network.phy_info.SignalQuality == 101) - pnetwork->network.phy_info.SignalQuality = 0; + if (pnetwork->network.phy_info.signal_quality == 101) + pnetwork->network.phy_info.signal_quality = 0; list_add_tail(&(pnetwork->list), &(queue->queue)); @@ -1120,10 +1120,10 @@ static void rtw_joinbss_update_network(struct adapter *padapter, struct wlan_net rtw_set_signal_stat_timer(&padapter->recvpriv); - padapter->recvpriv.signal_strength = ptarget_wlan->network.phy_info.SignalStrength; - padapter->recvpriv.signal_qual = ptarget_wlan->network.phy_info.SignalQuality; - /* the ptarget_wlan->network.rssi is raw data, we use ptarget_wlan->network.phy_info.SignalStrength instead (has scaled) */ - padapter->recvpriv.rssi = translate_percentage_to_dbm(ptarget_wlan->network.phy_info.SignalStrength); + padapter->recvpriv.signal_strength = ptarget_wlan->network.phy_info.signal_strength; + padapter->recvpriv.signal_qual = ptarget_wlan->network.phy_info.signal_quality; + /* the ptarget_wlan->network.rssi is raw data, we use ptarget_wlan->network.phy_info.signal_strength instead (has scaled) */ + padapter->recvpriv.rssi = translate_percentage_to_dbm(ptarget_wlan->network.phy_info.signal_strength); rtw_set_signal_stat_timer(&padapter->recvpriv); diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c index 97d4c425b29b..5942e51b23b6 100644 --- a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c @@ -3995,8 +3995,8 @@ u8 collect_bss_info(struct adapter *padapter, union recv_frame *precv_frame, str /* get the signal strength */ bssid->rssi = precv_frame->u.hdr.attrib.phy_info.RecvSignalPower; /* in dBM.raw data */ - bssid->phy_info.SignalQuality = precv_frame->u.hdr.attrib.phy_info.SignalQuality;/* in percentage */ - bssid->phy_info.SignalStrength = precv_frame->u.hdr.attrib.phy_info.SignalStrength;/* in percentage */ + bssid->phy_info.signal_quality = precv_frame->u.hdr.attrib.phy_info.SignalQuality;/* in percentage */ + bssid->phy_info.signal_strength = precv_frame->u.hdr.attrib.phy_info.SignalStrength;/* in percentage */ /* checking SSID */ p = rtw_get_ie(bssid->ies + ie_offset, WLAN_EID_SSID, &len, bssid->ie_length - ie_offset); @@ -4095,9 +4095,9 @@ u8 collect_bss_info(struct adapter *padapter, union recv_frame *precv_frame, str pmlmepriv->num_sta_no_ht++; } - /* mark bss info receiving from nearby channel as SignalQuality 101 */ + /* mark bss info receiving from nearby channel as signal_quality 101 */ if (bssid->configuration.ds_config != rtw_get_oper_ch(padapter)) - bssid->phy_info.SignalQuality = 101; + bssid->phy_info.signal_quality = 101; return _SUCCESS; } diff --git a/drivers/staging/rtl8723bs/include/wlan_bssdef.h b/drivers/staging/rtl8723bs/include/wlan_bssdef.h index 331578129644..4e6d0b8e17a6 100644 --- a/drivers/staging/rtl8723bs/include/wlan_bssdef.h +++ b/drivers/staging/rtl8723bs/include/wlan_bssdef.h @@ -143,10 +143,10 @@ struct ndis_802_11_wep { #endif struct wlan_phy_info { - u8 SignalStrength;/* in percentage) */ - u8 SignalQuality;/* in percentage) */ - u8 Optimum_antenna; /* for Antenna diversity */ - u8 Reserved_0; + u8 signal_strength;/* in percentage) */ + u8 signal_quality;/* in percentage) */ + u8 optimum_antenna; /* for Antenna diversity */ + u8 reserved_0; }; struct wlan_bcn_info { diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c index 17628704d428..bcd8d03a35a0 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c @@ -290,7 +290,7 @@ struct cfg80211_bss *rtw_cfg80211_inform_bss(struct adapter *padapter, struct wl is_same_network(&pmlmepriv->cur_network.network, &pnetwork->network, 0)) { notify_signal = 100*translate_percentage_to_dbm(padapter->recvpriv.signal_strength);/* dbm */ } else { - notify_signal = 100*translate_percentage_to_dbm(pnetwork->network.phy_info.SignalStrength);/* dbm */ + notify_signal = 100*translate_percentage_to_dbm(pnetwork->network.phy_info.signal_strength);/* dbm */ } buf = kzalloc(MAX_BSSINFO_LEN, GFP_ATOMIC); diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c index 95aef62ecfb8..8c44db696b52 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c @@ -303,8 +303,8 @@ static char *translate_scan(struct adapter *padapter, ss = padapter->recvpriv.signal_strength; sq = padapter->recvpriv.signal_qual; } else { - ss = pnetwork->network.phy_info.SignalStrength; - sq = pnetwork->network.phy_info.SignalQuality; + ss = pnetwork->network.phy_info.signal_strength; + sq = pnetwork->network.phy_info.signal_quality; } -- 2.20.1