diff options
author | Edgardo Hames <ehames@gmail.com> | 2010-08-02 15:20:39 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-02 21:20:04 -0400 |
commit | b6bb56e6aa28085550179335247c649752ff2994 (patch) | |
tree | eba1c1f5e3c45289987ec7e7e6e8d0e4c3a4a8d7 /drivers/staging/wlan-ng/prism2mib.c | |
parent | e5bdbb90299f7b8d2d88994af8541e7804833e2a (diff) |
Staging: wlan-ng: fix checkpatch issues in headers.
This patch fix errors and warnings reported by checkpatch
in p80211meta.h and p80211metstruct.h.
Signed-off-by: Edgardo Hames <ehames@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/wlan-ng/prism2mib.c')
-rw-r--r-- | drivers/staging/wlan-ng/prism2mib.c | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/drivers/staging/wlan-ng/prism2mib.c b/drivers/staging/wlan-ng/prism2mib.c index 0b0ec9c59a5..d3a06fa0b4f 100644 --- a/drivers/staging/wlan-ng/prism2mib.c +++ b/drivers/staging/wlan-ng/prism2mib.c | |||
@@ -79,7 +79,7 @@ | |||
79 | #define F_READ 0x2 /* MIB may be read. */ | 79 | #define F_READ 0x2 /* MIB may be read. */ |
80 | #define F_WRITE 0x4 /* MIB may be written. */ | 80 | #define F_WRITE 0x4 /* MIB may be written. */ |
81 | 81 | ||
82 | typedef struct mibrec { | 82 | struct mibrec { |
83 | u32 did; | 83 | u32 did; |
84 | u16 flag; | 84 | u16 flag; |
85 | u16 parm1; | 85 | u16 parm1; |
@@ -89,63 +89,63 @@ typedef struct mibrec { | |||
89 | int isget, | 89 | int isget, |
90 | wlandevice_t *wlandev, | 90 | wlandevice_t *wlandev, |
91 | hfa384x_t *hw, | 91 | hfa384x_t *hw, |
92 | p80211msg_dot11req_mibset_t *msg, void *data); | 92 | struct p80211msg_dot11req_mibset *msg, void *data); |
93 | } mibrec_t; | 93 | }; |
94 | 94 | ||
95 | static int prism2mib_bytearea2pstr(mibrec_t *mib, | 95 | static int prism2mib_bytearea2pstr(struct mibrec *mib, |
96 | int isget, | 96 | int isget, |
97 | wlandevice_t *wlandev, | 97 | wlandevice_t *wlandev, |
98 | hfa384x_t *hw, | 98 | hfa384x_t *hw, |
99 | p80211msg_dot11req_mibset_t *msg, | 99 | struct p80211msg_dot11req_mibset *msg, |
100 | void *data); | 100 | void *data); |
101 | 101 | ||
102 | static int prism2mib_uint32(mibrec_t *mib, | 102 | static int prism2mib_uint32(struct mibrec *mib, |
103 | int isget, | 103 | int isget, |
104 | wlandevice_t *wlandev, | 104 | wlandevice_t *wlandev, |
105 | hfa384x_t *hw, | 105 | hfa384x_t *hw, |
106 | p80211msg_dot11req_mibset_t *msg, void *data); | 106 | struct p80211msg_dot11req_mibset *msg, void *data); |
107 | 107 | ||
108 | static int prism2mib_flag(mibrec_t *mib, | 108 | static int prism2mib_flag(struct mibrec *mib, |
109 | int isget, | 109 | int isget, |
110 | wlandevice_t *wlandev, | 110 | wlandevice_t *wlandev, |
111 | hfa384x_t *hw, | 111 | hfa384x_t *hw, |
112 | p80211msg_dot11req_mibset_t *msg, void *data); | 112 | struct p80211msg_dot11req_mibset *msg, void *data); |
113 | 113 | ||
114 | static int prism2mib_wepdefaultkey(mibrec_t *mib, | 114 | static int prism2mib_wepdefaultkey(struct mibrec *mib, |
115 | int isget, | 115 | int isget, |
116 | wlandevice_t *wlandev, | 116 | wlandevice_t *wlandev, |
117 | hfa384x_t *hw, | 117 | hfa384x_t *hw, |
118 | p80211msg_dot11req_mibset_t *msg, | 118 | struct p80211msg_dot11req_mibset *msg, |
119 | void *data); | 119 | void *data); |
120 | 120 | ||
121 | static int prism2mib_privacyinvoked(mibrec_t *mib, | 121 | static int prism2mib_privacyinvoked(struct mibrec *mib, |
122 | int isget, | 122 | int isget, |
123 | wlandevice_t *wlandev, | 123 | wlandevice_t *wlandev, |
124 | hfa384x_t *hw, | 124 | hfa384x_t *hw, |
125 | p80211msg_dot11req_mibset_t *msg, | 125 | struct p80211msg_dot11req_mibset *msg, |
126 | void *data); | 126 | void *data); |
127 | 127 | ||
128 | static int prism2mib_excludeunencrypted(mibrec_t *mib, | 128 | static int prism2mib_excludeunencrypted(struct mibrec *mib, |
129 | int isget, | 129 | int isget, |
130 | wlandevice_t *wlandev, | 130 | wlandevice_t *wlandev, |
131 | hfa384x_t *hw, | 131 | hfa384x_t *hw, |
132 | p80211msg_dot11req_mibset_t *msg, | 132 | struct p80211msg_dot11req_mibset *msg, |
133 | void *data); | 133 | void *data); |
134 | 134 | ||
135 | static int prism2mib_fragmentationthreshold(mibrec_t *mib, | 135 | static int prism2mib_fragmentationthreshold(struct mibrec *mib, |
136 | int isget, | 136 | int isget, |
137 | wlandevice_t *wlandev, | 137 | wlandevice_t *wlandev, |
138 | hfa384x_t *hw, | 138 | hfa384x_t *hw, |
139 | p80211msg_dot11req_mibset_t *msg, | 139 | struct p80211msg_dot11req_mibset *msg, |
140 | void *data); | 140 | void *data); |
141 | 141 | ||
142 | static int prism2mib_priv(mibrec_t *mib, | 142 | static int prism2mib_priv(struct mibrec *mib, |
143 | int isget, | 143 | int isget, |
144 | wlandevice_t *wlandev, | 144 | wlandevice_t *wlandev, |
145 | hfa384x_t *hw, | 145 | hfa384x_t *hw, |
146 | p80211msg_dot11req_mibset_t *msg, void *data); | 146 | struct p80211msg_dot11req_mibset *msg, void *data); |
147 | 147 | ||
148 | static mibrec_t mibtab[] = { | 148 | static struct mibrec mibtab[] = { |
149 | 149 | ||
150 | /* dot11smt MIB's */ | 150 | /* dot11smt MIB's */ |
151 | {DIDmib_dot11smt_dot11WEPDefaultKeysTable_dot11WEPDefaultKey0, | 151 | {DIDmib_dot11smt_dot11WEPDefaultKeysTable_dot11WEPDefaultKey0, |
@@ -261,11 +261,11 @@ int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp) | |||
261 | { | 261 | { |
262 | hfa384x_t *hw = wlandev->priv; | 262 | hfa384x_t *hw = wlandev->priv; |
263 | int result, isget; | 263 | int result, isget; |
264 | mibrec_t *mib; | 264 | struct mibrec *mib; |
265 | 265 | ||
266 | u16 which; | 266 | u16 which; |
267 | 267 | ||
268 | p80211msg_dot11req_mibset_t *msg = msgp; | 268 | struct p80211msg_dot11req_mibset *msg = msgp; |
269 | p80211itemd_t *mibitem; | 269 | p80211itemd_t *mibitem; |
270 | 270 | ||
271 | msg->resultcode.status = P80211ENUM_msgitem_status_data_ok; | 271 | msg->resultcode.status = P80211ENUM_msgitem_status_data_ok; |
@@ -371,11 +371,11 @@ done: | |||
371 | * | 371 | * |
372 | ----------------------------------------------------------------*/ | 372 | ----------------------------------------------------------------*/ |
373 | 373 | ||
374 | static int prism2mib_bytearea2pstr(mibrec_t *mib, | 374 | static int prism2mib_bytearea2pstr(struct mibrec *mib, |
375 | int isget, | 375 | int isget, |
376 | wlandevice_t *wlandev, | 376 | wlandevice_t *wlandev, |
377 | hfa384x_t *hw, | 377 | hfa384x_t *hw, |
378 | p80211msg_dot11req_mibset_t *msg, | 378 | struct p80211msg_dot11req_mibset *msg, |
379 | void *data) | 379 | void *data) |
380 | { | 380 | { |
381 | int result; | 381 | int result; |
@@ -421,11 +421,11 @@ static int prism2mib_bytearea2pstr(mibrec_t *mib, | |||
421 | * | 421 | * |
422 | ----------------------------------------------------------------*/ | 422 | ----------------------------------------------------------------*/ |
423 | 423 | ||
424 | static int prism2mib_uint32(mibrec_t *mib, | 424 | static int prism2mib_uint32(struct mibrec *mib, |
425 | int isget, | 425 | int isget, |
426 | wlandevice_t *wlandev, | 426 | wlandevice_t *wlandev, |
427 | hfa384x_t *hw, | 427 | hfa384x_t *hw, |
428 | p80211msg_dot11req_mibset_t *msg, void *data) | 428 | struct p80211msg_dot11req_mibset *msg, void *data) |
429 | { | 429 | { |
430 | int result; | 430 | int result; |
431 | u32 *uint32 = (u32 *) data; | 431 | u32 *uint32 = (u32 *) data; |
@@ -468,11 +468,11 @@ static int prism2mib_uint32(mibrec_t *mib, | |||
468 | * | 468 | * |
469 | ----------------------------------------------------------------*/ | 469 | ----------------------------------------------------------------*/ |
470 | 470 | ||
471 | static int prism2mib_flag(mibrec_t *mib, | 471 | static int prism2mib_flag(struct mibrec *mib, |
472 | int isget, | 472 | int isget, |
473 | wlandevice_t *wlandev, | 473 | wlandevice_t *wlandev, |
474 | hfa384x_t *hw, | 474 | hfa384x_t *hw, |
475 | p80211msg_dot11req_mibset_t *msg, void *data) | 475 | struct p80211msg_dot11req_mibset *msg, void *data) |
476 | { | 476 | { |
477 | int result; | 477 | int result; |
478 | u32 *uint32 = (u32 *) data; | 478 | u32 *uint32 = (u32 *) data; |
@@ -525,11 +525,11 @@ static int prism2mib_flag(mibrec_t *mib, | |||
525 | * | 525 | * |
526 | ----------------------------------------------------------------*/ | 526 | ----------------------------------------------------------------*/ |
527 | 527 | ||
528 | static int prism2mib_wepdefaultkey(mibrec_t *mib, | 528 | static int prism2mib_wepdefaultkey(struct mibrec *mib, |
529 | int isget, | 529 | int isget, |
530 | wlandevice_t *wlandev, | 530 | wlandevice_t *wlandev, |
531 | hfa384x_t *hw, | 531 | hfa384x_t *hw, |
532 | p80211msg_dot11req_mibset_t *msg, | 532 | struct p80211msg_dot11req_mibset *msg, |
533 | void *data) | 533 | void *data) |
534 | { | 534 | { |
535 | int result; | 535 | int result; |
@@ -575,11 +575,11 @@ static int prism2mib_wepdefaultkey(mibrec_t *mib, | |||
575 | * | 575 | * |
576 | ----------------------------------------------------------------*/ | 576 | ----------------------------------------------------------------*/ |
577 | 577 | ||
578 | static int prism2mib_privacyinvoked(mibrec_t *mib, | 578 | static int prism2mib_privacyinvoked(struct mibrec *mib, |
579 | int isget, | 579 | int isget, |
580 | wlandevice_t *wlandev, | 580 | wlandevice_t *wlandev, |
581 | hfa384x_t *hw, | 581 | hfa384x_t *hw, |
582 | p80211msg_dot11req_mibset_t *msg, | 582 | struct p80211msg_dot11req_mibset *msg, |
583 | void *data) | 583 | void *data) |
584 | { | 584 | { |
585 | int result; | 585 | int result; |
@@ -621,11 +621,11 @@ static int prism2mib_privacyinvoked(mibrec_t *mib, | |||
621 | * | 621 | * |
622 | ----------------------------------------------------------------*/ | 622 | ----------------------------------------------------------------*/ |
623 | 623 | ||
624 | static int prism2mib_excludeunencrypted(mibrec_t *mib, | 624 | static int prism2mib_excludeunencrypted(struct mibrec *mib, |
625 | int isget, | 625 | int isget, |
626 | wlandevice_t *wlandev, | 626 | wlandevice_t *wlandev, |
627 | hfa384x_t *hw, | 627 | hfa384x_t *hw, |
628 | p80211msg_dot11req_mibset_t *msg, | 628 | struct p80211msg_dot11req_mibset *msg, |
629 | void *data) | 629 | void *data) |
630 | { | 630 | { |
631 | int result; | 631 | int result; |
@@ -660,11 +660,11 @@ static int prism2mib_excludeunencrypted(mibrec_t *mib, | |||
660 | * | 660 | * |
661 | ----------------------------------------------------------------*/ | 661 | ----------------------------------------------------------------*/ |
662 | 662 | ||
663 | static int prism2mib_fragmentationthreshold(mibrec_t *mib, | 663 | static int prism2mib_fragmentationthreshold(struct mibrec *mib, |
664 | int isget, | 664 | int isget, |
665 | wlandevice_t *wlandev, | 665 | wlandevice_t *wlandev, |
666 | hfa384x_t *hw, | 666 | hfa384x_t *hw, |
667 | p80211msg_dot11req_mibset_t *msg, | 667 | struct p80211msg_dot11req_mibset *msg, |
668 | void *data) | 668 | void *data) |
669 | { | 669 | { |
670 | int result; | 670 | int result; |
@@ -709,11 +709,11 @@ static int prism2mib_fragmentationthreshold(mibrec_t *mib, | |||
709 | * | 709 | * |
710 | ----------------------------------------------------------------*/ | 710 | ----------------------------------------------------------------*/ |
711 | 711 | ||
712 | static int prism2mib_priv(mibrec_t *mib, | 712 | static int prism2mib_priv(struct mibrec *mib, |
713 | int isget, | 713 | int isget, |
714 | wlandevice_t *wlandev, | 714 | wlandevice_t *wlandev, |
715 | hfa384x_t *hw, | 715 | hfa384x_t *hw, |
716 | p80211msg_dot11req_mibset_t *msg, void *data) | 716 | struct p80211msg_dot11req_mibset *msg, void *data) |
717 | { | 717 | { |
718 | p80211pstrd_t *pstr = (p80211pstrd_t *) data; | 718 | p80211pstrd_t *pstr = (p80211pstrd_t *) data; |
719 | 719 | ||