staging: rtlwifi: Reviewers fixes
authorLarry Finger <Larry.Finger@lwfinger.net>
Thu, 17 Aug 2017 17:46:52 +0000 (12:46 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Aug 2017 18:13:12 +0000 (11:13 -0700)
This commit adds the TODO file and implements some reviewers comments
made against some patches to the wireless tree.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Ping-Ke Shih <pkshih@realtek.com>
Cc: Yan-Hsuan Chuang <yhchuang@realtek.com>
Cc: Birming Chiu <birming@realtek.com>
Cc: Shaofu <shaofu@realtek.com>
Cc: Steven Ting <steventing@realtek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtlwifi/TODO
drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c
drivers/staging/rtlwifi/debug.c
drivers/staging/rtlwifi/rtl8822be/sw.c

index 52a85cdf453c824f483059df021a271eb122bca1..4a084f2fc5d0700646e9809a94ef56f219ef23cc 100644 (file)
@@ -1,11 +1,11 @@
 TODO:
-- checkpatch.pl fixes - most of the remaining ones are lines too long. Many
-  of them will require refactoring
-- merge Realtek's bugfixes and new features into the driver
 - find and remove code blocks guarded by never set CONFIG_FOO defines
 - convert any remaining unusual variable types
 - find codes that can use %pM and %Nph formatting
-- fix any reviewer's comments regarding movin the driver to drivers/net/wireless
+- checkpatch.pl fixes - most of the remaining ones are lines too long. Many
+  of them will require refactoring
+- merge Realtek's bugfixes and new features into the driver
+- address any reviewers comments
 
 Please send any patches to Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
 and Larry Finger <Larry.Finger@lwfinger.net>.
index 39229cdb8045ed8ba4fd7741015a9a23497ce6d7..52620b72cfa9098e87ca9195112284fb536ae60f 100644 (file)
@@ -791,18 +791,17 @@ static void halbtc_display_wifi_status(struct btc_coexist *btcoexist,
                                       struct seq_file *m)
 {
        struct rtl_priv *rtlpriv = btcoexist->adapter;
-       s32     wifi_rssi = 0, bt_hs_rssi = 0;
-       bool    scan = false, link = false, roam = false, wifi_busy = false,
-               wifi_under_b_mode = false,
-               wifi_under_5g = false;
-       u32     wifi_bw = BTC_WIFI_BW_HT20,
-               wifi_traffic_dir = BTC_WIFI_TRAFFIC_TX,
-               wifi_freq = BTC_FREQ_2_4G;
-       u32     wifi_link_status = 0x0;
-       bool    bt_hs_on = false, under_ips = false, under_lps = false,
-               low_power = false, dc_mode = false;
-       u8      wifi_chnl = 0, wifi_hs_chnl = 0, fw_ps_state;
-       u8      ap_num = 0;
+       s32 wifi_rssi = 0, bt_hs_rssi = 0;
+       bool scan = false, link = false, roam = false, wifi_busy = false;
+       bool wifi_under_b_mode = false, wifi_under_5g = false;
+       u32 wifi_bw = BTC_WIFI_BW_HT20;
+       u32 wifi_traffic_dir = BTC_WIFI_TRAFFIC_TX;
+       u32 wifi_freq = BTC_FREQ_2_4G;
+       u32 wifi_link_status = 0x0;
+       bool bt_hs_on = false, under_ips = false, under_lps = false;
+       bool low_power = false, dc_mode = false;
+       u8 wifi_chnl = 0, wifi_hs_chnl = 0, fw_ps_state;
+       u8 ap_num = 0;
 
        wifi_link_status = halbtc_get_wifi_link_status(btcoexist);
        seq_printf(m, "\n %-35s = %d/ %d/ %d/ %d/ %d",
index ed26267393be080a6a1859c75c0df8f9a2d1f3b6..b9fd47aeaa9b73671b553a4cf823eab4c95666b7 100644 (file)
@@ -511,10 +511,7 @@ void rtl_debug_add_one(struct ieee80211_hw *hw)
 
        rtlpriv->dbg.msg_buf = vzalloc(80 * 25);
 
-       snprintf(rtlpriv->dbg.debugfs_name, 18, "%02x-%02x-%02x-%02x-%02x-%02x",
-                rtlefuse->dev_addr[0], rtlefuse->dev_addr[1],
-                rtlefuse->dev_addr[2], rtlefuse->dev_addr[3],
-                rtlefuse->dev_addr[4], rtlefuse->dev_addr[5]);
+       snprintf(rtlpriv->dbg.debugfs_name, 18, "%pMF", rtlefuse->dev_addr);
 
        rtlpriv->dbg.debugfs_dir =
                debugfs_create_dir(rtlpriv->dbg.debugfs_name, debugfs_topdir);
index 913fec4f1eea970cd78eb079eaf33badbd33cf9e..91b784b6d1c5d6a4dd8f64b17b37ec57812bbc30 100644 (file)
@@ -432,7 +432,7 @@ static struct rtl_hal_cfg rtl8822be_hal_cfg = {
        .maps[RTL_RC_VHT_RATE_2SS_MCS9] = DESC_RATEVHT2SS_MCS9,
 };
 
-static struct pci_device_id rtl8822be_pci_ids[] = {
+static const struct pci_device_id rtl8822be_pci_ids[] = {
        {RTL_PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0xB822, rtl8822be_hal_cfg)},
        {},
 };