Commit 52cab756 authored by Mike McCormack's avatar Mike McCormack Committed by Greg Kroah-Hartman

Staging: rtl8192e: Convert macros to inline functions

Signed-off-by: default avatarMike McCormack <mikem@ring3k.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a922a4b7
...@@ -41,9 +41,11 @@ typedef struct _RT_DOT11D_INFO { ...@@ -41,9 +41,11 @@ typedef struct _RT_DOT11D_INFO {
DOT11D_STATE State; DOT11D_STATE State;
} RT_DOT11D_INFO, *PRT_DOT11D_INFO; } RT_DOT11D_INFO, *PRT_DOT11D_INFO;
#define eqMacAddr(a, b) (((a)[0] == (b)[0] && (a)[1] == (b)[1] && (a)[2] == \ static inline bool eqMacAddr(u8 *a, u8 *b)
(b)[2] && (a)[3] == (b)[3] && (a)[4] == (b)[4] && \ {
(a)[5] == (b)[5]) ? 1 : 0) return a[0] == b[0] && a[1] == b[1] && a[2] == b[2] &&
a[3] == b[3] && a[4] == b[4] && a[5] == b[5];
}
#define cpMacAddr(des, src) ((des)[0] = (src)[0], (des)[1] = (src)[1], \ #define cpMacAddr(des, src) ((des)[0] = (src)[0], (des)[1] = (src)[1], \
(des)[2] = (src)[2], (des)[3] = (src)[3], \ (des)[2] = (src)[2], (des)[3] = (src)[3], \
......
...@@ -237,17 +237,14 @@ static void rtl819x_set_channel_map(u8 channel_plan, struct r8192_priv* priv) ...@@ -237,17 +237,14 @@ static void rtl819x_set_channel_map(u8 channel_plan, struct r8192_priv* priv)
} }
#endif #endif
static inline bool rx_hal_is_cck_rate(prx_fwinfo_819x_pci pdrvinfo)
#define eqMacAddr(a,b) ( ((a)[0]==(b)[0] && (a)[1]==(b)[1] && (a)[2]==(b)[2] && (a)[3]==(b)[3] && (a)[4]==(b)[4] && (a)[5]==(b)[5]) ? 1:0 ) {
return (pdrvinfo->RxRate == DESC90_RATE1M ||
pdrvinfo->RxRate == DESC90_RATE2M ||
#define rx_hal_is_cck_rate(_pdrvinfo)\ pdrvinfo->RxRate == DESC90_RATE5_5M ||
(_pdrvinfo->RxRate == DESC90_RATE1M ||\ pdrvinfo->RxRate == DESC90_RATE11M) &&
_pdrvinfo->RxRate == DESC90_RATE2M ||\ !pdrvinfo->RxHT;
_pdrvinfo->RxRate == DESC90_RATE5_5M ||\ }
_pdrvinfo->RxRate == DESC90_RATE11M) &&\
!_pdrvinfo->RxHT\
void CamResetAllEntry(struct net_device *dev) void CamResetAllEntry(struct net_device *dev)
{ {
......
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