Commit dc6b15f3 authored by Ken O'Brien's avatar Ken O'Brien Committed by Greg Kroah-Hartman

Staging: rtl8192e: Fixed numerous coding style issues

Coding style review: fixed all warnings, and all but three
typedef errors.
Signed-off-by: default avatarKen O'Brien <kernel@kenobrien.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 23567c75
...@@ -19,11 +19,11 @@ typedef enum _DOT11D_STATE { ...@@ -19,11 +19,11 @@ typedef enum _DOT11D_STATE {
/** /**
* struct _RT_DOT11D_INFO * struct _RT_DOT11D_INFO
* @CountryIeLen: value greater than 0 if @CountryIeBuf contains * @CountryIeLen: value greater than 0 if @CountryIeBuf contains
* valid country information element. * valid country information element.
* @chanell_map: holds channel values * @chanell_map: holds channel values
* 0 - invalid, * 0 - invalid,
* 1 - valid (active scan), * 1 - valid (active scan),
* 2 - valid (passive scan) * 2 - valid (passive scan)
* @CountryIeSrcAddr - Source AP of the country IE * @CountryIeSrcAddr - Source AP of the country IE
*/ */
...@@ -49,7 +49,7 @@ static inline void cpMacAddr(unsigned char *des, unsigned char *src) ...@@ -49,7 +49,7 @@ static inline void cpMacAddr(unsigned char *des, unsigned char *src)
#define GET_DOT11D_INFO(__pIeeeDev) ((PRT_DOT11D_INFO) \ #define GET_DOT11D_INFO(__pIeeeDev) ((PRT_DOT11D_INFO) \
((__pIeeeDev)->pDot11dInfo)) ((__pIeeeDev)->pDot11dInfo))
#define IS_DOT11D_ENABLE(__pIeeeDev) GET_DOT11D_INFO(__pIeeeDev)->bEnabled #define IS_DOT11D_ENABLE(__pIeeeDev) (GET_DOT11D_INFO(__pIeeeDev)->bEnabled)
#define IS_COUNTRY_IE_VALID(__pIeeeDev) \ #define IS_COUNTRY_IE_VALID(__pIeeeDev) \
(GET_DOT11D_INFO(__pIeeeDev)->CountryIeLen > 0) (GET_DOT11D_INFO(__pIeeeDev)->CountryIeLen > 0)
...@@ -66,9 +66,10 @@ static inline void cpMacAddr(unsigned char *des, unsigned char *src) ...@@ -66,9 +66,10 @@ static inline void cpMacAddr(unsigned char *des, unsigned char *src)
(__Ie).Octet, (__Ie).Length))) (__Ie).Octet, (__Ie).Length)))
#define CIE_WATCHDOG_TH 1 #define CIE_WATCHDOG_TH 1
#define GET_CIE_WATCHDOG(__pIeeeDev) GET_DOT11D_INFO(__pIeeeDev)->CountryIeWatchdog #define GET_CIE_WATCHDOG(__pIeeeDev) (GET_DOT11D_INFO(__pIeeeDev)-> \
CountryIeWatchdog)
#define RESET_CIE_WATCHDOG(__pIeeeDev) GET_CIE_WATCHDOG(__pIeeeDev) = 0 #define RESET_CIE_WATCHDOG(__pIeeeDev) GET_CIE_WATCHDOG(__pIeeeDev) = 0
#define UPDATE_CIE_WATCHDOG(__pIeeeDev) ++GET_CIE_WATCHDOG(__pIeeeDev) #define UPDATE_CIE_WATCHDOG(__pIeeeDev) (++GET_CIE_WATCHDOG(__pIeeeDev))
#define IS_DOT11D_STATE_DONE(__pIeeeDev) \ #define IS_DOT11D_STATE_DONE(__pIeeeDev) \
(GET_DOT11D_INFO(__pIeeeDev)->State == DOT11D_STATE_DONE) (GET_DOT11D_INFO(__pIeeeDev)->State == DOT11D_STATE_DONE)
......
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