提交 ab4622cc 编写于 作者: J Joe Perches 提交者: Greg Kroah-Hartman

staging:vt6655:80211mgr: Whitespace cleanups

Neatening only.
git diff -w shows no differences.
Signed-off-by: NJoe Perches <joe@perches.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 d74e9769
......@@ -67,7 +67,7 @@
/*--------------------- Static Variables --------------------------*/
static int msglevel =MSG_LEVEL_INFO;
static int msglevel = MSG_LEVEL_INFO;
//static int msglevel =MSG_LEVEL_DEBUG;
/*--------------------- Static Functions --------------------------*/
......@@ -87,12 +87,12 @@ static int msglevel =MSG_LEVEL_INFO;
* Return Value:
* None.
*
-*/
-*/
void
vMgrEncodeBeacon(
PWLAN_FR_BEACON pFrame
)
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
......@@ -118,13 +118,13 @@ vMgrEncodeBeacon(
* Return Value:
* None.
*
-*/
-*/
void
vMgrDecodeBeacon(
PWLAN_FR_BEACON pFrame
)
)
{
PWLAN_IE pItem;
......@@ -141,7 +141,7 @@ vMgrDecodeBeacon(
// Information elements
pItem = (PWLAN_IE)((unsigned char *)(WLAN_HDR_A3_DATA_PTR(&(pFrame->pHdr->sA3)))
+ WLAN_BEACON_OFF_SSID);
while( ((unsigned char *)pItem) < (pFrame->pBuf + pFrame->len) ){
while (((unsigned char *)pItem) < (pFrame->pBuf + pFrame->len)) {
switch (pItem->byElementID) {
case WLAN_EID_SSID:
......@@ -239,13 +239,13 @@ vMgrDecodeBeacon(
* Return Value:
* None.
*
-*/
-*/
void
vMgrEncodeIBSSATIM(
PWLAN_FR_IBSSATIM pFrame
)
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
pFrame->len = WLAN_HDR_ADDR3_LEN;
......@@ -263,12 +263,12 @@ vMgrEncodeIBSSATIM(
* Return Value:
* None.
*
-*/
-*/
void
vMgrDecodeIBSSATIM(
PWLAN_FR_IBSSATIM pFrame
)
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
......@@ -285,12 +285,12 @@ vMgrDecodeIBSSATIM(
* Return Value:
* None.
*
-*/
-*/
void
vMgrEncodeDisassociation(
PWLAN_FR_DISASSOC pFrame
)
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
......@@ -313,12 +313,12 @@ vMgrEncodeDisassociation(
* Return Value:
* None.
*
-*/
-*/
void
vMgrDecodeDisassociation(
PWLAN_FR_DISASSOC pFrame
)
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
......@@ -338,13 +338,13 @@ vMgrDecodeDisassociation(
* Return Value:
* None.
*
-*/
-*/
void
vMgrEncodeAssocRequest(
PWLAN_FR_ASSOCREQ pFrame
)
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
// Fixed Fields
......@@ -366,12 +366,12 @@ vMgrEncodeAssocRequest(
* Return Value:
* None.
*
-*/
-*/
void
vMgrDecodeAssocRequest(
PWLAN_FR_ASSOCREQ pFrame
)
)
{
PWLAN_IE pItem;
......@@ -387,7 +387,7 @@ vMgrDecodeAssocRequest(
+ WLAN_ASSOCREQ_OFF_SSID);
while (((unsigned char *)pItem) < (pFrame->pBuf + pFrame->len)) {
switch (pItem->byElementID){
switch (pItem->byElementID) {
case WLAN_EID_SSID:
if (pFrame->pSSID == NULL)
pFrame->pSSID = (PWLAN_IE_SSID)pItem;
......@@ -432,12 +432,12 @@ vMgrDecodeAssocRequest(
* Return Value:
* None.
*
-*/
-*/
void
vMgrEncodeAssocResponse(
PWLAN_FR_ASSOCRESP pFrame
)
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
......@@ -464,12 +464,12 @@ vMgrEncodeAssocResponse(
* Return Value:
* None.
*
-*/
-*/
void
vMgrDecodeAssocResponse(
PWLAN_FR_ASSOCRESP pFrame
)
)
{
PWLAN_IE pItem;
......@@ -511,12 +511,12 @@ vMgrDecodeAssocResponse(
* Return Value:
* None.
*
-*/
-*/
void
vMgrEncodeReassocRequest(
PWLAN_FR_REASSOCREQ pFrame
)
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
......@@ -542,13 +542,13 @@ vMgrEncodeReassocRequest(
* Return Value:
* None.
*
-*/
-*/
void
vMgrDecodeReassocRequest(
PWLAN_FR_REASSOCREQ pFrame
)
)
{
PWLAN_IE pItem;
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
......@@ -565,9 +565,9 @@ vMgrDecodeReassocRequest(
pItem = (PWLAN_IE)(WLAN_HDR_A3_DATA_PTR(&(pFrame->pHdr->sA3))
+ WLAN_REASSOCREQ_OFF_SSID);
while(((unsigned char *)pItem) < (pFrame->pBuf + pFrame->len)) {
while (((unsigned char *)pItem) < (pFrame->pBuf + pFrame->len)) {
switch (pItem->byElementID){
switch (pItem->byElementID) {
case WLAN_EID_SSID:
if (pFrame->pSSID == NULL)
pFrame->pSSID = (PWLAN_IE_SSID)pItem;
......@@ -614,13 +614,13 @@ vMgrDecodeReassocRequest(
* Return Value:
* None.
*
-*/
-*/
void
vMgrEncodeProbeRequest(
PWLAN_FR_PROBEREQ pFrame
)
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
pFrame->len = WLAN_HDR_ADDR3_LEN;
......@@ -636,12 +636,12 @@ vMgrEncodeProbeRequest(
* Return Value:
* None.
*
-*/
-*/
void
vMgrDecodeProbeRequest(
PWLAN_FR_PROBEREQ pFrame
)
)
{
PWLAN_IE pItem;
......@@ -650,7 +650,7 @@ vMgrDecodeProbeRequest(
// Information elements
pItem = (PWLAN_IE)(WLAN_HDR_A3_DATA_PTR(&(pFrame->pHdr->sA3)));
while( ((unsigned char *)pItem) < (pFrame->pBuf + pFrame->len) ) {
while (((unsigned char *)pItem) < (pFrame->pBuf + pFrame->len)) {
switch (pItem->byElementID) {
case WLAN_EID_SSID:
......@@ -688,13 +688,13 @@ vMgrDecodeProbeRequest(
* Return Value:
* None.
*
-*/
-*/
void
vMgrEncodeProbeResponse(
PWLAN_FR_PROBERESP pFrame
)
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
......@@ -723,12 +723,12 @@ vMgrEncodeProbeResponse(
* Return Value:
* None.
*
-*/
-*/
void
vMgrDecodeProbeResponse(
PWLAN_FR_PROBERESP pFrame
)
)
{
PWLAN_IE pItem;
......@@ -747,7 +747,7 @@ vMgrDecodeProbeResponse(
pItem = (PWLAN_IE)(WLAN_HDR_A3_DATA_PTR(&(pFrame->pHdr->sA3))
+ WLAN_PROBERESP_OFF_SSID);
while( ((unsigned char *)pItem) < (pFrame->pBuf + pFrame->len) ) {
while (((unsigned char *)pItem) < (pFrame->pBuf + pFrame->len)) {
switch (pItem->byElementID) {
case WLAN_EID_SSID:
if (pFrame->pSSID == NULL)
......@@ -837,12 +837,12 @@ vMgrDecodeProbeResponse(
* Return Value:
* None.
*
-*/
-*/
void
vMgrEncodeAuthen(
PWLAN_FR_AUTHEN pFrame
)
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
......@@ -868,12 +868,12 @@ vMgrEncodeAuthen(
* Return Value:
* None.
*
-*/
-*/
void
vMgrDecodeAuthen(
PWLAN_FR_AUTHEN pFrame
)
)
{
PWLAN_IE pItem;
......@@ -908,12 +908,12 @@ vMgrDecodeAuthen(
* Return Value:
* None.
*
-*/
-*/
void
vMgrEncodeDeauthen(
PWLAN_FR_DEAUTHEN pFrame
)
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
......@@ -935,12 +935,12 @@ vMgrEncodeDeauthen(
* Return Value:
* None.
*
-*/
-*/
void
vMgrDecodeDeauthen(
PWLAN_FR_DEAUTHEN pFrame
)
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
......@@ -961,12 +961,12 @@ vMgrDecodeDeauthen(
* Return Value:
* None.
*
-*/
-*/
void
vMgrEncodeReassocResponse(
PWLAN_FR_REASSOCRESP pFrame
)
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
......@@ -993,13 +993,13 @@ vMgrEncodeReassocResponse(
* Return Value:
* None.
*
-*/
-*/
void
vMgrDecodeReassocResponse(
PWLAN_FR_REASSOCRESP pFrame
)
)
{
PWLAN_IE pItem;
......
......@@ -232,7 +232,7 @@
typedef struct tagWLAN_IE {
unsigned char byElementID;
unsigned char len;
}__attribute__ ((__packed__))
} __attribute__ ((__packed__))
WLAN_IE, *PWLAN_IE;
......@@ -242,7 +242,7 @@ typedef struct tagWLAN_IE_SSID {
unsigned char byElementID;
unsigned char len;
unsigned char abySSID[1];
}__attribute__ ((__packed__))
} __attribute__ ((__packed__))
WLAN_IE_SSID, *PWLAN_IE_SSID;
......@@ -252,7 +252,7 @@ typedef struct tagWLAN_IE_SUPP_RATES {
unsigned char byElementID;
unsigned char len;
unsigned char abyRates[1];
}__attribute__ ((__packed__))
} __attribute__ ((__packed__))
WLAN_IE_SUPP_RATES, *PWLAN_IE_SUPP_RATES;
......@@ -274,7 +274,7 @@ typedef struct tagWLAN_IE_DS_PARMS {
unsigned char byElementID;
unsigned char len;
unsigned char byCurrChannel;
}__attribute__ ((__packed__))
} __attribute__ ((__packed__))
WLAN_IE_DS_PARMS, *PWLAN_IE_DS_PARMS;
......@@ -287,7 +287,7 @@ typedef struct tagWLAN_IE_CF_PARMS {
unsigned char byCFPPeriod;
unsigned short wCFPMaxDuration;
unsigned short wCFPDurRemaining;
}__attribute__ ((__packed__))
} __attribute__ ((__packed__))
WLAN_IE_CF_PARMS, *PWLAN_IE_CF_PARMS;
......@@ -300,7 +300,7 @@ typedef struct tagWLAN_IE_TIM {
unsigned char byDTIMPeriod;
unsigned char byBitMapCtl;
unsigned char byVirtBitMap[1];
}__attribute__ ((__packed__))
} __attribute__ ((__packed__))
WLAN_IE_TIM, *PWLAN_IE_TIM;
......@@ -310,7 +310,7 @@ typedef struct tagWLAN_IE_IBSS_PARMS {
unsigned char byElementID;
unsigned char len;
unsigned short wATIMWindow;
}__attribute__ ((__packed__))
} __attribute__ ((__packed__))
WLAN_IE_IBSS_PARMS, *PWLAN_IE_IBSS_PARMS;
......@@ -320,7 +320,7 @@ typedef struct tagWLAN_IE_CHALLENGE {
unsigned char byElementID;
unsigned char len;
unsigned char abyChallenge[1];
}__attribute__ ((__packed__))
} __attribute__ ((__packed__))
WLAN_IE_CHALLENGE, *PWLAN_IE_CHALLENGE;
......@@ -362,7 +362,7 @@ typedef struct tagWLAN_IE_ERP {
unsigned char byElementID;
unsigned char len;
unsigned char byContext;
}__attribute__ ((__packed__))
} __attribute__ ((__packed__))
WLAN_IE_ERP, *PWLAN_IE_ERP;
......@@ -717,111 +717,111 @@ typedef struct tagWLAN_FR_DEAUTHEN {
void
vMgrEncodeBeacon(
PWLAN_FR_BEACON pFrame
);
);
void
vMgrDecodeBeacon(
PWLAN_FR_BEACON pFrame
);
);
void
vMgrEncodeIBSSATIM(
PWLAN_FR_IBSSATIM pFrame
);
);
void
vMgrDecodeIBSSATIM(
PWLAN_FR_IBSSATIM pFrame
);
);
void
vMgrEncodeDisassociation(
PWLAN_FR_DISASSOC pFrame
);
);
void
vMgrDecodeDisassociation(
PWLAN_FR_DISASSOC pFrame
);
);
void
vMgrEncodeAssocRequest(
PWLAN_FR_ASSOCREQ pFrame
);
);
void
vMgrDecodeAssocRequest(
PWLAN_FR_ASSOCREQ pFrame
);
);
void
vMgrEncodeAssocResponse(
PWLAN_FR_ASSOCRESP pFrame
);
);
void
vMgrDecodeAssocResponse(
PWLAN_FR_ASSOCRESP pFrame
);
);
void
vMgrEncodeReassocRequest(
PWLAN_FR_REASSOCREQ pFrame
);
);
void
vMgrDecodeReassocRequest(
PWLAN_FR_REASSOCREQ pFrame
);
);
void
vMgrEncodeProbeRequest(
PWLAN_FR_PROBEREQ pFrame
);
);
void
vMgrDecodeProbeRequest(
PWLAN_FR_PROBEREQ pFrame
);
);
void
vMgrEncodeProbeResponse(
PWLAN_FR_PROBERESP pFrame
);
);
void
vMgrDecodeProbeResponse(
PWLAN_FR_PROBERESP pFrame
);
);
void
vMgrEncodeAuthen(
PWLAN_FR_AUTHEN pFrame
);
);
void
vMgrDecodeAuthen(
PWLAN_FR_AUTHEN pFrame
);
);
void
vMgrEncodeDeauthen(
PWLAN_FR_DEAUTHEN pFrame
);
);
void
vMgrDecodeDeauthen(
PWLAN_FR_DEAUTHEN pFrame
);
);
void
vMgrEncodeReassocResponse(
PWLAN_FR_REASSOCRESP pFrame
);
);
void
vMgrDecodeReassocResponse(
PWLAN_FR_REASSOCRESP pFrame
);
);
#endif// __80211MGR_H__
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册