aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/wlan-ng/prism2mib.c
diff options
context:
space:
mode:
authorMithlesh Thukral <mithlesh@linsyssoft.com>2009-06-10 10:06:11 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-15 15:01:26 -0400
commit297f06cea635ea4552541a11e7fb7014425110c6 (patch)
tree7468f14f1bd2dcf8767ce9b24c07c97ae6396434 /drivers/staging/wlan-ng/prism2mib.c
parent0984e56a65a29ad0700c5abf657327e73929ea1f (diff)
staging: wlan-ng: scripts/checkpatch.pl error fixes.
scripts/checkpatch.pl error fixes. This is a TODO item. This patch fixes most of the errors reported by checkpatch.pl in wlan-ng directory of staging tree. Signed-off-by: Mithlesh Thukral <mithlesh@linsyssoft.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.c144
1 files changed, 72 insertions, 72 deletions
diff --git a/drivers/staging/wlan-ng/prism2mib.c b/drivers/staging/wlan-ng/prism2mib.c
index f930254e1b3..2fff0a110bc 100644
--- a/drivers/staging/wlan-ng/prism2mib.c
+++ b/drivers/staging/wlan-ng/prism2mib.c
@@ -86,65 +86,65 @@ typedef struct mibrec {
86 u16 parm1; 86 u16 parm1;
87 u16 parm2; 87 u16 parm2;
88 u16 parm3; 88 u16 parm3;
89 int (*func) (struct mibrec * mib, 89 int (*func) (struct mibrec *mib,
90 int isget, 90 int isget,
91 wlandevice_t * wlandev, 91 wlandevice_t *wlandev,
92 hfa384x_t * hw, 92 hfa384x_t *hw,
93 p80211msg_dot11req_mibset_t * msg, void *data); 93 p80211msg_dot11req_mibset_t *msg, void *data);
94} mibrec_t; 94} mibrec_t;
95 95
96static int prism2mib_bytearea2pstr(mibrec_t * mib, 96static int prism2mib_bytearea2pstr(mibrec_t *mib,
97 int isget, 97 int isget,
98 wlandevice_t * wlandev, 98 wlandevice_t *wlandev,
99 hfa384x_t * hw, 99 hfa384x_t *hw,
100 p80211msg_dot11req_mibset_t * msg, 100 p80211msg_dot11req_mibset_t *msg,
101 void *data); 101 void *data);
102 102
103static int prism2mib_uint32(mibrec_t * mib, 103static int prism2mib_uint32(mibrec_t *mib,
104 int isget, 104 int isget,
105 wlandevice_t * wlandev, 105 wlandevice_t *wlandev,
106 hfa384x_t * hw, 106 hfa384x_t *hw,
107 p80211msg_dot11req_mibset_t * msg, void *data); 107 p80211msg_dot11req_mibset_t *msg, void *data);
108 108
109static int prism2mib_flag(mibrec_t * mib, 109static int prism2mib_flag(mibrec_t *mib,
110 int isget, 110 int isget,
111 wlandevice_t * wlandev, 111 wlandevice_t *wlandev,
112 hfa384x_t * hw, 112 hfa384x_t *hw,
113 p80211msg_dot11req_mibset_t * msg, void *data); 113 p80211msg_dot11req_mibset_t *msg, void *data);
114 114
115static int prism2mib_wepdefaultkey(mibrec_t * mib, 115static int prism2mib_wepdefaultkey(mibrec_t *mib,
116 int isget, 116 int isget,
117 wlandevice_t * wlandev, 117 wlandevice_t * wlandev,
118 hfa384x_t * hw, 118 hfa384x_t *hw,
119 p80211msg_dot11req_mibset_t * msg, 119 p80211msg_dot11req_mibset_t *msg,
120 void *data); 120 void *data);
121 121
122static int prism2mib_privacyinvoked(mibrec_t * mib, 122static int prism2mib_privacyinvoked(mibrec_t *mib,
123 int isget, 123 int isget,
124 wlandevice_t * wlandev, 124 wlandevice_t *wlandev,
125 hfa384x_t * hw, 125 hfa384x_t *hw,
126 p80211msg_dot11req_mibset_t * msg, 126 p80211msg_dot11req_mibset_t *msg,
127 void *data); 127 void *data);
128 128
129static int prism2mib_excludeunencrypted(mibrec_t * mib, 129static int prism2mib_excludeunencrypted(mibrec_t *mib,
130 int isget, 130 int isget,
131 wlandevice_t * wlandev, 131 wlandevice_t *wlandev,
132 hfa384x_t * hw, 132 hfa384x_t *hw,
133 p80211msg_dot11req_mibset_t * msg, 133 p80211msg_dot11req_mibset_t *msg,
134 void *data); 134 void *data);
135 135
136static int prism2mib_fragmentationthreshold(mibrec_t * mib, 136static int prism2mib_fragmentationthreshold(mibrec_t *mib,
137 int isget, 137 int isget,
138 wlandevice_t * wlandev, 138 wlandevice_t *wlandev,
139 hfa384x_t * hw, 139 hfa384x_t *hw,
140 p80211msg_dot11req_mibset_t * msg, 140 p80211msg_dot11req_mibset_t *msg,
141 void *data); 141 void *data);
142 142
143static int prism2mib_priv(mibrec_t * mib, 143static int prism2mib_priv(mibrec_t *mib,
144 int isget, 144 int isget,
145 wlandevice_t * wlandev, 145 wlandevice_t *wlandev,
146 hfa384x_t * hw, 146 hfa384x_t *hw,
147 p80211msg_dot11req_mibset_t * msg, void *data); 147 p80211msg_dot11req_mibset_t *msg, void *data);
148 148
149static mibrec_t mibtab[] = { 149static mibrec_t mibtab[] = {
150 150
@@ -258,7 +258,7 @@ static mibrec_t mibtab[] = {
258* interrupt 258* interrupt
259----------------------------------------------------------------*/ 259----------------------------------------------------------------*/
260 260
261int prism2mgmt_mibset_mibget(wlandevice_t * wlandev, void *msgp) 261int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp)
262{ 262{
263 hfa384x_t *hw = wlandev->priv; 263 hfa384x_t *hw = wlandev->priv;
264 int result, isget; 264 int result, isget;
@@ -372,11 +372,11 @@ done:
372* 372*
373----------------------------------------------------------------*/ 373----------------------------------------------------------------*/
374 374
375static int prism2mib_bytearea2pstr(mibrec_t * mib, 375static int prism2mib_bytearea2pstr(mibrec_t *mib,
376 int isget, 376 int isget,
377 wlandevice_t * wlandev, 377 wlandevice_t *wlandev,
378 hfa384x_t * hw, 378 hfa384x_t *hw,
379 p80211msg_dot11req_mibset_t * msg, 379 p80211msg_dot11req_mibset_t *msg,
380 void *data) 380 void *data)
381{ 381{
382 int result; 382 int result;
@@ -422,11 +422,11 @@ static int prism2mib_bytearea2pstr(mibrec_t * mib,
422* 422*
423----------------------------------------------------------------*/ 423----------------------------------------------------------------*/
424 424
425static int prism2mib_uint32(mibrec_t * mib, 425static int prism2mib_uint32(mibrec_t *mib,
426 int isget, 426 int isget,
427 wlandevice_t * wlandev, 427 wlandevice_t *wlandev,
428 hfa384x_t * hw, 428 hfa384x_t *hw,
429 p80211msg_dot11req_mibset_t * msg, void *data) 429 p80211msg_dot11req_mibset_t *msg, void *data)
430{ 430{
431 int result; 431 int result;
432 u32 *uint32 = (u32 *) data; 432 u32 *uint32 = (u32 *) data;
@@ -469,11 +469,11 @@ static int prism2mib_uint32(mibrec_t * mib,
469* 469*
470----------------------------------------------------------------*/ 470----------------------------------------------------------------*/
471 471
472static int prism2mib_flag(mibrec_t * mib, 472static int prism2mib_flag(mibrec_t *mib,
473 int isget, 473 int isget,
474 wlandevice_t * wlandev, 474 wlandevice_t *wlandev,
475 hfa384x_t * hw, 475 hfa384x_t *hw,
476 p80211msg_dot11req_mibset_t * msg, void *data) 476 p80211msg_dot11req_mibset_t *msg, void *data)
477{ 477{
478 int result; 478 int result;
479 u32 *uint32 = (u32 *) data; 479 u32 *uint32 = (u32 *) data;
@@ -526,11 +526,11 @@ static int prism2mib_flag(mibrec_t * mib,
526* 526*
527----------------------------------------------------------------*/ 527----------------------------------------------------------------*/
528 528
529static int prism2mib_wepdefaultkey(mibrec_t * mib, 529static int prism2mib_wepdefaultkey(mibrec_t *mib,
530 int isget, 530 int isget,
531 wlandevice_t * wlandev, 531 wlandevice_t *wlandev,
532 hfa384x_t * hw, 532 hfa384x_t *hw,
533 p80211msg_dot11req_mibset_t * msg, 533 p80211msg_dot11req_mibset_t *msg,
534 void *data) 534 void *data)
535{ 535{
536 int result; 536 int result;
@@ -576,11 +576,11 @@ static int prism2mib_wepdefaultkey(mibrec_t * mib,
576* 576*
577----------------------------------------------------------------*/ 577----------------------------------------------------------------*/
578 578
579static int prism2mib_privacyinvoked(mibrec_t * mib, 579static int prism2mib_privacyinvoked(mibrec_t *mib,
580 int isget, 580 int isget,
581 wlandevice_t * wlandev, 581 wlandevice_t *wlandev,
582 hfa384x_t * hw, 582 hfa384x_t *hw,
583 p80211msg_dot11req_mibset_t * msg, 583 p80211msg_dot11req_mibset_t *msg,
584 void *data) 584 void *data)
585{ 585{
586 int result; 586 int result;
@@ -622,11 +622,11 @@ static int prism2mib_privacyinvoked(mibrec_t * mib,
622* 622*
623----------------------------------------------------------------*/ 623----------------------------------------------------------------*/
624 624
625static int prism2mib_excludeunencrypted(mibrec_t * mib, 625static int prism2mib_excludeunencrypted(mibrec_t *mib,
626 int isget, 626 int isget,
627 wlandevice_t * wlandev, 627 wlandevice_t *wlandev,
628 hfa384x_t * hw, 628 hfa384x_t *hw,
629 p80211msg_dot11req_mibset_t * msg, 629 p80211msg_dot11req_mibset_t *msg,
630 void *data) 630 void *data)
631{ 631{
632 int result; 632 int result;
@@ -661,11 +661,11 @@ static int prism2mib_excludeunencrypted(mibrec_t * mib,
661* 661*
662----------------------------------------------------------------*/ 662----------------------------------------------------------------*/
663 663
664static int prism2mib_fragmentationthreshold(mibrec_t * mib, 664static int prism2mib_fragmentationthreshold(mibrec_t *mib,
665 int isget, 665 int isget,
666 wlandevice_t * wlandev, 666 wlandevice_t *wlandev,
667 hfa384x_t * hw, 667 hfa384x_t *hw,
668 p80211msg_dot11req_mibset_t * msg, 668 p80211msg_dot11req_mibset_t *msg,
669 void *data) 669 void *data)
670{ 670{
671 int result; 671 int result;
@@ -710,11 +710,11 @@ static int prism2mib_fragmentationthreshold(mibrec_t * mib,
710* 710*
711----------------------------------------------------------------*/ 711----------------------------------------------------------------*/
712 712
713static int prism2mib_priv(mibrec_t * mib, 713static int prism2mib_priv(mibrec_t *mib,
714 int isget, 714 int isget,
715 wlandevice_t * wlandev, 715 wlandevice_t *wlandev,
716 hfa384x_t * hw, 716 hfa384x_t *hw,
717 p80211msg_dot11req_mibset_t * msg, void *data) 717 p80211msg_dot11req_mibset_t *msg, void *data)
718{ 718{
719 p80211pstrd_t *pstr = (p80211pstrd_t *) data; 719 p80211pstrd_t *pstr = (p80211pstrd_t *) data;
720 720
@@ -764,7 +764,7 @@ static int prism2mib_priv(mibrec_t * mib,
764* 764*
765----------------------------------------------------------------*/ 765----------------------------------------------------------------*/
766 766
767void prism2mgmt_pstr2bytestr(hfa384x_bytestr_t * bytestr, p80211pstrd_t * pstr) 767void prism2mgmt_pstr2bytestr(hfa384x_bytestr_t *bytestr, p80211pstrd_t *pstr)
768{ 768{
769 bytestr->len = cpu_to_le16((u16) (pstr->len)); 769 bytestr->len = cpu_to_le16((u16) (pstr->len));
770 memcpy(bytestr->data, pstr->data, pstr->len); 770 memcpy(bytestr->data, pstr->data, pstr->len);
@@ -785,7 +785,7 @@ void prism2mgmt_pstr2bytestr(hfa384x_bytestr_t * bytestr, p80211pstrd_t * pstr)
785* 785*
786----------------------------------------------------------------*/ 786----------------------------------------------------------------*/
787 787
788void prism2mgmt_pstr2bytearea(u8 * bytearea, p80211pstrd_t * pstr) 788void prism2mgmt_pstr2bytearea(u8 *bytearea, p80211pstrd_t *pstr)
789{ 789{
790 memcpy(bytearea, pstr->data, pstr->len); 790 memcpy(bytearea, pstr->data, pstr->len);
791} 791}
@@ -805,7 +805,7 @@ void prism2mgmt_pstr2bytearea(u8 * bytearea, p80211pstrd_t * pstr)
805* 805*
806----------------------------------------------------------------*/ 806----------------------------------------------------------------*/
807 807
808void prism2mgmt_bytestr2pstr(hfa384x_bytestr_t * bytestr, p80211pstrd_t * pstr) 808void prism2mgmt_bytestr2pstr(hfa384x_bytestr_t *bytestr, p80211pstrd_t *pstr)
809{ 809{
810 pstr->len = (u8) (le16_to_cpu((u16) (bytestr->len))); 810 pstr->len = (u8) (le16_to_cpu((u16) (bytestr->len)));
811 memcpy(pstr->data, bytestr->data, pstr->len); 811 memcpy(pstr->data, bytestr->data, pstr->len);
@@ -826,7 +826,7 @@ void prism2mgmt_bytestr2pstr(hfa384x_bytestr_t * bytestr, p80211pstrd_t * pstr)
826* 826*
827----------------------------------------------------------------*/ 827----------------------------------------------------------------*/
828 828
829void prism2mgmt_bytearea2pstr(u8 * bytearea, p80211pstrd_t * pstr, int len) 829void prism2mgmt_bytearea2pstr(u8 *bytearea, p80211pstrd_t *pstr, int len)
830{ 830{
831 pstr->len = (u8) len; 831 pstr->len = (u8) len;
832 memcpy(pstr->data, bytearea, len); 832 memcpy(pstr->data, bytearea, len);