Commit 1f1590f2 authored by John Whitmore's avatar John Whitmore Committed by Greg Kroah-Hartman

staging:rtl8192u: Remove typedef from structure - Style

Remove the typedef directive from struct _CHNL_TXPOWER_TRIPLE. This is a
coding style change which clears a checkpatch issue with declaring new types.
There should be no impact on runtime execution.
Signed-off-by: default avatarJohn Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b613aac2
...@@ -54,13 +54,13 @@ void Dot11d_UpdateCountryIe(struct ieee80211_device *dev, u8 *pTaddr, ...@@ -54,13 +54,13 @@ void Dot11d_UpdateCountryIe(struct ieee80211_device *dev, u8 *pTaddr,
{ {
PRT_DOT11D_INFO pDot11dInfo = GET_DOT11D_INFO(dev); PRT_DOT11D_INFO pDot11dInfo = GET_DOT11D_INFO(dev);
u8 i, j, NumTriples, MaxChnlNum; u8 i, j, NumTriples, MaxChnlNum;
PCHNL_TXPOWER_TRIPLE pTriple; struct chnl_txpower_triple *pTriple;
memset(pDot11dInfo->channel_map, 0, MAX_CHANNEL_NUMBER+1); memset(pDot11dInfo->channel_map, 0, MAX_CHANNEL_NUMBER+1);
memset(pDot11dInfo->MaxTxPwrDbmList, 0xFF, MAX_CHANNEL_NUMBER+1); memset(pDot11dInfo->MaxTxPwrDbmList, 0xFF, MAX_CHANNEL_NUMBER+1);
MaxChnlNum = 0; MaxChnlNum = 0;
NumTriples = (CoutryIeLen - 3) / 3; /* skip 3-byte country string. */ NumTriples = (CoutryIeLen - 3) / 3; /* skip 3-byte country string. */
pTriple = (PCHNL_TXPOWER_TRIPLE)(pCoutryIe + 3); pTriple = (struct chnl_txpower_triple *)(pCoutryIe + 3);
for (i = 0; i < NumTriples; i++) { for (i = 0; i < NumTriples; i++) {
if (MaxChnlNum >= pTriple->FirstChnl) { if (MaxChnlNum >= pTriple->FirstChnl) {
/* It is not in a monotonically increasing order, so /* It is not in a monotonically increasing order, so
...@@ -83,7 +83,7 @@ void Dot11d_UpdateCountryIe(struct ieee80211_device *dev, u8 *pTaddr, ...@@ -83,7 +83,7 @@ void Dot11d_UpdateCountryIe(struct ieee80211_device *dev, u8 *pTaddr,
MaxChnlNum = pTriple->FirstChnl + j; MaxChnlNum = pTriple->FirstChnl + j;
} }
pTriple = (PCHNL_TXPOWER_TRIPLE)((u8 *)pTriple + 3); pTriple = (struct chnl_txpower_triple *)((u8 *)pTriple + 3);
} }
netdev_info(dev->dev, "Channel List:"); netdev_info(dev->dev, "Channel List:");
for (i = 1; i <= MAX_CHANNEL_NUMBER; i++) for (i = 1; i <= MAX_CHANNEL_NUMBER; i++)
......
...@@ -4,11 +4,11 @@ ...@@ -4,11 +4,11 @@
#include "ieee80211.h" #include "ieee80211.h"
typedef struct _CHNL_TXPOWER_TRIPLE { struct chnl_txpower_triple {
u8 FirstChnl; u8 FirstChnl;
u8 NumChnls; u8 NumChnls;
u8 MaxTxPowerInDbm; u8 MaxTxPowerInDbm;
} CHNL_TXPOWER_TRIPLE, *PCHNL_TXPOWER_TRIPLE; };
typedef enum _DOT11D_STATE { typedef enum _DOT11D_STATE {
DOT11D_STATE_NONE = 0, DOT11D_STATE_NONE = 0,
......
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