Commit d956839d authored by Ajay Singh's avatar Ajay Singh Committed by Greg Kroah-Hartman

staging: wilc1000: rename variables prefix using datatype 'u8'

Rename variables with datatype 'u8' in their name to follow the linux
coding style.

Renamed following variables:
u8abort_running_scan
pu8Buffer
pu8keybuf
pu8msa
u8remain_on_chan_flag
Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Reviewed-by: default avatarClaudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0e7ba8eb
...@@ -148,19 +148,19 @@ static inline u8 get_from_ds(u8 *header) ...@@ -148,19 +148,19 @@ static inline u8 get_from_ds(u8 *header)
return ((header[1] & 0x02) >> 1); return ((header[1] & 0x02) >> 1);
} }
static inline void get_address1(u8 *pu8msa, u8 *addr) static inline void get_address1(u8 *msa, u8 *addr)
{ {
memcpy(addr, pu8msa + 4, 6); memcpy(addr, msa + 4, 6);
} }
static inline void get_address2(u8 *pu8msa, u8 *addr) static inline void get_address2(u8 *msa, u8 *addr)
{ {
memcpy(addr, pu8msa + 10, 6); memcpy(addr, msa + 10, 6);
} }
static inline void get_address3(u8 *pu8msa, u8 *addr) static inline void get_address3(u8 *msa, u8 *addr)
{ {
memcpy(addr, pu8msa + 16, 6); memcpy(addr, msa + 16, 6);
} }
static inline void get_BSSID(u8 *data, u8 *bssid) static inline void get_BSSID(u8 *data, u8 *bssid)
...@@ -238,30 +238,30 @@ static inline u16 get_asoc_id(u8 *data) ...@@ -238,30 +238,30 @@ static inline u16 get_asoc_id(u8 *data)
return asoc_id; return asoc_id;
} }
static u8 *get_tim_elm(u8 *pu8msa, u16 rx_len, u16 tag_param_offset) static u8 *get_tim_elm(u8 *msa, u16 rx_len, u16 tag_param_offset)
{ {
u16 index; u16 index;
index = tag_param_offset; index = tag_param_offset;
while (index < (rx_len - FCS_LEN)) { while (index < (rx_len - FCS_LEN)) {
if (pu8msa[index] == ITIM) if (msa[index] == ITIM)
return &pu8msa[index]; return &msa[index];
index += (IE_HDR_LEN + pu8msa[index + 1]); index += (IE_HDR_LEN + msa[index + 1]);
} }
return NULL; return NULL;
} }
static u8 get_current_channel_802_11n(u8 *pu8msa, u16 rx_len) static u8 get_current_channel_802_11n(u8 *msa, u16 rx_len)
{ {
u16 index; u16 index;
index = TAG_PARAM_OFFSET; index = TAG_PARAM_OFFSET;
while (index < (rx_len - FCS_LEN)) { while (index < (rx_len - FCS_LEN)) {
if (pu8msa[index] == IDSPARMS) if (msa[index] == IDSPARMS)
return pu8msa[index + 2]; return msa[index + 2];
index += pu8msa[index + 1] + IE_HDR_LEN; index += msa[index + 1] + IE_HDR_LEN;
} }
return 0; return 0;
......
This diff is collapsed.
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