Commit 95ddd225 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: rtw_sta_mgt.c: Clean up messy usage of return types

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 75f3f039
...@@ -49,7 +49,7 @@ static void _rtw_init_stainfo(struct sta_info *psta) ...@@ -49,7 +49,7 @@ static void _rtw_init_stainfo(struct sta_info *psta)
#endif /* CONFIG_8723AU_AP_MODE */ #endif /* CONFIG_8723AU_AP_MODE */
} }
u32 _rtw_init_sta_priv23a(struct sta_priv *pstapriv) int _rtw_init_sta_priv23a(struct sta_priv *pstapriv)
{ {
int i; int i;
...@@ -77,7 +77,7 @@ u32 _rtw_init_sta_priv23a(struct sta_priv *pstapriv) ...@@ -77,7 +77,7 @@ u32 _rtw_init_sta_priv23a(struct sta_priv *pstapriv)
return _SUCCESS; return _SUCCESS;
} }
u32 _rtw_free_sta_priv23a(struct sta_priv *pstapriv) int _rtw_free_sta_priv23a(struct sta_priv *pstapriv)
{ {
struct list_head *phead, *plist, *ptmp; struct list_head *phead, *plist, *ptmp;
struct sta_info *psta; struct sta_info *psta;
...@@ -186,7 +186,7 @@ rtw_alloc_stainfo23a(struct sta_priv *pstapriv, u8 *hwaddr, int gfp) ...@@ -186,7 +186,7 @@ rtw_alloc_stainfo23a(struct sta_priv *pstapriv, u8 *hwaddr, int gfp)
} }
/* using pstapriv->sta_hash_lock to protect */ /* using pstapriv->sta_hash_lock to protect */
u32 rtw_free_stainfo23a(struct rtw_adapter *padapter, struct sta_info *psta) int rtw_free_stainfo23a(struct rtw_adapter *padapter, struct sta_info *psta)
{ {
struct recv_reorder_ctrl *preorder_ctrl; struct recv_reorder_ctrl *preorder_ctrl;
struct sta_xmit_priv *pstaxmitpriv; struct sta_xmit_priv *pstaxmitpriv;
...@@ -373,12 +373,12 @@ struct sta_info *rtw_get_stainfo23a(struct sta_priv *pstapriv, const u8 *hwaddr) ...@@ -373,12 +373,12 @@ struct sta_info *rtw_get_stainfo23a(struct sta_priv *pstapriv, const u8 *hwaddr)
return psta; return psta;
} }
u32 rtw_init_bcmc_stainfo23a(struct rtw_adapter* padapter) int rtw_init_bcmc_stainfo23a(struct rtw_adapter* padapter)
{ {
struct sta_priv *pstapriv = &padapter->stapriv; struct sta_priv *pstapriv = &padapter->stapriv;
struct sta_info *psta; struct sta_info *psta;
struct tx_servq *ptxservq; struct tx_servq *ptxservq;
u32 res = _SUCCESS; int res = _SUCCESS;
unsigned char bcast_addr[6] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; unsigned char bcast_addr[6] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
psta = rtw_alloc_stainfo23a(pstapriv, bcast_addr, GFP_KERNEL); psta = rtw_alloc_stainfo23a(pstapriv, bcast_addr, GFP_KERNEL);
...@@ -405,13 +405,13 @@ struct sta_info *rtw_get_bcmc_stainfo23a(struct rtw_adapter *padapter) ...@@ -405,13 +405,13 @@ struct sta_info *rtw_get_bcmc_stainfo23a(struct rtw_adapter *padapter)
return psta; return psta;
} }
u8 rtw_access_ctrl23a(struct rtw_adapter *padapter, u8 *mac_addr) bool rtw_access_ctrl23a(struct rtw_adapter *padapter, u8 *mac_addr)
{ {
u8 res = true; bool res = true;
#ifdef CONFIG_8723AU_AP_MODE #ifdef CONFIG_8723AU_AP_MODE
struct list_head *plist, *phead; struct list_head *plist, *phead;
struct rtw_wlan_acl_node *paclnode; struct rtw_wlan_acl_node *paclnode;
u8 match = false; bool match = false;
struct sta_priv *pstapriv = &padapter->stapriv; struct sta_priv *pstapriv = &padapter->stapriv;
struct wlan_acl_pool *pacl_list = &pstapriv->acl_list; struct wlan_acl_pool *pacl_list = &pstapriv->acl_list;
struct rtw_queue *pacl_node_q = &pacl_list->acl_node_q; struct rtw_queue *pacl_node_q = &pacl_list->acl_node_q;
......
...@@ -359,15 +359,15 @@ static inline u32 wifi_mac_hash(const u8 *mac) ...@@ -359,15 +359,15 @@ static inline u32 wifi_mac_hash(const u8 *mac)
return x; return x;
} }
u32 _rtw_init_sta_priv23a(struct sta_priv *pstapriv); int _rtw_init_sta_priv23a(struct sta_priv *pstapriv);
u32 _rtw_free_sta_priv23a(struct sta_priv *pstapriv); int _rtw_free_sta_priv23a(struct sta_priv *pstapriv);
struct sta_info *rtw_alloc_stainfo23a(struct sta_priv *pstapriv, u8 *hwaddr, int gfp); struct sta_info *rtw_alloc_stainfo23a(struct sta_priv *pstapriv, u8 *hwaddr, int gfp);
u32 rtw_free_stainfo23a(struct rtw_adapter *padapter, struct sta_info *psta); int rtw_free_stainfo23a(struct rtw_adapter *padapter, struct sta_info *psta);
void rtw_free_all_stainfo23a(struct rtw_adapter *padapter); void rtw_free_all_stainfo23a(struct rtw_adapter *padapter);
struct sta_info *rtw_get_stainfo23a(struct sta_priv *pstapriv, const u8 *hwaddr); struct sta_info *rtw_get_stainfo23a(struct sta_priv *pstapriv, const u8 *hwaddr);
u32 rtw_init_bcmc_stainfo23a(struct rtw_adapter *padapter); int rtw_init_bcmc_stainfo23a(struct rtw_adapter *padapter);
struct sta_info *rtw_get_bcmc_stainfo23a(struct rtw_adapter *padapter); struct sta_info *rtw_get_bcmc_stainfo23a(struct rtw_adapter *padapter);
u8 rtw_access_ctrl23a(struct rtw_adapter *padapter, u8 *mac_addr); bool rtw_access_ctrl23a(struct rtw_adapter *padapter, u8 *mac_addr);
#endif /* _STA_INFO_H_ */ #endif /* _STA_INFO_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment