]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drivers: staging: rtl8723au: Fix "foo* bar" should be "foo *bar" errors
authorGreg Donald <gdonald@gmail.com>
Fri, 22 Aug 2014 15:57:49 +0000 (10:57 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Aug 2014 20:54:53 +0000 (13:54 -0700)
Fix checkpatch.pl "foo* bar" should be "foo *bar" errors

Signed-off-by: Greg Donald <gdonald@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_ap.c
drivers/staging/rtl8723au/core/rtw_cmd.c
drivers/staging/rtl8723au/core/rtw_ieee80211.c
drivers/staging/rtl8723au/core/rtw_mlme.c
drivers/staging/rtl8723au/core/rtw_mlme_ext.c
drivers/staging/rtl8723au/core/rtw_recv.c
drivers/staging/rtl8723au/include/ieee80211.h
drivers/staging/rtl8723au/include/rtl8723a_rf.h
drivers/staging/rtl8723au/include/rtw_mlme_ext.h
drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c

index 4d2880abf4ee0ad3968e9e3093882c224f7a1686..888abeb89d14ed1c135d61f62dc92de2ee53f8c5 100644 (file)
@@ -644,7 +644,7 @@ static void start_bss_network(struct rtw_adapter *padapter, u8 *pbuf)
        u32 acparm;
        struct registry_priv *pregpriv = &padapter->registrypriv;
        struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
-       struct security_privpsecuritypriv = &padapter->securitypriv;
+       struct security_priv *psecuritypriv = &padapter->securitypriv;
        struct wlan_bssid_ex *pnetwork = &pmlmepriv->cur_network.network;
        struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
        struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
index 7241a5a8731c2fb4e54cec4bd5642ff252d16a50..71a08785c0634abac4d0cd4c311598a59cf4eb50 100644 (file)
@@ -1513,8 +1513,8 @@ void rtw_setassocsta_cmdrsp_callback23a(struct rtw_adapter *padapter,
 {
        struct sta_priv *pstapriv = &padapter->stapriv;
        struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
-       struct set_assocsta_parmpassocsta_parm;
-       struct set_assocsta_rsppassocsta_rsp;
+       struct set_assocsta_parm *passocsta_parm;
+       struct set_assocsta_rsp *passocsta_rsp;
        struct sta_info *psta;
 
        passocsta_parm = (struct set_assocsta_parm *)(pcmd->parmbuf);
index 23e666244f4eb2607313ef17b03173305fb05fde..6274cb397c9217d25e164c67d1d0816855d26896 100644 (file)
@@ -295,7 +295,7 @@ exit:
        return ret;
 }
 
-void rtw_set_supported_rate23a(u8SupportedRates, uint mode)
+void rtw_set_supported_rate23a(u8 *SupportedRates, uint mode)
 {
 
 
@@ -520,7 +520,7 @@ int rtw_parse_wpa_ie23a(const u8* wpa_ie, int wpa_ie_len, int *group_cipher, int
        return ret;
 }
 
-int rtw_parse_wpa2_ie23a(const u8rsn_ie, int rsn_ie_len, int *group_cipher,
+int rtw_parse_wpa2_ie23a(const u8 *rsn_ie, int rsn_ie_len, int *group_cipher,
                      int *pairwise_cipher, int *is_8021x)
 {
        int i, ret = _SUCCESS;
index c475b79bbf1df67feecd7a2e0a6330d5eabdc5bb..57f93f57682dad746ece096ec8bdc5771abf67bf 100644 (file)
@@ -208,7 +208,7 @@ int rtw_if_up23a(struct rtw_adapter *padapter)
        return res;
 }
 
-void rtw_generate_random_ibss23a(u8pibss)
+void rtw_generate_random_ibss23a(u8 *pibss)
 {
        unsigned long curtime = jiffies;
 
@@ -610,7 +610,7 @@ void rtw_survey_event_cb23a(struct rtw_adapter *adapter, const u8 *pbuf)
                   "rtw_survey_event_cb23a : WIFI_ADHOC_MASTER_STATE\n\n"); */
                if (ether_addr_equal(pmlmepriv->cur_network.network.MacAddress,
                                     pnetwork->MacAddress)) {
-                       struct wlan_networkibss_wlan;
+                       struct wlan_network *ibss_wlan;
 
                        pmlmepriv->cur_network.network.beacon_interval =
                                pnetwork->beacon_interval;
@@ -754,11 +754,11 @@ static void free_scanqueue(struct mlme_priv *pmlmepriv)
 void rtw_free_assoc_resources23a(struct rtw_adapter *adapter,
                                 int lock_scanned_queue)
 {
-       struct wlan_networkpwlan;
+       struct wlan_network *pwlan;
        struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
        struct sta_priv *pstapriv = &adapter->stapriv;
        struct wlan_network *tgt_network = &pmlmepriv->cur_network;
-       struct sta_infopsta;
+       struct sta_info *psta;
 
        RT_TRACE(_module_rtl871x_mlme_c_, _drv_notice_,
                 ("+rtw_free_assoc_resources23a\n"));
@@ -1335,7 +1335,7 @@ void rtw_stadel_event_callback23a(struct rtw_adapter *adapter, const u8 *pbuf)
 {
        int mac_id;
        struct sta_info *psta;
-       struct wlan_networkpwlan;
+       struct wlan_network *pwlan;
        struct wlan_bssid_ex *pdev_network;
        struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
        struct stadel_event *pstadel = (struct stadel_event *)pbuf;
@@ -1768,7 +1768,7 @@ exit:
 int rtw_set_auth23a(struct rtw_adapter * adapter,
                    struct security_priv *psecuritypriv)
 {
-       struct cmd_objpcmd;
+       struct cmd_obj *pcmd;
        struct setauth_parm *psetauthparm;
        struct cmd_priv *pcmdpriv = &adapter->cmdpriv;
        int res = _SUCCESS;
@@ -2048,10 +2048,10 @@ int rtw_restruct_sec_ie23a(struct rtw_adapter *adapter, u8 *in_ie, u8 *out_ie,
        return ielength;
 }
 
-void rtw_init_registrypriv_dev_network23a(struct rtw_adapteradapter)
+void rtw_init_registrypriv_dev_network23a(struct rtw_adapter *adapter)
 {
-       struct registry_privpregistrypriv = &adapter->registrypriv;
-       struct eeprom_privpeepriv = &adapter->eeprompriv;
+       struct registry_priv *pregistrypriv = &adapter->registrypriv;
+       struct eeprom_priv *peepriv = &adapter->eeprompriv;
        struct wlan_bssid_ex    *pdev_network = &pregistrypriv->dev_network;
        u8 *myhwaddr = myid(peepriv);
 
@@ -2063,10 +2063,10 @@ void rtw_init_registrypriv_dev_network23a(struct rtw_adapter* adapter)
        pdev_network->beacon_interval = 100;
 }
 
-void rtw_update_registrypriv_dev_network23a(struct rtw_adapteradapter)
+void rtw_update_registrypriv_dev_network23a(struct rtw_adapter *adapter)
 {
        int sz = 0;
-       struct registry_privpregistrypriv = &adapter->registrypriv;
+       struct registry_priv *pregistrypriv = &adapter->registrypriv;
        struct wlan_bssid_ex *pdev_network = &pregistrypriv->dev_network;
        struct security_priv *psecuritypriv = &adapter->securitypriv;
        struct wlan_network *cur_network = &adapter->mlmepriv.cur_network;
index c5fdcb89dacd0b3a11054e98785c2336f94a87d0..c5511ea9cf525d33bfcf5f84a53ac94e2e6554a3 100644 (file)
@@ -356,7 +356,7 @@ int init_hw_mlme_ext23a(struct rtw_adapter *padapter)
        return _SUCCESS;
 }
 
-static void init_mlme_ext_priv23a_value(struct rtw_adapterpadapter)
+static void init_mlme_ext_priv23a_value(struct rtw_adapter *padapter)
 {
        struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
        struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
@@ -480,7 +480,7 @@ static void init_channel_list(struct rtw_adapter *padapter,
        channel_list->reg_classes = cla;
 }
 
-static u8 init_channel_set(struct rtw_adapterpadapter, u8 cplan,
+static u8 init_channel_set(struct rtw_adapter *padapter, u8 cplan,
                           struct rt_channel_info *c_set)
 {
        u8 i, ch_size = 0;
@@ -564,10 +564,10 @@ static u8 init_channel_set(struct rtw_adapter* padapter, u8 cplan,
        return ch_size;
 }
 
-int init_mlme_ext_priv23a(struct rtw_adapterpadapter)
+int init_mlme_ext_priv23a(struct rtw_adapter *padapter)
 {
        int res = _SUCCESS;
-       struct registry_privpregistrypriv = &padapter->registrypriv;
+       struct registry_priv *pregistrypriv = &padapter->registrypriv;
        struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
        struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
        struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
@@ -4313,7 +4313,7 @@ fail:
        return NULL;
 }
 
-static void start_create_ibss(struct rtw_adapterpadapter)
+static void start_create_ibss(struct rtw_adapter *padapter)
 {
        unsigned short caps;
        struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
@@ -4362,7 +4362,7 @@ static void start_create_ibss(struct rtw_adapter* padapter)
        }
 }
 
-static void start_clnt_join(struct rtw_adapterpadapter)
+static void start_clnt_join(struct rtw_adapter *padapter)
 {
        unsigned short caps;
        u8 val8;
@@ -4422,7 +4422,7 @@ static void start_clnt_join(struct rtw_adapter* padapter)
        }
 }
 
-static void start_clnt_auth(struct rtw_adapterpadapter)
+static void start_clnt_auth(struct rtw_adapter *padapter)
 {
        struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
        struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
@@ -4453,7 +4453,7 @@ static void start_clnt_auth(struct rtw_adapter* padapter)
        set_link_timer(pmlmeext, REAUTH_TO);
 }
 
-static void start_clnt_assoc(struct rtw_adapterpadapter)
+static void start_clnt_assoc(struct rtw_adapter *padapter)
 {
        struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
        struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
@@ -4878,7 +4878,7 @@ void report_join_res23a(struct rtw_adapter *padapter, int res)
 }
 
 void report_del_sta_event23a(struct rtw_adapter *padapter,
-                            unsigned charMacAddr, unsigned short reason)
+                            unsigned char *MacAddr, unsigned short reason)
 {
        struct cmd_obj *pcmd_obj;
        u8 *pevtcmd;
@@ -4934,7 +4934,7 @@ void report_del_sta_event23a(struct rtw_adapter *padapter,
 }
 
 void report_add_sta_event23a(struct rtw_adapter *padapter,
-                            unsigned charMacAddr, int cam_idx)
+                            unsigned char *MacAddr, int cam_idx)
 {
        struct cmd_obj *pcmd_obj;
        u8 *pevtcmd;
@@ -6022,7 +6022,7 @@ int add_ba_hdl23a(struct rtw_adapter *padapter, const u8 *pbuf)
        return H2C_SUCCESS;
 }
 
-int set_tx_beacon_cmd23a(struct rtw_adapterpadapter)
+int set_tx_beacon_cmd23a(struct rtw_adapter *padapter)
 {
        struct cmd_obj *ph2c;
        struct Tx_Beacon_param *ptxBeacon_parm;
index a9f8183349ab1c3a1ba2150b34230d20690f96be..0cdcd12628172e6590787a96a563ee9a7afddac0 100644 (file)
@@ -1230,7 +1230,7 @@ static int validate_recv_ctrl_frame(struct rtw_adapter *padapter,
        return _FAIL;
 }
 
-struct recv_framerecvframe_chk_defrag23a(struct rtw_adapter *padapter,
+struct recv_frame *recvframe_chk_defrag23a(struct rtw_adapter *padapter,
                                        struct recv_frame *precv_frame);
 static int validate_recv_mgnt_frame(struct rtw_adapter *padapter,
                                    struct recv_frame *precv_frame)
@@ -1705,7 +1705,7 @@ struct recv_frame *recvframe_defrag(struct rtw_adapter *adapter,
 }
 
 /* check if need to defrag, if needed queue the frame to defrag_q */
-struct recv_framerecvframe_chk_defrag23a(struct rtw_adapter *padapter,
+struct recv_frame *recvframe_chk_defrag23a(struct rtw_adapter *padapter,
                                        struct recv_frame *precv_frame)
 {
        u8      ismfrag;
index e9f465f0bc2cf701d478dab935b9bceeac2dd64c..c1a334d2b88e2c0b898a0d0d24dd0e8bb84d6146 100644 (file)
@@ -332,7 +332,7 @@ u8 *rtw_get_ie23a(u8*pbuf, int index, int *len, int limit);
 u8 *rtw_get_ie23a_ex(u8 *in_ie, uint in_len, u8 eid, u8 *oui, u8 oui_len, u8 *ie, uint *ielen);
 int rtw_ies_remove_ie23a(u8 *ies, uint *ies_len, uint offset, u8 eid, u8 *oui, u8 oui_len);
 
-void rtw_set_supported_rate23a(u8* SupportedRates, uint mode) ;
+void rtw_set_supported_rate23a(u8 *SupportedRates, uint mode);
 
 int rtw_parse_wpa_ie23a(const u8* wpa_ie, int wpa_ie_len, int *group_cipher, int *pairwise_cipher, int *is_8021x);
 int rtw_parse_wpa2_ie23a(const u8* wpa_ie, int wpa_ie_len, int *group_cipher, int *pairwise_cipher, int *is_8021x);
index 166a45fe47b106b3e2260ea317f0b583f04f7aca..0432799f53cf13a4142d71553d33b3e4d020b8d8 100644 (file)
@@ -47,9 +47,9 @@
 void rtl8723a_phy_rf6052set_bw(struct rtw_adapter *Adapter,
                               enum ht_channel_width Bandwidth);
 void rtl823a_phy_rf6052setccktxpower(struct rtw_adapter *Adapter,
-                                     u8pPowerlevel);
+                                     u8 *pPowerlevel);
 void rtl8723a_PHY_RF6052SetOFDMTxPower(struct rtw_adapter *Adapter,
-                                      u8pPowerLevel, u8 Channel);
+                                      u8 *pPowerLevel, u8 Channel);
 
 /*--------------------------Exported Function prototype---------------------*/
 
index 2e32c832fd21fa1a569f93406ae38c2ec27abdad..ea53d73356ef016df6a839066c32f5ee641358a3 100644 (file)
@@ -266,7 +266,7 @@ struct mlme_handler {
 
 struct action_handler {
        unsigned int   num;
-       charstr;
+       char *str;
        int (*func)(struct rtw_adapter *padapter, struct recv_frame *precv_frame);
 };
 
@@ -446,7 +446,7 @@ struct mlme_ext_priv {
        u8 active_keep_alive_check;
 };
 
-int init_mlme_ext_priv23a(struct rtw_adapterpadapter);
+int init_mlme_ext_priv23a(struct rtw_adapter *padapter);
 int init_hw_mlme_ext23a(struct rtw_adapter *padapter);
 void free_mlme_ext_priv23a (struct mlme_ext_priv *pmlmeext);
 void init_mlme_ext_timer23a(struct rtw_adapter *padapter);
@@ -514,7 +514,7 @@ void update_capinfo23a(struct rtw_adapter *Adapter, u16 updateCap);
 void update_wireless_mode23a(struct rtw_adapter * padapter);
 void update_tx_basic_rate23a(struct rtw_adapter *padapter, u8 modulation);
 void update_bmc_sta_support_rate23a(struct rtw_adapter *padapter, u32 mac_id);
-int update_sta_support_rate23a(struct rtw_adapter *padapter, u8pvar_ie,
+int update_sta_support_rate23a(struct rtw_adapter *padapter, u8 *pvar_ie,
                            uint var_ie_len, int cam_idx);
 
 /* for sta/adhoc mode */
index 93dc844a10b35dcebaf05b8c94d53c66715d0e88..4b39476d903e7d04ff1de2c419413fdd084ab8ad 100644 (file)
@@ -1118,7 +1118,7 @@ exit:
        return ret;
 }
 
-int cfg80211_infrastructure_mode(struct rtw_adapterpadapter,
+int cfg80211_infrastructure_mode(struct rtw_adapter *padapter,
                                 enum nl80211_iftype ifmode)
 {
        struct mlme_priv *pmlmepriv = &padapter->mlmepriv;