diff options
author | Charles Clément <caratorn@gmail.com> | 2010-05-12 23:54:39 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-14 16:24:03 -0400 |
commit | 3a215e0ff4184314f7f1a099354a272ddedff289 (patch) | |
tree | 997552cb95f28681348474b04ebd88f25c366a4b | |
parent | 71e510673134999627fd180181079ffccb9ec756 (diff) |
Staging: vt6655: remove IN definition
Remove empty IN definition used to specify input parameters.
Signed-off-by: Charles Clément <caratorn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
36 files changed, 1055 insertions, 1059 deletions
diff --git a/drivers/staging/vt6655/80211mgr.c b/drivers/staging/vt6655/80211mgr.c index da964a92f96..38697c86248 100644 --- a/drivers/staging/vt6655/80211mgr.c +++ b/drivers/staging/vt6655/80211mgr.c | |||
@@ -91,7 +91,7 @@ static int msglevel =MSG_LEVEL_INFO; | |||
91 | 91 | ||
92 | void | 92 | void |
93 | vMgrEncodeBeacon( | 93 | vMgrEncodeBeacon( |
94 | IN PWLAN_FR_BEACON pFrame | 94 | PWLAN_FR_BEACON pFrame |
95 | ) | 95 | ) |
96 | { | 96 | { |
97 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; | 97 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; |
@@ -123,7 +123,7 @@ vMgrEncodeBeacon( | |||
123 | 123 | ||
124 | void | 124 | void |
125 | vMgrDecodeBeacon( | 125 | vMgrDecodeBeacon( |
126 | IN PWLAN_FR_BEACON pFrame | 126 | PWLAN_FR_BEACON pFrame |
127 | ) | 127 | ) |
128 | { | 128 | { |
129 | PWLAN_IE pItem; | 129 | PWLAN_IE pItem; |
@@ -244,7 +244,7 @@ vMgrDecodeBeacon( | |||
244 | 244 | ||
245 | void | 245 | void |
246 | vMgrEncodeIBSSATIM( | 246 | vMgrEncodeIBSSATIM( |
247 | IN PWLAN_FR_IBSSATIM pFrame | 247 | PWLAN_FR_IBSSATIM pFrame |
248 | ) | 248 | ) |
249 | { | 249 | { |
250 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; | 250 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; |
@@ -267,7 +267,7 @@ vMgrEncodeIBSSATIM( | |||
267 | 267 | ||
268 | void | 268 | void |
269 | vMgrDecodeIBSSATIM( | 269 | vMgrDecodeIBSSATIM( |
270 | IN PWLAN_FR_IBSSATIM pFrame | 270 | PWLAN_FR_IBSSATIM pFrame |
271 | ) | 271 | ) |
272 | { | 272 | { |
273 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; | 273 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; |
@@ -289,7 +289,7 @@ vMgrDecodeIBSSATIM( | |||
289 | 289 | ||
290 | void | 290 | void |
291 | vMgrEncodeDisassociation( | 291 | vMgrEncodeDisassociation( |
292 | IN PWLAN_FR_DISASSOC pFrame | 292 | PWLAN_FR_DISASSOC pFrame |
293 | ) | 293 | ) |
294 | { | 294 | { |
295 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; | 295 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; |
@@ -317,7 +317,7 @@ vMgrEncodeDisassociation( | |||
317 | 317 | ||
318 | void | 318 | void |
319 | vMgrDecodeDisassociation( | 319 | vMgrDecodeDisassociation( |
320 | IN PWLAN_FR_DISASSOC pFrame | 320 | PWLAN_FR_DISASSOC pFrame |
321 | ) | 321 | ) |
322 | { | 322 | { |
323 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; | 323 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; |
@@ -343,7 +343,7 @@ vMgrDecodeDisassociation( | |||
343 | 343 | ||
344 | void | 344 | void |
345 | vMgrEncodeAssocRequest( | 345 | vMgrEncodeAssocRequest( |
346 | IN PWLAN_FR_ASSOCREQ pFrame | 346 | PWLAN_FR_ASSOCREQ pFrame |
347 | ) | 347 | ) |
348 | { | 348 | { |
349 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; | 349 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; |
@@ -370,7 +370,7 @@ vMgrEncodeAssocRequest( | |||
370 | 370 | ||
371 | void | 371 | void |
372 | vMgrDecodeAssocRequest( | 372 | vMgrDecodeAssocRequest( |
373 | IN PWLAN_FR_ASSOCREQ pFrame | 373 | PWLAN_FR_ASSOCREQ pFrame |
374 | ) | 374 | ) |
375 | { | 375 | { |
376 | PWLAN_IE pItem; | 376 | PWLAN_IE pItem; |
@@ -436,7 +436,7 @@ vMgrDecodeAssocRequest( | |||
436 | 436 | ||
437 | void | 437 | void |
438 | vMgrEncodeAssocResponse( | 438 | vMgrEncodeAssocResponse( |
439 | IN PWLAN_FR_ASSOCRESP pFrame | 439 | PWLAN_FR_ASSOCRESP pFrame |
440 | ) | 440 | ) |
441 | { | 441 | { |
442 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; | 442 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; |
@@ -468,7 +468,7 @@ vMgrEncodeAssocResponse( | |||
468 | 468 | ||
469 | void | 469 | void |
470 | vMgrDecodeAssocResponse( | 470 | vMgrDecodeAssocResponse( |
471 | IN PWLAN_FR_ASSOCRESP pFrame | 471 | PWLAN_FR_ASSOCRESP pFrame |
472 | ) | 472 | ) |
473 | { | 473 | { |
474 | PWLAN_IE pItem; | 474 | PWLAN_IE pItem; |
@@ -514,7 +514,7 @@ vMgrDecodeAssocResponse( | |||
514 | 514 | ||
515 | void | 515 | void |
516 | vMgrEncodeReassocRequest( | 516 | vMgrEncodeReassocRequest( |
517 | IN PWLAN_FR_REASSOCREQ pFrame | 517 | PWLAN_FR_REASSOCREQ pFrame |
518 | ) | 518 | ) |
519 | { | 519 | { |
520 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; | 520 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; |
@@ -546,7 +546,7 @@ vMgrEncodeReassocRequest( | |||
546 | 546 | ||
547 | void | 547 | void |
548 | vMgrDecodeReassocRequest( | 548 | vMgrDecodeReassocRequest( |
549 | IN PWLAN_FR_REASSOCREQ pFrame | 549 | PWLAN_FR_REASSOCREQ pFrame |
550 | ) | 550 | ) |
551 | { | 551 | { |
552 | PWLAN_IE pItem; | 552 | PWLAN_IE pItem; |
@@ -618,7 +618,7 @@ vMgrDecodeReassocRequest( | |||
618 | 618 | ||
619 | void | 619 | void |
620 | vMgrEncodeProbeRequest( | 620 | vMgrEncodeProbeRequest( |
621 | IN PWLAN_FR_PROBEREQ pFrame | 621 | PWLAN_FR_PROBEREQ pFrame |
622 | ) | 622 | ) |
623 | { | 623 | { |
624 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; | 624 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; |
@@ -639,7 +639,7 @@ vMgrEncodeProbeRequest( | |||
639 | 639 | ||
640 | void | 640 | void |
641 | vMgrDecodeProbeRequest( | 641 | vMgrDecodeProbeRequest( |
642 | IN PWLAN_FR_PROBEREQ pFrame | 642 | PWLAN_FR_PROBEREQ pFrame |
643 | ) | 643 | ) |
644 | { | 644 | { |
645 | PWLAN_IE pItem; | 645 | PWLAN_IE pItem; |
@@ -692,7 +692,7 @@ vMgrDecodeProbeRequest( | |||
692 | 692 | ||
693 | void | 693 | void |
694 | vMgrEncodeProbeResponse( | 694 | vMgrEncodeProbeResponse( |
695 | IN PWLAN_FR_PROBERESP pFrame | 695 | PWLAN_FR_PROBERESP pFrame |
696 | ) | 696 | ) |
697 | { | 697 | { |
698 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; | 698 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; |
@@ -726,7 +726,7 @@ vMgrEncodeProbeResponse( | |||
726 | 726 | ||
727 | void | 727 | void |
728 | vMgrDecodeProbeResponse( | 728 | vMgrDecodeProbeResponse( |
729 | IN PWLAN_FR_PROBERESP pFrame | 729 | PWLAN_FR_PROBERESP pFrame |
730 | ) | 730 | ) |
731 | { | 731 | { |
732 | PWLAN_IE pItem; | 732 | PWLAN_IE pItem; |
@@ -840,7 +840,7 @@ vMgrDecodeProbeResponse( | |||
840 | 840 | ||
841 | void | 841 | void |
842 | vMgrEncodeAuthen( | 842 | vMgrEncodeAuthen( |
843 | IN PWLAN_FR_AUTHEN pFrame | 843 | PWLAN_FR_AUTHEN pFrame |
844 | ) | 844 | ) |
845 | { | 845 | { |
846 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; | 846 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; |
@@ -871,7 +871,7 @@ vMgrEncodeAuthen( | |||
871 | 871 | ||
872 | void | 872 | void |
873 | vMgrDecodeAuthen( | 873 | vMgrDecodeAuthen( |
874 | IN PWLAN_FR_AUTHEN pFrame | 874 | PWLAN_FR_AUTHEN pFrame |
875 | ) | 875 | ) |
876 | { | 876 | { |
877 | PWLAN_IE pItem; | 877 | PWLAN_IE pItem; |
@@ -911,7 +911,7 @@ vMgrDecodeAuthen( | |||
911 | 911 | ||
912 | void | 912 | void |
913 | vMgrEncodeDeauthen( | 913 | vMgrEncodeDeauthen( |
914 | IN PWLAN_FR_DEAUTHEN pFrame | 914 | PWLAN_FR_DEAUTHEN pFrame |
915 | ) | 915 | ) |
916 | { | 916 | { |
917 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; | 917 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; |
@@ -938,7 +938,7 @@ vMgrEncodeDeauthen( | |||
938 | 938 | ||
939 | void | 939 | void |
940 | vMgrDecodeDeauthen( | 940 | vMgrDecodeDeauthen( |
941 | IN PWLAN_FR_DEAUTHEN pFrame | 941 | PWLAN_FR_DEAUTHEN pFrame |
942 | ) | 942 | ) |
943 | { | 943 | { |
944 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; | 944 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; |
@@ -964,7 +964,7 @@ vMgrDecodeDeauthen( | |||
964 | 964 | ||
965 | void | 965 | void |
966 | vMgrEncodeReassocResponse( | 966 | vMgrEncodeReassocResponse( |
967 | IN PWLAN_FR_REASSOCRESP pFrame | 967 | PWLAN_FR_REASSOCRESP pFrame |
968 | ) | 968 | ) |
969 | { | 969 | { |
970 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; | 970 | pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; |
@@ -997,7 +997,7 @@ vMgrEncodeReassocResponse( | |||
997 | 997 | ||
998 | void | 998 | void |
999 | vMgrDecodeReassocResponse( | 999 | vMgrDecodeReassocResponse( |
1000 | IN PWLAN_FR_REASSOCRESP pFrame | 1000 | PWLAN_FR_REASSOCRESP pFrame |
1001 | ) | 1001 | ) |
1002 | { | 1002 | { |
1003 | PWLAN_IE pItem; | 1003 | PWLAN_IE pItem; |
diff --git a/drivers/staging/vt6655/80211mgr.h b/drivers/staging/vt6655/80211mgr.h index c3eafd28da4..658fe144f89 100644 --- a/drivers/staging/vt6655/80211mgr.h +++ b/drivers/staging/vt6655/80211mgr.h | |||
@@ -716,112 +716,112 @@ typedef struct tagWLAN_FR_DEAUTHEN { | |||
716 | 716 | ||
717 | void | 717 | void |
718 | vMgrEncodeBeacon( | 718 | vMgrEncodeBeacon( |
719 | IN PWLAN_FR_BEACON pFrame | 719 | PWLAN_FR_BEACON pFrame |
720 | ); | 720 | ); |
721 | 721 | ||
722 | void | 722 | void |
723 | vMgrDecodeBeacon( | 723 | vMgrDecodeBeacon( |
724 | IN PWLAN_FR_BEACON pFrame | 724 | PWLAN_FR_BEACON pFrame |
725 | ); | 725 | ); |
726 | 726 | ||
727 | void | 727 | void |
728 | vMgrEncodeIBSSATIM( | 728 | vMgrEncodeIBSSATIM( |
729 | IN PWLAN_FR_IBSSATIM pFrame | 729 | PWLAN_FR_IBSSATIM pFrame |
730 | ); | 730 | ); |
731 | 731 | ||
732 | void | 732 | void |
733 | vMgrDecodeIBSSATIM( | 733 | vMgrDecodeIBSSATIM( |
734 | IN PWLAN_FR_IBSSATIM pFrame | 734 | PWLAN_FR_IBSSATIM pFrame |
735 | ); | 735 | ); |
736 | 736 | ||
737 | void | 737 | void |
738 | vMgrEncodeDisassociation( | 738 | vMgrEncodeDisassociation( |
739 | IN PWLAN_FR_DISASSOC pFrame | 739 | PWLAN_FR_DISASSOC pFrame |
740 | ); | 740 | ); |
741 | 741 | ||
742 | void | 742 | void |
743 | vMgrDecodeDisassociation( | 743 | vMgrDecodeDisassociation( |
744 | IN PWLAN_FR_DISASSOC pFrame | 744 | PWLAN_FR_DISASSOC pFrame |
745 | ); | 745 | ); |
746 | 746 | ||
747 | void | 747 | void |
748 | vMgrEncodeAssocRequest( | 748 | vMgrEncodeAssocRequest( |
749 | IN PWLAN_FR_ASSOCREQ pFrame | 749 | PWLAN_FR_ASSOCREQ pFrame |
750 | ); | 750 | ); |
751 | 751 | ||
752 | void | 752 | void |
753 | vMgrDecodeAssocRequest( | 753 | vMgrDecodeAssocRequest( |
754 | IN PWLAN_FR_ASSOCREQ pFrame | 754 | PWLAN_FR_ASSOCREQ pFrame |
755 | ); | 755 | ); |
756 | 756 | ||
757 | void | 757 | void |
758 | vMgrEncodeAssocResponse( | 758 | vMgrEncodeAssocResponse( |
759 | IN PWLAN_FR_ASSOCRESP pFrame | 759 | PWLAN_FR_ASSOCRESP pFrame |
760 | ); | 760 | ); |
761 | 761 | ||
762 | void | 762 | void |
763 | vMgrDecodeAssocResponse( | 763 | vMgrDecodeAssocResponse( |
764 | IN PWLAN_FR_ASSOCRESP pFrame | 764 | PWLAN_FR_ASSOCRESP pFrame |
765 | ); | 765 | ); |
766 | 766 | ||
767 | void | 767 | void |
768 | vMgrEncodeReassocRequest( | 768 | vMgrEncodeReassocRequest( |
769 | IN PWLAN_FR_REASSOCREQ pFrame | 769 | PWLAN_FR_REASSOCREQ pFrame |
770 | ); | 770 | ); |
771 | 771 | ||
772 | void | 772 | void |
773 | vMgrDecodeReassocRequest( | 773 | vMgrDecodeReassocRequest( |
774 | IN PWLAN_FR_REASSOCREQ pFrame | 774 | PWLAN_FR_REASSOCREQ pFrame |
775 | ); | 775 | ); |
776 | 776 | ||
777 | void | 777 | void |
778 | vMgrEncodeProbeRequest( | 778 | vMgrEncodeProbeRequest( |
779 | IN PWLAN_FR_PROBEREQ pFrame | 779 | PWLAN_FR_PROBEREQ pFrame |
780 | ); | 780 | ); |
781 | 781 | ||
782 | void | 782 | void |
783 | vMgrDecodeProbeRequest( | 783 | vMgrDecodeProbeRequest( |
784 | IN PWLAN_FR_PROBEREQ pFrame | 784 | PWLAN_FR_PROBEREQ pFrame |
785 | ); | 785 | ); |
786 | 786 | ||
787 | void | 787 | void |
788 | vMgrEncodeProbeResponse( | 788 | vMgrEncodeProbeResponse( |
789 | IN PWLAN_FR_PROBERESP pFrame | 789 | PWLAN_FR_PROBERESP pFrame |
790 | ); | 790 | ); |
791 | 791 | ||
792 | void | 792 | void |
793 | vMgrDecodeProbeResponse( | 793 | vMgrDecodeProbeResponse( |
794 | IN PWLAN_FR_PROBERESP pFrame | 794 | PWLAN_FR_PROBERESP pFrame |
795 | ); | 795 | ); |
796 | 796 | ||
797 | void | 797 | void |
798 | vMgrEncodeAuthen( | 798 | vMgrEncodeAuthen( |
799 | IN PWLAN_FR_AUTHEN pFrame | 799 | PWLAN_FR_AUTHEN pFrame |
800 | ); | 800 | ); |
801 | 801 | ||
802 | void | 802 | void |
803 | vMgrDecodeAuthen( | 803 | vMgrDecodeAuthen( |
804 | IN PWLAN_FR_AUTHEN pFrame | 804 | PWLAN_FR_AUTHEN pFrame |
805 | ); | 805 | ); |
806 | 806 | ||
807 | void | 807 | void |
808 | vMgrEncodeDeauthen( | 808 | vMgrEncodeDeauthen( |
809 | IN PWLAN_FR_DEAUTHEN pFrame | 809 | PWLAN_FR_DEAUTHEN pFrame |
810 | ); | 810 | ); |
811 | 811 | ||
812 | void | 812 | void |
813 | vMgrDecodeDeauthen( | 813 | vMgrDecodeDeauthen( |
814 | IN PWLAN_FR_DEAUTHEN pFrame | 814 | PWLAN_FR_DEAUTHEN pFrame |
815 | ); | 815 | ); |
816 | 816 | ||
817 | void | 817 | void |
818 | vMgrEncodeReassocResponse( | 818 | vMgrEncodeReassocResponse( |
819 | IN PWLAN_FR_REASSOCRESP pFrame | 819 | PWLAN_FR_REASSOCRESP pFrame |
820 | ); | 820 | ); |
821 | 821 | ||
822 | void | 822 | void |
823 | vMgrDecodeReassocResponse( | 823 | vMgrDecodeReassocResponse( |
824 | IN PWLAN_FR_REASSOCRESP pFrame | 824 | PWLAN_FR_REASSOCRESP pFrame |
825 | ); | 825 | ); |
826 | 826 | ||
827 | #endif// __80211MGR_H__ | 827 | #endif// __80211MGR_H__ |
diff --git a/drivers/staging/vt6655/IEEE11h.c b/drivers/staging/vt6655/IEEE11h.c index 77813002d2f..22f12f5ef90 100644 --- a/drivers/staging/vt6655/IEEE11h.c +++ b/drivers/staging/vt6655/IEEE11h.c | |||
@@ -203,8 +203,8 @@ static BOOL s_bRxTPCReq(PSMgmtObject pMgmt, PWLAN_FRAME_TPCREQ pTPCReq, BYTE byR | |||
203 | -*/ | 203 | -*/ |
204 | BOOL | 204 | BOOL |
205 | IEEE11hbMgrRxAction ( | 205 | IEEE11hbMgrRxAction ( |
206 | IN void *pMgmtHandle, | 206 | void *pMgmtHandle, |
207 | IN void *pRxPacket | 207 | void *pRxPacket |
208 | ) | 208 | ) |
209 | { | 209 | { |
210 | PSMgmtObject pMgmt = (PSMgmtObject) pMgmtHandle; | 210 | PSMgmtObject pMgmt = (PSMgmtObject) pMgmtHandle; |
@@ -265,7 +265,7 @@ IEEE11hbMgrRxAction ( | |||
265 | 265 | ||
266 | 266 | ||
267 | BOOL IEEE11hbMSRRepTx ( | 267 | BOOL IEEE11hbMSRRepTx ( |
268 | IN void *pMgmtHandle | 268 | void *pMgmtHandle |
269 | ) | 269 | ) |
270 | { | 270 | { |
271 | PSMgmtObject pMgmt = (PSMgmtObject) pMgmtHandle; | 271 | PSMgmtObject pMgmt = (PSMgmtObject) pMgmtHandle; |
diff --git a/drivers/staging/vt6655/IEEE11h.h b/drivers/staging/vt6655/IEEE11h.h index 1707388e7cf..ae32498a511 100644 --- a/drivers/staging/vt6655/IEEE11h.h +++ b/drivers/staging/vt6655/IEEE11h.h | |||
@@ -46,7 +46,7 @@ | |||
46 | /*--------------------- Export Functions --------------------------*/ | 46 | /*--------------------- Export Functions --------------------------*/ |
47 | 47 | ||
48 | BOOL IEEE11hbMSRRepTx ( | 48 | BOOL IEEE11hbMSRRepTx ( |
49 | IN void *pMgmtHandle | 49 | void *pMgmtHandle |
50 | ); | 50 | ); |
51 | 51 | ||
52 | #endif // __IEEE11h_H__ | 52 | #endif // __IEEE11h_H__ |
diff --git a/drivers/staging/vt6655/baseband.c b/drivers/staging/vt6655/baseband.c index 7a69490fc7e..2931a0ffcf3 100644 --- a/drivers/staging/vt6655/baseband.c +++ b/drivers/staging/vt6655/baseband.c | |||
@@ -1725,13 +1725,13 @@ s_ulGetRatio(PSDevice pDevice); | |||
1725 | static | 1725 | static |
1726 | void | 1726 | void |
1727 | s_vChangeAntenna( | 1727 | s_vChangeAntenna( |
1728 | IN PSDevice pDevice | 1728 | PSDevice pDevice |
1729 | ); | 1729 | ); |
1730 | 1730 | ||
1731 | static | 1731 | static |
1732 | void | 1732 | void |
1733 | s_vChangeAntenna ( | 1733 | s_vChangeAntenna ( |
1734 | IN PSDevice pDevice | 1734 | PSDevice pDevice |
1735 | ) | 1735 | ) |
1736 | { | 1736 | { |
1737 | 1737 | ||
@@ -1778,10 +1778,10 @@ s_vChangeAntenna ( | |||
1778 | */ | 1778 | */ |
1779 | UINT | 1779 | UINT |
1780 | BBuGetFrameTime ( | 1780 | BBuGetFrameTime ( |
1781 | IN BYTE byPreambleType, | 1781 | BYTE byPreambleType, |
1782 | IN BYTE byPktType, | 1782 | BYTE byPktType, |
1783 | IN UINT cbFrameLength, | 1783 | UINT cbFrameLength, |
1784 | IN WORD wRate | 1784 | WORD wRate |
1785 | ) | 1785 | ) |
1786 | { | 1786 | { |
1787 | UINT uFrameTime; | 1787 | UINT uFrameTime; |
@@ -1845,10 +1845,10 @@ BBuGetFrameTime ( | |||
1845 | */ | 1845 | */ |
1846 | void | 1846 | void |
1847 | BBvCaculateParameter ( | 1847 | BBvCaculateParameter ( |
1848 | IN PSDevice pDevice, | 1848 | PSDevice pDevice, |
1849 | IN UINT cbFrameLength, | 1849 | UINT cbFrameLength, |
1850 | IN WORD wRate, | 1850 | WORD wRate, |
1851 | IN BYTE byPacketType, | 1851 | BYTE byPacketType, |
1852 | OUT PWORD pwPhyLen, | 1852 | OUT PWORD pwPhyLen, |
1853 | OUT PBYTE pbyPhySrv, | 1853 | OUT PBYTE pbyPhySrv, |
1854 | OUT PBYTE pbyPhySgn | 1854 | OUT PBYTE pbyPhySgn |
@@ -2878,7 +2878,7 @@ BBvAntennaDiversity (PSDevice pDevice, BYTE byRxRate, BYTE bySQ3) | |||
2878 | 2878 | ||
2879 | void | 2879 | void |
2880 | TimerSQ3CallBack ( | 2880 | TimerSQ3CallBack ( |
2881 | IN void *hDeviceContext | 2881 | void *hDeviceContext |
2882 | ) | 2882 | ) |
2883 | { | 2883 | { |
2884 | PSDevice pDevice = (PSDevice)hDeviceContext; | 2884 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -2926,7 +2926,7 @@ TimerSQ3CallBack ( | |||
2926 | 2926 | ||
2927 | void | 2927 | void |
2928 | TimerState1CallBack ( | 2928 | TimerState1CallBack ( |
2929 | IN void *hDeviceContext | 2929 | void *hDeviceContext |
2930 | ) | 2930 | ) |
2931 | { | 2931 | { |
2932 | PSDevice pDevice = (PSDevice)hDeviceContext; | 2932 | PSDevice pDevice = (PSDevice)hDeviceContext; |
diff --git a/drivers/staging/vt6655/baseband.h b/drivers/staging/vt6655/baseband.h index 23f7ad151d1..3eea7aa2fba 100644 --- a/drivers/staging/vt6655/baseband.h +++ b/drivers/staging/vt6655/baseband.h | |||
@@ -120,18 +120,18 @@ | |||
120 | 120 | ||
121 | UINT | 121 | UINT |
122 | BBuGetFrameTime( | 122 | BBuGetFrameTime( |
123 | IN BYTE byPreambleType, | 123 | BYTE byPreambleType, |
124 | IN BYTE byPktType, | 124 | BYTE byPktType, |
125 | IN UINT cbFrameLength, | 125 | UINT cbFrameLength, |
126 | IN WORD wRate | 126 | WORD wRate |
127 | ); | 127 | ); |
128 | 128 | ||
129 | void | 129 | void |
130 | BBvCaculateParameter ( | 130 | BBvCaculateParameter ( |
131 | IN PSDevice pDevice, | 131 | PSDevice pDevice, |
132 | IN UINT cbFrameLength, | 132 | UINT cbFrameLength, |
133 | IN WORD wRate, | 133 | WORD wRate, |
134 | IN BYTE byPacketType, | 134 | BYTE byPacketType, |
135 | OUT PWORD pwPhyLen, | 135 | OUT PWORD pwPhyLen, |
136 | OUT PBYTE pbyPhySrv, | 136 | OUT PBYTE pbyPhySrv, |
137 | OUT PBYTE pbyPhySgn | 137 | OUT PBYTE pbyPhySgn |
@@ -162,12 +162,12 @@ void BBvExitDeepSleep(DWORD_PTR dwIoBase, BYTE byLocalID); | |||
162 | 162 | ||
163 | void | 163 | void |
164 | TimerSQ3CallBack ( | 164 | TimerSQ3CallBack ( |
165 | IN void *hDeviceContext | 165 | void *hDeviceContext |
166 | ); | 166 | ); |
167 | 167 | ||
168 | void | 168 | void |
169 | TimerState1CallBack( | 169 | TimerState1CallBack( |
170 | IN void *hDeviceContext | 170 | void *hDeviceContext |
171 | ); | 171 | ); |
172 | 172 | ||
173 | void BBvAntennaDiversity(PSDevice pDevice, BYTE byRxRate, BYTE bySQ3); | 173 | void BBvAntennaDiversity(PSDevice pDevice, BYTE byRxRate, BYTE bySQ3); |
diff --git a/drivers/staging/vt6655/bssdb.c b/drivers/staging/vt6655/bssdb.c index 3af0ccb25d0..e64238e5e8c 100644 --- a/drivers/staging/vt6655/bssdb.c +++ b/drivers/staging/vt6655/bssdb.c | |||
@@ -91,18 +91,18 @@ const WORD awHWRetry1[5][5] = { | |||
91 | /*--------------------- Static Functions --------------------------*/ | 91 | /*--------------------- Static Functions --------------------------*/ |
92 | 92 | ||
93 | void s_vCheckSensitivity( | 93 | void s_vCheckSensitivity( |
94 | IN void *hDeviceContext | 94 | void *hDeviceContext |
95 | ); | 95 | ); |
96 | 96 | ||
97 | #ifdef Calcu_LinkQual | 97 | #ifdef Calcu_LinkQual |
98 | void s_uCalculateLinkQual( | 98 | void s_uCalculateLinkQual( |
99 | IN void *hDeviceContext | 99 | void *hDeviceContext |
100 | ); | 100 | ); |
101 | #endif | 101 | #endif |
102 | 102 | ||
103 | 103 | ||
104 | void s_vCheckPreEDThreshold( | 104 | void s_vCheckPreEDThreshold( |
105 | IN void *hDeviceContext | 105 | void *hDeviceContext |
106 | ); | 106 | ); |
107 | /*--------------------- Export Variables --------------------------*/ | 107 | /*--------------------- Export Variables --------------------------*/ |
108 | 108 | ||
@@ -125,10 +125,10 @@ void s_vCheckPreEDThreshold( | |||
125 | 125 | ||
126 | PKnownBSS | 126 | PKnownBSS |
127 | BSSpSearchBSSList( | 127 | BSSpSearchBSSList( |
128 | IN void *hDeviceContext, | 128 | void *hDeviceContext, |
129 | IN PBYTE pbyDesireBSSID, | 129 | PBYTE pbyDesireBSSID, |
130 | IN PBYTE pbyDesireSSID, | 130 | PBYTE pbyDesireSSID, |
131 | IN CARD_PHY_TYPE ePhyType | 131 | CARD_PHY_TYPE ePhyType |
132 | ) | 132 | ) |
133 | { | 133 | { |
134 | PSDevice pDevice = (PSDevice)hDeviceContext; | 134 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -282,8 +282,8 @@ if(pDevice->bLinkPass==FALSE) pCurrBSS->bSelected = FALSE; | |||
282 | 282 | ||
283 | void | 283 | void |
284 | BSSvClearBSSList( | 284 | BSSvClearBSSList( |
285 | IN void *hDeviceContext, | 285 | void *hDeviceContext, |
286 | IN BOOL bKeepCurrBSSID | 286 | BOOL bKeepCurrBSSID |
287 | ) | 287 | ) |
288 | { | 288 | { |
289 | PSDevice pDevice = (PSDevice)hDeviceContext; | 289 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -325,9 +325,9 @@ BSSvClearBSSList( | |||
325 | -*/ | 325 | -*/ |
326 | PKnownBSS | 326 | PKnownBSS |
327 | BSSpAddrIsInBSSList( | 327 | BSSpAddrIsInBSSList( |
328 | IN void *hDeviceContext, | 328 | void *hDeviceContext, |
329 | IN PBYTE abyBSSID, | 329 | PBYTE abyBSSID, |
330 | IN PWLAN_IE_SSID pSSID | 330 | PWLAN_IE_SSID pSSID |
331 | ) | 331 | ) |
332 | { | 332 | { |
333 | PSDevice pDevice = (PSDevice)hDeviceContext; | 333 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -368,23 +368,23 @@ BSSpAddrIsInBSSList( | |||
368 | 368 | ||
369 | BOOL | 369 | BOOL |
370 | BSSbInsertToBSSList ( | 370 | BSSbInsertToBSSList ( |
371 | IN void *hDeviceContext, | 371 | void *hDeviceContext, |
372 | IN PBYTE abyBSSIDAddr, | 372 | PBYTE abyBSSIDAddr, |
373 | IN QWORD qwTimestamp, | 373 | QWORD qwTimestamp, |
374 | IN WORD wBeaconInterval, | 374 | WORD wBeaconInterval, |
375 | IN WORD wCapInfo, | 375 | WORD wCapInfo, |
376 | IN BYTE byCurrChannel, | 376 | BYTE byCurrChannel, |
377 | IN PWLAN_IE_SSID pSSID, | 377 | PWLAN_IE_SSID pSSID, |
378 | IN PWLAN_IE_SUPP_RATES pSuppRates, | 378 | PWLAN_IE_SUPP_RATES pSuppRates, |
379 | IN PWLAN_IE_SUPP_RATES pExtSuppRates, | 379 | PWLAN_IE_SUPP_RATES pExtSuppRates, |
380 | IN PERPObject psERP, | 380 | PERPObject psERP, |
381 | IN PWLAN_IE_RSN pRSN, | 381 | PWLAN_IE_RSN pRSN, |
382 | IN PWLAN_IE_RSN_EXT pRSNWPA, | 382 | PWLAN_IE_RSN_EXT pRSNWPA, |
383 | IN PWLAN_IE_COUNTRY pIE_Country, | 383 | PWLAN_IE_COUNTRY pIE_Country, |
384 | IN PWLAN_IE_QUIET pIE_Quiet, | 384 | PWLAN_IE_QUIET pIE_Quiet, |
385 | IN UINT uIELength, | 385 | UINT uIELength, |
386 | IN PBYTE pbyIEs, | 386 | PBYTE pbyIEs, |
387 | IN void *pRxPacketContext | 387 | void *pRxPacketContext |
388 | ) | 388 | ) |
389 | { | 389 | { |
390 | 390 | ||
@@ -585,24 +585,24 @@ BSSbInsertToBSSList ( | |||
585 | 585 | ||
586 | BOOL | 586 | BOOL |
587 | BSSbUpdateToBSSList ( | 587 | BSSbUpdateToBSSList ( |
588 | IN void *hDeviceContext, | 588 | void *hDeviceContext, |
589 | IN QWORD qwTimestamp, | 589 | QWORD qwTimestamp, |
590 | IN WORD wBeaconInterval, | 590 | WORD wBeaconInterval, |
591 | IN WORD wCapInfo, | 591 | WORD wCapInfo, |
592 | IN BYTE byCurrChannel, | 592 | BYTE byCurrChannel, |
593 | IN BOOL bChannelHit, | 593 | BOOL bChannelHit, |
594 | IN PWLAN_IE_SSID pSSID, | 594 | PWLAN_IE_SSID pSSID, |
595 | IN PWLAN_IE_SUPP_RATES pSuppRates, | 595 | PWLAN_IE_SUPP_RATES pSuppRates, |
596 | IN PWLAN_IE_SUPP_RATES pExtSuppRates, | 596 | PWLAN_IE_SUPP_RATES pExtSuppRates, |
597 | IN PERPObject psERP, | 597 | PERPObject psERP, |
598 | IN PWLAN_IE_RSN pRSN, | 598 | PWLAN_IE_RSN pRSN, |
599 | IN PWLAN_IE_RSN_EXT pRSNWPA, | 599 | PWLAN_IE_RSN_EXT pRSNWPA, |
600 | IN PWLAN_IE_COUNTRY pIE_Country, | 600 | PWLAN_IE_COUNTRY pIE_Country, |
601 | IN PWLAN_IE_QUIET pIE_Quiet, | 601 | PWLAN_IE_QUIET pIE_Quiet, |
602 | IN PKnownBSS pBSSList, | 602 | PKnownBSS pBSSList, |
603 | IN UINT uIELength, | 603 | UINT uIELength, |
604 | IN PBYTE pbyIEs, | 604 | PBYTE pbyIEs, |
605 | IN void *pRxPacketContext | 605 | void *pRxPacketContext |
606 | ) | 606 | ) |
607 | { | 607 | { |
608 | int ii; | 608 | int ii; |
@@ -764,8 +764,8 @@ BSSbUpdateToBSSList ( | |||
764 | 764 | ||
765 | BOOL | 765 | BOOL |
766 | BSSDBbIsSTAInNodeDB( | 766 | BSSDBbIsSTAInNodeDB( |
767 | IN void *pMgmtObject, | 767 | void *pMgmtObject, |
768 | IN PBYTE abyDstAddr, | 768 | PBYTE abyDstAddr, |
769 | OUT PUINT puNodeIndex | 769 | OUT PUINT puNodeIndex |
770 | ) | 770 | ) |
771 | { | 771 | { |
@@ -799,7 +799,7 @@ BSSDBbIsSTAInNodeDB( | |||
799 | -*/ | 799 | -*/ |
800 | void | 800 | void |
801 | BSSvCreateOneNode( | 801 | BSSvCreateOneNode( |
802 | IN void *hDeviceContext, | 802 | void *hDeviceContext, |
803 | OUT PUINT puNodeIndex | 803 | OUT PUINT puNodeIndex |
804 | ) | 804 | ) |
805 | { | 805 | { |
@@ -864,8 +864,8 @@ BSSvCreateOneNode( | |||
864 | -*/ | 864 | -*/ |
865 | void | 865 | void |
866 | BSSvRemoveOneNode( | 866 | BSSvRemoveOneNode( |
867 | IN void *hDeviceContext, | 867 | void *hDeviceContext, |
868 | IN UINT uNodeIndex | 868 | UINT uNodeIndex |
869 | ) | 869 | ) |
870 | { | 870 | { |
871 | 871 | ||
@@ -897,10 +897,10 @@ BSSvRemoveOneNode( | |||
897 | 897 | ||
898 | void | 898 | void |
899 | BSSvUpdateAPNode( | 899 | BSSvUpdateAPNode( |
900 | IN void *hDeviceContext, | 900 | void *hDeviceContext, |
901 | IN PWORD pwCapInfo, | 901 | PWORD pwCapInfo, |
902 | IN PWLAN_IE_SUPP_RATES pSuppRates, | 902 | PWLAN_IE_SUPP_RATES pSuppRates, |
903 | IN PWLAN_IE_SUPP_RATES pExtSuppRates | 903 | PWLAN_IE_SUPP_RATES pExtSuppRates |
904 | ) | 904 | ) |
905 | { | 905 | { |
906 | PSDevice pDevice = (PSDevice)hDeviceContext; | 906 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -960,7 +960,7 @@ BSSvUpdateAPNode( | |||
960 | 960 | ||
961 | void | 961 | void |
962 | BSSvAddMulticastNode( | 962 | BSSvAddMulticastNode( |
963 | IN void *hDeviceContext | 963 | void *hDeviceContext |
964 | ) | 964 | ) |
965 | { | 965 | { |
966 | PSDevice pDevice = (PSDevice)hDeviceContext; | 966 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -1013,7 +1013,7 @@ UINT status; | |||
1013 | #endif | 1013 | #endif |
1014 | void | 1014 | void |
1015 | BSSvSecondCallBack( | 1015 | BSSvSecondCallBack( |
1016 | IN void *hDeviceContext | 1016 | void *hDeviceContext |
1017 | ) | 1017 | ) |
1018 | { | 1018 | { |
1019 | PSDevice pDevice = (PSDevice)hDeviceContext; | 1019 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -1390,11 +1390,11 @@ start: | |||
1390 | 1390 | ||
1391 | void | 1391 | void |
1392 | BSSvUpdateNodeTxCounter( | 1392 | BSSvUpdateNodeTxCounter( |
1393 | IN void *hDeviceContext, | 1393 | void *hDeviceContext, |
1394 | IN BYTE byTsr0, | 1394 | BYTE byTsr0, |
1395 | IN BYTE byTsr1, | 1395 | BYTE byTsr1, |
1396 | IN PBYTE pbyBuffer, | 1396 | PBYTE pbyBuffer, |
1397 | IN UINT uFIFOHeaderSize | 1397 | UINT uFIFOHeaderSize |
1398 | ) | 1398 | ) |
1399 | { | 1399 | { |
1400 | PSDevice pDevice = (PSDevice)hDeviceContext; | 1400 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -1583,8 +1583,8 @@ BSSvUpdateNodeTxCounter( | |||
1583 | 1583 | ||
1584 | void | 1584 | void |
1585 | BSSvClearNodeDBTable( | 1585 | BSSvClearNodeDBTable( |
1586 | IN void *hDeviceContext, | 1586 | void *hDeviceContext, |
1587 | IN UINT uStartIndex | 1587 | UINT uStartIndex |
1588 | ) | 1588 | ) |
1589 | 1589 | ||
1590 | { | 1590 | { |
@@ -1611,7 +1611,7 @@ BSSvClearNodeDBTable( | |||
1611 | 1611 | ||
1612 | 1612 | ||
1613 | void s_vCheckSensitivity( | 1613 | void s_vCheckSensitivity( |
1614 | IN void *hDeviceContext | 1614 | void *hDeviceContext |
1615 | ) | 1615 | ) |
1616 | { | 1616 | { |
1617 | PSDevice pDevice = (PSDevice)hDeviceContext; | 1617 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -1661,7 +1661,7 @@ void s_vCheckSensitivity( | |||
1661 | 1661 | ||
1662 | void | 1662 | void |
1663 | BSSvClearAnyBSSJoinRecord ( | 1663 | BSSvClearAnyBSSJoinRecord ( |
1664 | IN void *hDeviceContext | 1664 | void *hDeviceContext |
1665 | ) | 1665 | ) |
1666 | { | 1666 | { |
1667 | PSDevice pDevice = (PSDevice)hDeviceContext; | 1667 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -1676,7 +1676,7 @@ BSSvClearAnyBSSJoinRecord ( | |||
1676 | 1676 | ||
1677 | #ifdef Calcu_LinkQual | 1677 | #ifdef Calcu_LinkQual |
1678 | void s_uCalculateLinkQual( | 1678 | void s_uCalculateLinkQual( |
1679 | IN void *hDeviceContext | 1679 | void *hDeviceContext |
1680 | ) | 1680 | ) |
1681 | { | 1681 | { |
1682 | PSDevice pDevice = (PSDevice)hDeviceContext; | 1682 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -1724,7 +1724,7 @@ else | |||
1724 | #endif | 1724 | #endif |
1725 | 1725 | ||
1726 | void s_vCheckPreEDThreshold( | 1726 | void s_vCheckPreEDThreshold( |
1727 | IN void *hDeviceContext | 1727 | void *hDeviceContext |
1728 | ) | 1728 | ) |
1729 | { | 1729 | { |
1730 | PSDevice pDevice = (PSDevice)hDeviceContext; | 1730 | PSDevice pDevice = (PSDevice)hDeviceContext; |
diff --git a/drivers/staging/vt6655/bssdb.h b/drivers/staging/vt6655/bssdb.h index a66e14f0a82..ec1e32bf35b 100644 --- a/drivers/staging/vt6655/bssdb.h +++ b/drivers/staging/vt6655/bssdb.h | |||
@@ -244,128 +244,128 @@ typedef struct tagKnownNodeDB { | |||
244 | 244 | ||
245 | PKnownBSS | 245 | PKnownBSS |
246 | BSSpSearchBSSList( | 246 | BSSpSearchBSSList( |
247 | IN void *hDeviceContext, | 247 | void *hDeviceContext, |
248 | IN PBYTE pbyDesireBSSID, | 248 | PBYTE pbyDesireBSSID, |
249 | IN PBYTE pbyDesireSSID, | 249 | PBYTE pbyDesireSSID, |
250 | IN CARD_PHY_TYPE ePhyType | 250 | CARD_PHY_TYPE ePhyType |
251 | ); | 251 | ); |
252 | 252 | ||
253 | PKnownBSS | 253 | PKnownBSS |
254 | BSSpAddrIsInBSSList( | 254 | BSSpAddrIsInBSSList( |
255 | IN void *hDeviceContext, | 255 | void *hDeviceContext, |
256 | IN PBYTE abyBSSID, | 256 | PBYTE abyBSSID, |
257 | IN PWLAN_IE_SSID pSSID | 257 | PWLAN_IE_SSID pSSID |
258 | ); | 258 | ); |
259 | 259 | ||
260 | void | 260 | void |
261 | BSSvClearBSSList( | 261 | BSSvClearBSSList( |
262 | IN void *hDeviceContext, | 262 | void *hDeviceContext, |
263 | IN BOOL bKeepCurrBSSID | 263 | BOOL bKeepCurrBSSID |
264 | ); | 264 | ); |
265 | 265 | ||
266 | BOOL | 266 | BOOL |
267 | BSSbInsertToBSSList( | 267 | BSSbInsertToBSSList( |
268 | IN void *hDeviceContext, | 268 | void *hDeviceContext, |
269 | IN PBYTE abyBSSIDAddr, | 269 | PBYTE abyBSSIDAddr, |
270 | IN QWORD qwTimestamp, | 270 | QWORD qwTimestamp, |
271 | IN WORD wBeaconInterval, | 271 | WORD wBeaconInterval, |
272 | IN WORD wCapInfo, | 272 | WORD wCapInfo, |
273 | IN BYTE byCurrChannel, | 273 | BYTE byCurrChannel, |
274 | IN PWLAN_IE_SSID pSSID, | 274 | PWLAN_IE_SSID pSSID, |
275 | IN PWLAN_IE_SUPP_RATES pSuppRates, | 275 | PWLAN_IE_SUPP_RATES pSuppRates, |
276 | IN PWLAN_IE_SUPP_RATES pExtSuppRates, | 276 | PWLAN_IE_SUPP_RATES pExtSuppRates, |
277 | IN PERPObject psERP, | 277 | PERPObject psERP, |
278 | IN PWLAN_IE_RSN pRSN, | 278 | PWLAN_IE_RSN pRSN, |
279 | IN PWLAN_IE_RSN_EXT pRSNWPA, | 279 | PWLAN_IE_RSN_EXT pRSNWPA, |
280 | IN PWLAN_IE_COUNTRY pIE_Country, | 280 | PWLAN_IE_COUNTRY pIE_Country, |
281 | IN PWLAN_IE_QUIET pIE_Quiet, | 281 | PWLAN_IE_QUIET pIE_Quiet, |
282 | IN UINT uIELength, | 282 | UINT uIELength, |
283 | IN PBYTE pbyIEs, | 283 | PBYTE pbyIEs, |
284 | IN void *pRxPacketContext | 284 | void *pRxPacketContext |
285 | ); | 285 | ); |
286 | 286 | ||
287 | 287 | ||
288 | BOOL | 288 | BOOL |
289 | BSSbUpdateToBSSList( | 289 | BSSbUpdateToBSSList( |
290 | IN void *hDeviceContext, | 290 | void *hDeviceContext, |
291 | IN QWORD qwTimestamp, | 291 | QWORD qwTimestamp, |
292 | IN WORD wBeaconInterval, | 292 | WORD wBeaconInterval, |
293 | IN WORD wCapInfo, | 293 | WORD wCapInfo, |
294 | IN BYTE byCurrChannel, | 294 | BYTE byCurrChannel, |
295 | IN BOOL bChannelHit, | 295 | BOOL bChannelHit, |
296 | IN PWLAN_IE_SSID pSSID, | 296 | PWLAN_IE_SSID pSSID, |
297 | IN PWLAN_IE_SUPP_RATES pSuppRates, | 297 | PWLAN_IE_SUPP_RATES pSuppRates, |
298 | IN PWLAN_IE_SUPP_RATES pExtSuppRates, | 298 | PWLAN_IE_SUPP_RATES pExtSuppRates, |
299 | IN PERPObject psERP, | 299 | PERPObject psERP, |
300 | IN PWLAN_IE_RSN pRSN, | 300 | PWLAN_IE_RSN pRSN, |
301 | IN PWLAN_IE_RSN_EXT pRSNWPA, | 301 | PWLAN_IE_RSN_EXT pRSNWPA, |
302 | IN PWLAN_IE_COUNTRY pIE_Country, | 302 | PWLAN_IE_COUNTRY pIE_Country, |
303 | IN PWLAN_IE_QUIET pIE_Quiet, | 303 | PWLAN_IE_QUIET pIE_Quiet, |
304 | IN PKnownBSS pBSSList, | 304 | PKnownBSS pBSSList, |
305 | IN UINT uIELength, | 305 | UINT uIELength, |
306 | IN PBYTE pbyIEs, | 306 | PBYTE pbyIEs, |
307 | IN void *pRxPacketContext | 307 | void *pRxPacketContext |
308 | ); | 308 | ); |
309 | 309 | ||
310 | 310 | ||
311 | BOOL | 311 | BOOL |
312 | BSSDBbIsSTAInNodeDB( | 312 | BSSDBbIsSTAInNodeDB( |
313 | IN void *hDeviceContext, | 313 | void *hDeviceContext, |
314 | IN PBYTE abyDstAddr, | 314 | PBYTE abyDstAddr, |
315 | OUT PUINT puNodeIndex | 315 | OUT PUINT puNodeIndex |
316 | ); | 316 | ); |
317 | 317 | ||
318 | void | 318 | void |
319 | BSSvCreateOneNode( | 319 | BSSvCreateOneNode( |
320 | IN void *hDeviceContext, | 320 | void *hDeviceContext, |
321 | OUT PUINT puNodeIndex | 321 | OUT PUINT puNodeIndex |
322 | ); | 322 | ); |
323 | 323 | ||
324 | void | 324 | void |
325 | BSSvUpdateAPNode( | 325 | BSSvUpdateAPNode( |
326 | IN void *hDeviceContext, | 326 | void *hDeviceContext, |
327 | IN PWORD pwCapInfo, | 327 | PWORD pwCapInfo, |
328 | IN PWLAN_IE_SUPP_RATES pItemRates, | 328 | PWLAN_IE_SUPP_RATES pItemRates, |
329 | IN PWLAN_IE_SUPP_RATES pExtSuppRates | 329 | PWLAN_IE_SUPP_RATES pExtSuppRates |
330 | ); | 330 | ); |
331 | 331 | ||
332 | 332 | ||
333 | void | 333 | void |
334 | BSSvSecondCallBack( | 334 | BSSvSecondCallBack( |
335 | IN void *hDeviceContext | 335 | void *hDeviceContext |
336 | ); | 336 | ); |
337 | 337 | ||
338 | 338 | ||
339 | void | 339 | void |
340 | BSSvUpdateNodeTxCounter( | 340 | BSSvUpdateNodeTxCounter( |
341 | IN void *hDeviceContext, | 341 | void *hDeviceContext, |
342 | IN BYTE byTsr0, | 342 | BYTE byTsr0, |
343 | IN BYTE byTsr1, | 343 | BYTE byTsr1, |
344 | IN PBYTE pbyBuffer, | 344 | PBYTE pbyBuffer, |
345 | IN UINT uFIFOHeaderSize | 345 | UINT uFIFOHeaderSize |
346 | ); | 346 | ); |
347 | 347 | ||
348 | void | 348 | void |
349 | BSSvRemoveOneNode( | 349 | BSSvRemoveOneNode( |
350 | IN void *hDeviceContext, | 350 | void *hDeviceContext, |
351 | IN UINT uNodeIndex | 351 | UINT uNodeIndex |
352 | ); | 352 | ); |
353 | 353 | ||
354 | void | 354 | void |
355 | BSSvAddMulticastNode( | 355 | BSSvAddMulticastNode( |
356 | IN void *hDeviceContext | 356 | void *hDeviceContext |
357 | ); | 357 | ); |
358 | 358 | ||
359 | 359 | ||
360 | void | 360 | void |
361 | BSSvClearNodeDBTable( | 361 | BSSvClearNodeDBTable( |
362 | IN void *hDeviceContext, | 362 | void *hDeviceContext, |
363 | IN UINT uStartIndex | 363 | UINT uStartIndex |
364 | ); | 364 | ); |
365 | 365 | ||
366 | void | 366 | void |
367 | BSSvClearAnyBSSJoinRecord( | 367 | BSSvClearAnyBSSJoinRecord( |
368 | IN void *hDeviceContext | 368 | void *hDeviceContext |
369 | ); | 369 | ); |
370 | 370 | ||
371 | #endif //__BSSDB_H__ | 371 | #endif //__BSSDB_H__ |
diff --git a/drivers/staging/vt6655/card.c b/drivers/staging/vt6655/card.c index e767044ba0d..bc61ca912cb 100644 --- a/drivers/staging/vt6655/card.c +++ b/drivers/staging/vt6655/card.c | |||
@@ -425,8 +425,8 @@ SCountryTable ChannelRuleTab[CCODE_MAX+1] = | |||
425 | static | 425 | static |
426 | void | 426 | void |
427 | s_vCaculateOFDMRParameter( | 427 | s_vCaculateOFDMRParameter( |
428 | IN BYTE byRate, | 428 | BYTE byRate, |
429 | IN CARD_PHY_TYPE ePHYType, | 429 | CARD_PHY_TYPE ePHYType, |
430 | OUT PBYTE pbyTxRate, | 430 | OUT PBYTE pbyTxRate, |
431 | OUT PBYTE pbyRsvTime | 431 | OUT PBYTE pbyRsvTime |
432 | ); | 432 | ); |
@@ -498,8 +498,8 @@ exit: | |||
498 | static | 498 | static |
499 | void | 499 | void |
500 | s_vCaculateOFDMRParameter ( | 500 | s_vCaculateOFDMRParameter ( |
501 | IN BYTE byRate, | 501 | BYTE byRate, |
502 | IN CARD_PHY_TYPE ePHYType, | 502 | CARD_PHY_TYPE ePHYType, |
503 | OUT PBYTE pbyTxRate, | 503 | OUT PBYTE pbyTxRate, |
504 | OUT PBYTE pbyRsvTime | 504 | OUT PBYTE pbyRsvTime |
505 | ) | 505 | ) |
@@ -1550,10 +1550,10 @@ BOOL CARDbRemoveKey (void *pDeviceHandler, PBYTE pbyBSSID) | |||
1550 | -*/ | 1550 | -*/ |
1551 | BOOL | 1551 | BOOL |
1552 | CARDbAdd_PMKID_Candidate ( | 1552 | CARDbAdd_PMKID_Candidate ( |
1553 | IN void *pDeviceHandler, | 1553 | void *pDeviceHandler, |
1554 | IN PBYTE pbyBSSID, | 1554 | PBYTE pbyBSSID, |
1555 | IN BOOL bRSNCapExist, | 1555 | BOOL bRSNCapExist, |
1556 | IN WORD wRSNCap | 1556 | WORD wRSNCap |
1557 | ) | 1557 | ) |
1558 | { | 1558 | { |
1559 | PSDevice pDevice = (PSDevice) pDeviceHandler; | 1559 | PSDevice pDevice = (PSDevice) pDeviceHandler; |
@@ -1601,7 +1601,7 @@ CARDbAdd_PMKID_Candidate ( | |||
1601 | 1601 | ||
1602 | void * | 1602 | void * |
1603 | CARDpGetCurrentAddress ( | 1603 | CARDpGetCurrentAddress ( |
1604 | IN void *pDeviceHandler | 1604 | void *pDeviceHandler |
1605 | ) | 1605 | ) |
1606 | { | 1606 | { |
1607 | PSDevice pDevice = (PSDevice) pDeviceHandler; | 1607 | PSDevice pDevice = (PSDevice) pDeviceHandler; |
@@ -1708,9 +1708,9 @@ void CARDvInitChannelTable (void *pDeviceHandler) | |||
1708 | -*/ | 1708 | -*/ |
1709 | BOOL | 1709 | BOOL |
1710 | CARDbStartMeasure ( | 1710 | CARDbStartMeasure ( |
1711 | IN void *pDeviceHandler, | 1711 | void *pDeviceHandler, |
1712 | IN void *pvMeasureEIDs, | 1712 | void *pvMeasureEIDs, |
1713 | IN UINT uNumOfMeasureEIDs | 1713 | UINT uNumOfMeasureEIDs |
1714 | ) | 1714 | ) |
1715 | { | 1715 | { |
1716 | PSDevice pDevice = (PSDevice) pDeviceHandler; | 1716 | PSDevice pDevice = (PSDevice) pDeviceHandler; |
@@ -1835,10 +1835,10 @@ CARDbStartMeasure ( | |||
1835 | -*/ | 1835 | -*/ |
1836 | BOOL | 1836 | BOOL |
1837 | CARDbChannelSwitch ( | 1837 | CARDbChannelSwitch ( |
1838 | IN void *pDeviceHandler, | 1838 | void *pDeviceHandler, |
1839 | IN BYTE byMode, | 1839 | BYTE byMode, |
1840 | IN BYTE byNewChannel, | 1840 | BYTE byNewChannel, |
1841 | IN BYTE byCount | 1841 | BYTE byCount |
1842 | ) | 1842 | ) |
1843 | { | 1843 | { |
1844 | PSDevice pDevice = (PSDevice) pDeviceHandler; | 1844 | PSDevice pDevice = (PSDevice) pDeviceHandler; |
@@ -1878,12 +1878,12 @@ CARDbChannelSwitch ( | |||
1878 | -*/ | 1878 | -*/ |
1879 | BOOL | 1879 | BOOL |
1880 | CARDbSetQuiet ( | 1880 | CARDbSetQuiet ( |
1881 | IN void *pDeviceHandler, | 1881 | void *pDeviceHandler, |
1882 | IN BOOL bResetQuiet, | 1882 | BOOL bResetQuiet, |
1883 | IN BYTE byQuietCount, | 1883 | BYTE byQuietCount, |
1884 | IN BYTE byQuietPeriod, | 1884 | BYTE byQuietPeriod, |
1885 | IN WORD wQuietDuration, | 1885 | WORD wQuietDuration, |
1886 | IN WORD wQuietOffset | 1886 | WORD wQuietOffset |
1887 | ) | 1887 | ) |
1888 | { | 1888 | { |
1889 | PSDevice pDevice = (PSDevice) pDeviceHandler; | 1889 | PSDevice pDevice = (PSDevice) pDeviceHandler; |
@@ -1934,7 +1934,7 @@ CARDbSetQuiet ( | |||
1934 | -*/ | 1934 | -*/ |
1935 | BOOL | 1935 | BOOL |
1936 | CARDbStartQuiet ( | 1936 | CARDbStartQuiet ( |
1937 | IN void *pDeviceHandler | 1937 | void *pDeviceHandler |
1938 | ) | 1938 | ) |
1939 | { | 1939 | { |
1940 | PSDevice pDevice = (PSDevice) pDeviceHandler; | 1940 | PSDevice pDevice = (PSDevice) pDeviceHandler; |
@@ -2035,9 +2035,9 @@ CARDbStartQuiet ( | |||
2035 | -*/ | 2035 | -*/ |
2036 | void | 2036 | void |
2037 | CARDvSetCountryInfo ( | 2037 | CARDvSetCountryInfo ( |
2038 | IN void *pDeviceHandler, | 2038 | void *pDeviceHandler, |
2039 | IN CARD_PHY_TYPE ePHYType, | 2039 | CARD_PHY_TYPE ePHYType, |
2040 | IN void *pIE | 2040 | void *pIE |
2041 | ) | 2041 | ) |
2042 | { | 2042 | { |
2043 | PSDevice pDevice = (PSDevice) pDeviceHandler; | 2043 | PSDevice pDevice = (PSDevice) pDeviceHandler; |
@@ -2094,9 +2094,9 @@ CARDvSetCountryInfo ( | |||
2094 | -*/ | 2094 | -*/ |
2095 | void | 2095 | void |
2096 | CARDvSetPowerConstraint ( | 2096 | CARDvSetPowerConstraint ( |
2097 | IN void *pDeviceHandler, | 2097 | void *pDeviceHandler, |
2098 | IN BYTE byChannel, | 2098 | BYTE byChannel, |
2099 | IN I8 byPower | 2099 | I8 byPower |
2100 | ) | 2100 | ) |
2101 | { | 2101 | { |
2102 | PSDevice pDevice = (PSDevice) pDeviceHandler; | 2102 | PSDevice pDevice = (PSDevice) pDeviceHandler; |
@@ -2129,7 +2129,7 @@ CARDvSetPowerConstraint ( | |||
2129 | -*/ | 2129 | -*/ |
2130 | void | 2130 | void |
2131 | CARDvGetPowerCapability ( | 2131 | CARDvGetPowerCapability ( |
2132 | IN void *pDeviceHandler, | 2132 | void *pDeviceHandler, |
2133 | OUT PBYTE pbyMinPower, | 2133 | OUT PBYTE pbyMinPower, |
2134 | OUT PBYTE pbyMaxPower | 2134 | OUT PBYTE pbyMaxPower |
2135 | ) | 2135 | ) |
@@ -2165,8 +2165,8 @@ CARDvGetPowerCapability ( | |||
2165 | -*/ | 2165 | -*/ |
2166 | BYTE | 2166 | BYTE |
2167 | CARDbySetSupportChannels ( | 2167 | CARDbySetSupportChannels ( |
2168 | IN void *pDeviceHandler, | 2168 | void *pDeviceHandler, |
2169 | IN OUT PBYTE pbyIEs | 2169 | OUT PBYTE pbyIEs |
2170 | ) | 2170 | ) |
2171 | { | 2171 | { |
2172 | PSDevice pDevice = (PSDevice) pDeviceHandler; | 2172 | PSDevice pDevice = (PSDevice) pDeviceHandler; |
@@ -2256,7 +2256,7 @@ CARDbySetSupportChannels ( | |||
2256 | -*/ | 2256 | -*/ |
2257 | I8 | 2257 | I8 |
2258 | CARDbyGetTransmitPower ( | 2258 | CARDbyGetTransmitPower ( |
2259 | IN void *pDeviceHandler | 2259 | void *pDeviceHandler |
2260 | ) | 2260 | ) |
2261 | { | 2261 | { |
2262 | PSDevice pDevice = (PSDevice) pDeviceHandler; | 2262 | PSDevice pDevice = (PSDevice) pDeviceHandler; |
@@ -2267,7 +2267,7 @@ CARDbyGetTransmitPower ( | |||
2267 | 2267 | ||
2268 | BOOL | 2268 | BOOL |
2269 | CARDbChannelGetList ( | 2269 | CARDbChannelGetList ( |
2270 | IN UINT uCountryCodeIdx, | 2270 | UINT uCountryCodeIdx, |
2271 | OUT PBYTE pbyChannelTable | 2271 | OUT PBYTE pbyChannelTable |
2272 | ) | 2272 | ) |
2273 | { | 2273 | { |
@@ -2281,8 +2281,8 @@ CARDbChannelGetList ( | |||
2281 | 2281 | ||
2282 | void | 2282 | void |
2283 | CARDvSetCountryIE( | 2283 | CARDvSetCountryIE( |
2284 | IN void *pDeviceHandler, | 2284 | void *pDeviceHandler, |
2285 | IN void *pIE | 2285 | void *pIE |
2286 | ) | 2286 | ) |
2287 | { | 2287 | { |
2288 | PSDevice pDevice = (PSDevice) pDeviceHandler; | 2288 | PSDevice pDevice = (PSDevice) pDeviceHandler; |
@@ -2307,8 +2307,8 @@ CARDvSetCountryIE( | |||
2307 | 2307 | ||
2308 | BOOL | 2308 | BOOL |
2309 | CARDbGetChannelMapInfo( | 2309 | CARDbGetChannelMapInfo( |
2310 | IN void *pDeviceHandler, | 2310 | void *pDeviceHandler, |
2311 | IN UINT uChannelIndex, | 2311 | UINT uChannelIndex, |
2312 | OUT PBYTE pbyChannelNumber, | 2312 | OUT PBYTE pbyChannelNumber, |
2313 | OUT PBYTE pbyMap | 2313 | OUT PBYTE pbyMap |
2314 | ) | 2314 | ) |
@@ -2326,9 +2326,9 @@ CARDbGetChannelMapInfo( | |||
2326 | 2326 | ||
2327 | void | 2327 | void |
2328 | CARDvSetChannelMapInfo( | 2328 | CARDvSetChannelMapInfo( |
2329 | IN void *pDeviceHandler, | 2329 | void *pDeviceHandler, |
2330 | IN UINT uChannelIndex, | 2330 | UINT uChannelIndex, |
2331 | IN BYTE byMap | 2331 | BYTE byMap |
2332 | ) | 2332 | ) |
2333 | { | 2333 | { |
2334 | // PSDevice pDevice = (PSDevice) pDeviceHandler; | 2334 | // PSDevice pDevice = (PSDevice) pDeviceHandler; |
@@ -2342,7 +2342,7 @@ CARDvSetChannelMapInfo( | |||
2342 | 2342 | ||
2343 | void | 2343 | void |
2344 | CARDvClearChannelMapInfo( | 2344 | CARDvClearChannelMapInfo( |
2345 | IN void *pDeviceHandler | 2345 | void *pDeviceHandler |
2346 | ) | 2346 | ) |
2347 | { | 2347 | { |
2348 | // PSDevice pDevice = (PSDevice) pDeviceHandler; | 2348 | // PSDevice pDevice = (PSDevice) pDeviceHandler; |
@@ -2356,7 +2356,7 @@ CARDvClearChannelMapInfo( | |||
2356 | 2356 | ||
2357 | BYTE | 2357 | BYTE |
2358 | CARDbyAutoChannelSelect( | 2358 | CARDbyAutoChannelSelect( |
2359 | IN void *pDeviceHandler, | 2359 | void *pDeviceHandler, |
2360 | CARD_PHY_TYPE ePHYType | 2360 | CARD_PHY_TYPE ePHYType |
2361 | ) | 2361 | ) |
2362 | { | 2362 | { |
@@ -2422,7 +2422,7 @@ CARDbyAutoChannelSelect( | |||
2422 | //xxx | 2422 | //xxx |
2423 | void | 2423 | void |
2424 | CARDvSafeResetTx ( | 2424 | CARDvSafeResetTx ( |
2425 | IN void *pDeviceHandler | 2425 | void *pDeviceHandler |
2426 | ) | 2426 | ) |
2427 | { | 2427 | { |
2428 | PSDevice pDevice = (PSDevice) pDeviceHandler; | 2428 | PSDevice pDevice = (PSDevice) pDeviceHandler; |
@@ -2478,7 +2478,7 @@ CARDvSafeResetTx ( | |||
2478 | -*/ | 2478 | -*/ |
2479 | void | 2479 | void |
2480 | CARDvSafeResetRx ( | 2480 | CARDvSafeResetRx ( |
2481 | IN void *pDeviceHandler | 2481 | void *pDeviceHandler |
2482 | ) | 2482 | ) |
2483 | { | 2483 | { |
2484 | PSDevice pDevice = (PSDevice) pDeviceHandler; | 2484 | PSDevice pDevice = (PSDevice) pDeviceHandler; |
diff --git a/drivers/staging/vt6655/card.h b/drivers/staging/vt6655/card.h index 2114e99b584..f52a8e0d48c 100644 --- a/drivers/staging/vt6655/card.h +++ b/drivers/staging/vt6655/card.h | |||
@@ -133,15 +133,15 @@ BOOL CARDbRemoveKey (void *pDeviceHandler, PBYTE pbyBSSID); | |||
133 | 133 | ||
134 | BOOL | 134 | BOOL |
135 | CARDbAdd_PMKID_Candidate ( | 135 | CARDbAdd_PMKID_Candidate ( |
136 | IN void *pDeviceHandler, | 136 | void *pDeviceHandler, |
137 | IN PBYTE pbyBSSID, | 137 | PBYTE pbyBSSID, |
138 | IN BOOL bRSNCapExist, | 138 | BOOL bRSNCapExist, |
139 | IN WORD wRSNCap | 139 | WORD wRSNCap |
140 | ); | 140 | ); |
141 | 141 | ||
142 | void * | 142 | void * |
143 | CARDpGetCurrentAddress ( | 143 | CARDpGetCurrentAddress ( |
144 | IN void *pDeviceHandler | 144 | void *pDeviceHandler |
145 | ); | 145 | ); |
146 | 146 | ||
147 | 147 | ||
@@ -150,101 +150,101 @@ BYTE CARDbyGetChannelMapping(void *pDeviceHandler, BYTE byChannelNumber, CARD_PH | |||
150 | 150 | ||
151 | BOOL | 151 | BOOL |
152 | CARDbStartMeasure ( | 152 | CARDbStartMeasure ( |
153 | IN void *pDeviceHandler, | 153 | void *pDeviceHandler, |
154 | IN void *pvMeasureEIDs, | 154 | void *pvMeasureEIDs, |
155 | IN UINT uNumOfMeasureEIDs | 155 | UINT uNumOfMeasureEIDs |
156 | ); | 156 | ); |
157 | 157 | ||
158 | BOOL | 158 | BOOL |
159 | CARDbChannelSwitch ( | 159 | CARDbChannelSwitch ( |
160 | IN void *pDeviceHandler, | 160 | void *pDeviceHandler, |
161 | IN BYTE byMode, | 161 | BYTE byMode, |
162 | IN BYTE byNewChannel, | 162 | BYTE byNewChannel, |
163 | IN BYTE byCount | 163 | BYTE byCount |
164 | ); | 164 | ); |
165 | 165 | ||
166 | BOOL | 166 | BOOL |
167 | CARDbSetQuiet ( | 167 | CARDbSetQuiet ( |
168 | IN void *pDeviceHandler, | 168 | void *pDeviceHandler, |
169 | IN BOOL bResetQuiet, | 169 | BOOL bResetQuiet, |
170 | IN BYTE byQuietCount, | 170 | BYTE byQuietCount, |
171 | IN BYTE byQuietPeriod, | 171 | BYTE byQuietPeriod, |
172 | IN WORD wQuietDuration, | 172 | WORD wQuietDuration, |
173 | IN WORD wQuietOffset | 173 | WORD wQuietOffset |
174 | ); | 174 | ); |
175 | 175 | ||
176 | BOOL | 176 | BOOL |
177 | CARDbStartQuiet ( | 177 | CARDbStartQuiet ( |
178 | IN void *pDeviceHandler | 178 | void *pDeviceHandler |
179 | ); | 179 | ); |
180 | 180 | ||
181 | void | 181 | void |
182 | CARDvSetCountryInfo ( | 182 | CARDvSetCountryInfo ( |
183 | IN void *pDeviceHandler, | 183 | void *pDeviceHandler, |
184 | IN CARD_PHY_TYPE ePHYType, | 184 | CARD_PHY_TYPE ePHYType, |
185 | IN void *pIE | 185 | void *pIE |
186 | ); | 186 | ); |
187 | 187 | ||
188 | void | 188 | void |
189 | CARDvSetPowerConstraint ( | 189 | CARDvSetPowerConstraint ( |
190 | IN void *pDeviceHandler, | 190 | void *pDeviceHandler, |
191 | IN BYTE byChannel, | 191 | BYTE byChannel, |
192 | IN I8 byPower | 192 | I8 byPower |
193 | ); | 193 | ); |
194 | 194 | ||
195 | void | 195 | void |
196 | CARDvGetPowerCapability ( | 196 | CARDvGetPowerCapability ( |
197 | IN void *pDeviceHandler, | 197 | void *pDeviceHandler, |
198 | OUT PBYTE pbyMinPower, | 198 | OUT PBYTE pbyMinPower, |
199 | OUT PBYTE pbyMaxPower | 199 | OUT PBYTE pbyMaxPower |
200 | ); | 200 | ); |
201 | 201 | ||
202 | BYTE | 202 | BYTE |
203 | CARDbySetSupportChannels ( | 203 | CARDbySetSupportChannels ( |
204 | IN void *pDeviceHandler, | 204 | void *pDeviceHandler, |
205 | IN OUT PBYTE pbyIEs | 205 | OUT PBYTE pbyIEs |
206 | ); | 206 | ); |
207 | 207 | ||
208 | I8 | 208 | I8 |
209 | CARDbyGetTransmitPower ( | 209 | CARDbyGetTransmitPower ( |
210 | IN void *pDeviceHandler | 210 | void *pDeviceHandler |
211 | ); | 211 | ); |
212 | 212 | ||
213 | BOOL | 213 | BOOL |
214 | CARDbChannelGetList ( | 214 | CARDbChannelGetList ( |
215 | IN UINT uCountryCodeIdx, | 215 | UINT uCountryCodeIdx, |
216 | OUT PBYTE pbyChannelTable | 216 | OUT PBYTE pbyChannelTable |
217 | ); | 217 | ); |
218 | 218 | ||
219 | void | 219 | void |
220 | CARDvSetCountryIE( | 220 | CARDvSetCountryIE( |
221 | IN void *pDeviceHandler, | 221 | void *pDeviceHandler, |
222 | IN void *pIE | 222 | void *pIE |
223 | ); | 223 | ); |
224 | 224 | ||
225 | BOOL | 225 | BOOL |
226 | CARDbGetChannelMapInfo( | 226 | CARDbGetChannelMapInfo( |
227 | IN void *pDeviceHandler, | 227 | void *pDeviceHandler, |
228 | IN UINT uChannelIndex, | 228 | UINT uChannelIndex, |
229 | OUT PBYTE pbyChannelNumber, | 229 | OUT PBYTE pbyChannelNumber, |
230 | OUT PBYTE pbyMap | 230 | OUT PBYTE pbyMap |
231 | ); | 231 | ); |
232 | 232 | ||
233 | void | 233 | void |
234 | CARDvSetChannelMapInfo( | 234 | CARDvSetChannelMapInfo( |
235 | IN void *pDeviceHandler, | 235 | void *pDeviceHandler, |
236 | IN UINT uChannelIndex, | 236 | UINT uChannelIndex, |
237 | IN BYTE byMap | 237 | BYTE byMap |
238 | ); | 238 | ); |
239 | 239 | ||
240 | void | 240 | void |
241 | CARDvClearChannelMapInfo( | 241 | CARDvClearChannelMapInfo( |
242 | IN void *pDeviceHandler | 242 | void *pDeviceHandler |
243 | ); | 243 | ); |
244 | 244 | ||
245 | BYTE | 245 | BYTE |
246 | CARDbyAutoChannelSelect( | 246 | CARDbyAutoChannelSelect( |
247 | IN void *pDeviceHandler, | 247 | void *pDeviceHandler, |
248 | CARD_PHY_TYPE ePHYType | 248 | CARD_PHY_TYPE ePHYType |
249 | ); | 249 | ); |
250 | 250 | ||
diff --git a/drivers/staging/vt6655/datarate.c b/drivers/staging/vt6655/datarate.c index e0d1a94f732..42b008a428d 100644 --- a/drivers/staging/vt6655/datarate.c +++ b/drivers/staging/vt6655/datarate.c | |||
@@ -65,14 +65,14 @@ const BYTE acbyIERate[MAX_RATE] = | |||
65 | /*--------------------- Static Functions --------------------------*/ | 65 | /*--------------------- Static Functions --------------------------*/ |
66 | 66 | ||
67 | void s_vResetCounter ( | 67 | void s_vResetCounter ( |
68 | IN PKnownNodeDB psNodeDBTable | 68 | PKnownNodeDB psNodeDBTable |
69 | ); | 69 | ); |
70 | 70 | ||
71 | 71 | ||
72 | 72 | ||
73 | void | 73 | void |
74 | s_vResetCounter ( | 74 | s_vResetCounter ( |
75 | IN PKnownNodeDB psNodeDBTable | 75 | PKnownNodeDB psNodeDBTable |
76 | ) | 76 | ) |
77 | { | 77 | { |
78 | BYTE ii; | 78 | BYTE ii; |
@@ -106,7 +106,7 @@ s_vResetCounter ( | |||
106 | -*/ | 106 | -*/ |
107 | BYTE | 107 | BYTE |
108 | DATARATEbyGetRateIdx ( | 108 | DATARATEbyGetRateIdx ( |
109 | IN BYTE byRate | 109 | BYTE byRate |
110 | ) | 110 | ) |
111 | { | 111 | { |
112 | BYTE ii; | 112 | BYTE ii; |
@@ -160,7 +160,7 @@ DATARATEbyGetRateIdx ( | |||
160 | -*/ | 160 | -*/ |
161 | WORD | 161 | WORD |
162 | wGetRateIdx( | 162 | wGetRateIdx( |
163 | IN BYTE byRate | 163 | BYTE byRate |
164 | ) | 164 | ) |
165 | { | 165 | { |
166 | WORD ii; | 166 | WORD ii; |
@@ -196,10 +196,10 @@ wGetRateIdx( | |||
196 | -*/ | 196 | -*/ |
197 | void | 197 | void |
198 | RATEvParseMaxRate ( | 198 | RATEvParseMaxRate ( |
199 | IN void *pDeviceHandler, | 199 | void *pDeviceHandler, |
200 | IN PWLAN_IE_SUPP_RATES pItemRates, | 200 | PWLAN_IE_SUPP_RATES pItemRates, |
201 | IN PWLAN_IE_SUPP_RATES pItemExtRates, | 201 | PWLAN_IE_SUPP_RATES pItemExtRates, |
202 | IN BOOL bUpdateBasicRate, | 202 | BOOL bUpdateBasicRate, |
203 | OUT PWORD pwMaxBasicRate, | 203 | OUT PWORD pwMaxBasicRate, |
204 | OUT PWORD pwMaxSuppRate, | 204 | OUT PWORD pwMaxSuppRate, |
205 | OUT PWORD pwSuppRate, | 205 | OUT PWORD pwSuppRate, |
@@ -309,8 +309,8 @@ UINT uRateLen; | |||
309 | 309 | ||
310 | void | 310 | void |
311 | RATEvTxRateFallBack ( | 311 | RATEvTxRateFallBack ( |
312 | IN void *pDeviceHandler, | 312 | void *pDeviceHandler, |
313 | IN PKnownNodeDB psNodeDBTable | 313 | PKnownNodeDB psNodeDBTable |
314 | ) | 314 | ) |
315 | { | 315 | { |
316 | PSDevice pDevice = (PSDevice) pDeviceHandler; | 316 | PSDevice pDevice = (PSDevice) pDeviceHandler; |
@@ -411,9 +411,9 @@ TxRate_iwconfig=psNodeDBTable->wTxDataRate; | |||
411 | -*/ | 411 | -*/ |
412 | BYTE | 412 | BYTE |
413 | RATEuSetIE ( | 413 | RATEuSetIE ( |
414 | IN PWLAN_IE_SUPP_RATES pSrcRates, | 414 | PWLAN_IE_SUPP_RATES pSrcRates, |
415 | IN PWLAN_IE_SUPP_RATES pDstRates, | 415 | PWLAN_IE_SUPP_RATES pDstRates, |
416 | IN UINT uRateLen | 416 | UINT uRateLen |
417 | ) | 417 | ) |
418 | { | 418 | { |
419 | UINT ii, uu, uRateCnt = 0; | 419 | UINT ii, uu, uRateCnt = 0; |
diff --git a/drivers/staging/vt6655/datarate.h b/drivers/staging/vt6655/datarate.h index bba4a16d004..abf7a3884fc 100644 --- a/drivers/staging/vt6655/datarate.h +++ b/drivers/staging/vt6655/datarate.h | |||
@@ -56,10 +56,10 @@ | |||
56 | 56 | ||
57 | void | 57 | void |
58 | RATEvParseMaxRate( | 58 | RATEvParseMaxRate( |
59 | IN void *pDeviceHandler, | 59 | void *pDeviceHandler, |
60 | IN PWLAN_IE_SUPP_RATES pItemRates, | 60 | PWLAN_IE_SUPP_RATES pItemRates, |
61 | IN PWLAN_IE_SUPP_RATES pItemExtRates, | 61 | PWLAN_IE_SUPP_RATES pItemExtRates, |
62 | IN BOOL bUpdateBasicRate, | 62 | BOOL bUpdateBasicRate, |
63 | OUT PWORD pwMaxBasicRate, | 63 | OUT PWORD pwMaxBasicRate, |
64 | OUT PWORD pwMaxSuppRate, | 64 | OUT PWORD pwMaxSuppRate, |
65 | OUT PWORD pwSuppRate, | 65 | OUT PWORD pwSuppRate, |
@@ -69,26 +69,26 @@ RATEvParseMaxRate( | |||
69 | 69 | ||
70 | void | 70 | void |
71 | RATEvTxRateFallBack( | 71 | RATEvTxRateFallBack( |
72 | IN void *pDeviceHandler, | 72 | void *pDeviceHandler, |
73 | IN PKnownNodeDB psNodeDBTable | 73 | PKnownNodeDB psNodeDBTable |
74 | ); | 74 | ); |
75 | 75 | ||
76 | BYTE | 76 | BYTE |
77 | RATEuSetIE( | 77 | RATEuSetIE( |
78 | IN PWLAN_IE_SUPP_RATES pSrcRates, | 78 | PWLAN_IE_SUPP_RATES pSrcRates, |
79 | IN PWLAN_IE_SUPP_RATES pDstRates, | 79 | PWLAN_IE_SUPP_RATES pDstRates, |
80 | IN UINT uRateLen | 80 | UINT uRateLen |
81 | ); | 81 | ); |
82 | 82 | ||
83 | WORD | 83 | WORD |
84 | wGetRateIdx( | 84 | wGetRateIdx( |
85 | IN BYTE byRate | 85 | BYTE byRate |
86 | ); | 86 | ); |
87 | 87 | ||
88 | 88 | ||
89 | BYTE | 89 | BYTE |
90 | DATARATEbyGetRateIdx( | 90 | DATARATEbyGetRateIdx( |
91 | IN BYTE byRate | 91 | BYTE byRate |
92 | ); | 92 | ); |
93 | 93 | ||
94 | 94 | ||
diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index 454277b96ee..a401f2ad62c 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c | |||
@@ -478,7 +478,7 @@ pDevice->bUpdateBBVGA = TRUE; | |||
478 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" pDevice->bDiversityRegCtlON= %d\n",(INT)pDevice->bDiversityRegCtlON); | 478 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" pDevice->bDiversityRegCtlON= %d\n",(INT)pDevice->bDiversityRegCtlON); |
479 | } | 479 | } |
480 | 480 | ||
481 | static void s_vCompleteCurrentMeasure (IN PSDevice pDevice, IN BYTE byResult) | 481 | static void s_vCompleteCurrentMeasure (PSDevice pDevice, BYTE byResult) |
482 | { | 482 | { |
483 | UINT ii; | 483 | UINT ii; |
484 | DWORD dwDuration = 0; | 484 | DWORD dwDuration = 0; |
diff --git a/drivers/staging/vt6655/dpc.c b/drivers/staging/vt6655/dpc.c index d90104a1e6b..69368392466 100644 --- a/drivers/staging/vt6655/dpc.c +++ b/drivers/staging/vt6655/dpc.c | |||
@@ -76,13 +76,13 @@ const BYTE acbyRxRate[MAX_RATE] = | |||
76 | 76 | ||
77 | /*--------------------- Static Functions --------------------------*/ | 77 | /*--------------------- Static Functions --------------------------*/ |
78 | 78 | ||
79 | static BYTE s_byGetRateIdx(IN BYTE byRate); | 79 | static BYTE s_byGetRateIdx(BYTE byRate); |
80 | 80 | ||
81 | 81 | ||
82 | static | 82 | static |
83 | void | 83 | void |
84 | s_vGetDASA( | 84 | s_vGetDASA( |
85 | IN PBYTE pbyRxBufferAddr, | 85 | PBYTE pbyRxBufferAddr, |
86 | OUT PUINT pcbHeaderSize, | 86 | OUT PUINT pcbHeaderSize, |
87 | OUT PSEthernetHeader psEthHeader | 87 | OUT PSEthernetHeader psEthHeader |
88 | ); | 88 | ); |
@@ -90,37 +90,37 @@ s_vGetDASA( | |||
90 | static | 90 | static |
91 | void | 91 | void |
92 | s_vProcessRxMACHeader ( | 92 | s_vProcessRxMACHeader ( |
93 | IN PSDevice pDevice, | 93 | PSDevice pDevice, |
94 | IN PBYTE pbyRxBufferAddr, | 94 | PBYTE pbyRxBufferAddr, |
95 | IN UINT cbPacketSize, | 95 | UINT cbPacketSize, |
96 | IN BOOL bIsWEP, | 96 | BOOL bIsWEP, |
97 | IN BOOL bExtIV, | 97 | BOOL bExtIV, |
98 | OUT PUINT pcbHeadSize | 98 | OUT PUINT pcbHeadSize |
99 | ); | 99 | ); |
100 | 100 | ||
101 | static BOOL s_bAPModeRxCtl( | 101 | static BOOL s_bAPModeRxCtl( |
102 | IN PSDevice pDevice, | 102 | PSDevice pDevice, |
103 | IN PBYTE pbyFrame, | 103 | PBYTE pbyFrame, |
104 | IN INT iSANodeIndex | 104 | INT iSANodeIndex |
105 | ); | 105 | ); |
106 | 106 | ||
107 | 107 | ||
108 | 108 | ||
109 | static BOOL s_bAPModeRxData ( | 109 | static BOOL s_bAPModeRxData ( |
110 | IN PSDevice pDevice, | 110 | PSDevice pDevice, |
111 | IN struct sk_buff* skb, | 111 | struct sk_buff* skb, |
112 | IN UINT FrameSize, | 112 | UINT FrameSize, |
113 | IN UINT cbHeaderOffset, | 113 | UINT cbHeaderOffset, |
114 | IN INT iSANodeIndex, | 114 | INT iSANodeIndex, |
115 | IN INT iDANodeIndex | 115 | INT iDANodeIndex |
116 | ); | 116 | ); |
117 | 117 | ||
118 | 118 | ||
119 | static BOOL s_bHandleRxEncryption( | 119 | static BOOL s_bHandleRxEncryption( |
120 | IN PSDevice pDevice, | 120 | PSDevice pDevice, |
121 | IN PBYTE pbyFrame, | 121 | PBYTE pbyFrame, |
122 | IN UINT FrameSize, | 122 | UINT FrameSize, |
123 | IN PBYTE pbyRsr, | 123 | PBYTE pbyRsr, |
124 | OUT PBYTE pbyNewRsr, | 124 | OUT PBYTE pbyNewRsr, |
125 | OUT PSKeyItem *pKeyOut, | 125 | OUT PSKeyItem *pKeyOut, |
126 | int * pbExtIV, | 126 | int * pbExtIV, |
@@ -130,12 +130,12 @@ static BOOL s_bHandleRxEncryption( | |||
130 | 130 | ||
131 | static BOOL s_bHostWepRxEncryption( | 131 | static BOOL s_bHostWepRxEncryption( |
132 | 132 | ||
133 | IN PSDevice pDevice, | 133 | PSDevice pDevice, |
134 | IN PBYTE pbyFrame, | 134 | PBYTE pbyFrame, |
135 | IN UINT FrameSize, | 135 | UINT FrameSize, |
136 | IN PBYTE pbyRsr, | 136 | PBYTE pbyRsr, |
137 | IN BOOL bOnFly, | 137 | BOOL bOnFly, |
138 | IN PSKeyItem pKey, | 138 | PSKeyItem pKey, |
139 | OUT PBYTE pbyNewRsr, | 139 | OUT PBYTE pbyNewRsr, |
140 | int * pbExtIV, | 140 | int * pbExtIV, |
141 | OUT PWORD pwRxTSC15_0, | 141 | OUT PWORD pwRxTSC15_0, |
@@ -165,11 +165,11 @@ static BOOL s_bHostWepRxEncryption( | |||
165 | static | 165 | static |
166 | void | 166 | void |
167 | s_vProcessRxMACHeader ( | 167 | s_vProcessRxMACHeader ( |
168 | IN PSDevice pDevice, | 168 | PSDevice pDevice, |
169 | IN PBYTE pbyRxBufferAddr, | 169 | PBYTE pbyRxBufferAddr, |
170 | IN UINT cbPacketSize, | 170 | UINT cbPacketSize, |
171 | IN BOOL bIsWEP, | 171 | BOOL bIsWEP, |
172 | IN BOOL bExtIV, | 172 | BOOL bExtIV, |
173 | OUT PUINT pcbHeadSize | 173 | OUT PUINT pcbHeadSize |
174 | ) | 174 | ) |
175 | { | 175 | { |
@@ -249,7 +249,7 @@ s_vProcessRxMACHeader ( | |||
249 | 249 | ||
250 | 250 | ||
251 | 251 | ||
252 | static BYTE s_byGetRateIdx (IN BYTE byRate) | 252 | static BYTE s_byGetRateIdx (BYTE byRate) |
253 | { | 253 | { |
254 | BYTE byRateIdx; | 254 | BYTE byRateIdx; |
255 | 255 | ||
@@ -264,7 +264,7 @@ static BYTE s_byGetRateIdx (IN BYTE byRate) | |||
264 | static | 264 | static |
265 | void | 265 | void |
266 | s_vGetDASA ( | 266 | s_vGetDASA ( |
267 | IN PBYTE pbyRxBufferAddr, | 267 | PBYTE pbyRxBufferAddr, |
268 | OUT PUINT pcbHeaderSize, | 268 | OUT PUINT pcbHeaderSize, |
269 | OUT PSEthernetHeader psEthHeader | 269 | OUT PSEthernetHeader psEthHeader |
270 | ) | 270 | ) |
@@ -335,8 +335,8 @@ void MngWorkItem(void *Context) | |||
335 | 335 | ||
336 | BOOL | 336 | BOOL |
337 | device_receive_frame ( | 337 | device_receive_frame ( |
338 | IN PSDevice pDevice, | 338 | PSDevice pDevice, |
339 | IN PSRxDesc pCurrRD | 339 | PSRxDesc pCurrRD |
340 | ) | 340 | ) |
341 | { | 341 | { |
342 | 342 | ||
@@ -1039,9 +1039,9 @@ device_receive_frame ( | |||
1039 | 1039 | ||
1040 | 1040 | ||
1041 | static BOOL s_bAPModeRxCtl ( | 1041 | static BOOL s_bAPModeRxCtl ( |
1042 | IN PSDevice pDevice, | 1042 | PSDevice pDevice, |
1043 | IN PBYTE pbyFrame, | 1043 | PBYTE pbyFrame, |
1044 | IN INT iSANodeIndex | 1044 | INT iSANodeIndex |
1045 | ) | 1045 | ) |
1046 | { | 1046 | { |
1047 | PS802_11Header p802_11Header; | 1047 | PS802_11Header p802_11Header; |
@@ -1163,10 +1163,10 @@ static BOOL s_bAPModeRxCtl ( | |||
1163 | } | 1163 | } |
1164 | 1164 | ||
1165 | static BOOL s_bHandleRxEncryption ( | 1165 | static BOOL s_bHandleRxEncryption ( |
1166 | IN PSDevice pDevice, | 1166 | PSDevice pDevice, |
1167 | IN PBYTE pbyFrame, | 1167 | PBYTE pbyFrame, |
1168 | IN UINT FrameSize, | 1168 | UINT FrameSize, |
1169 | IN PBYTE pbyRsr, | 1169 | PBYTE pbyRsr, |
1170 | OUT PBYTE pbyNewRsr, | 1170 | OUT PBYTE pbyNewRsr, |
1171 | OUT PSKeyItem *pKeyOut, | 1171 | OUT PSKeyItem *pKeyOut, |
1172 | int * pbExtIV, | 1172 | int * pbExtIV, |
@@ -1309,12 +1309,12 @@ static BOOL s_bHandleRxEncryption ( | |||
1309 | 1309 | ||
1310 | 1310 | ||
1311 | static BOOL s_bHostWepRxEncryption ( | 1311 | static BOOL s_bHostWepRxEncryption ( |
1312 | IN PSDevice pDevice, | 1312 | PSDevice pDevice, |
1313 | IN PBYTE pbyFrame, | 1313 | PBYTE pbyFrame, |
1314 | IN UINT FrameSize, | 1314 | UINT FrameSize, |
1315 | IN PBYTE pbyRsr, | 1315 | PBYTE pbyRsr, |
1316 | IN BOOL bOnFly, | 1316 | BOOL bOnFly, |
1317 | IN PSKeyItem pKey, | 1317 | PSKeyItem pKey, |
1318 | OUT PBYTE pbyNewRsr, | 1318 | OUT PBYTE pbyNewRsr, |
1319 | int * pbExtIV, | 1319 | int * pbExtIV, |
1320 | OUT PWORD pwRxTSC15_0, | 1320 | OUT PWORD pwRxTSC15_0, |
@@ -1440,12 +1440,12 @@ static BOOL s_bHostWepRxEncryption ( | |||
1440 | 1440 | ||
1441 | 1441 | ||
1442 | static BOOL s_bAPModeRxData ( | 1442 | static BOOL s_bAPModeRxData ( |
1443 | IN PSDevice pDevice, | 1443 | PSDevice pDevice, |
1444 | IN struct sk_buff* skb, | 1444 | struct sk_buff* skb, |
1445 | IN UINT FrameSize, | 1445 | UINT FrameSize, |
1446 | IN UINT cbHeaderOffset, | 1446 | UINT cbHeaderOffset, |
1447 | IN INT iSANodeIndex, | 1447 | INT iSANodeIndex, |
1448 | IN INT iDANodeIndex | 1448 | INT iDANodeIndex |
1449 | ) | 1449 | ) |
1450 | { | 1450 | { |
1451 | PSMgmtObject pMgmt = pDevice->pMgmt; | 1451 | PSMgmtObject pMgmt = pDevice->pMgmt; |
diff --git a/drivers/staging/vt6655/dpc.h b/drivers/staging/vt6655/dpc.h index 4129c11e011..e574963fee0 100644 --- a/drivers/staging/vt6655/dpc.h +++ b/drivers/staging/vt6655/dpc.h | |||
@@ -43,8 +43,8 @@ | |||
43 | 43 | ||
44 | BOOL | 44 | BOOL |
45 | device_receive_frame ( | 45 | device_receive_frame ( |
46 | IN PSDevice pDevice, | 46 | PSDevice pDevice, |
47 | IN PSRxDesc pCurrRD | 47 | PSRxDesc pCurrRD |
48 | ); | 48 | ); |
49 | 49 | ||
50 | void MngWorkItem(void *Context); | 50 | void MngWorkItem(void *Context); |
diff --git a/drivers/staging/vt6655/ioctl.c b/drivers/staging/vt6655/ioctl.c index 1bd819946b8..e36cd30f642 100644 --- a/drivers/staging/vt6655/ioctl.c +++ b/drivers/staging/vt6655/ioctl.c | |||
@@ -716,10 +716,10 @@ if(wpa_Result.authenticated==TRUE) { | |||
716 | /* | 716 | /* |
717 | void | 717 | void |
718 | vConfigWEPKey ( | 718 | vConfigWEPKey ( |
719 | IN PSDevice pDevice, | 719 | PSDevice pDevice, |
720 | IN DWORD dwKeyIndex, | 720 | DWORD dwKeyIndex, |
721 | IN PBYTE pbyKey, | 721 | PBYTE pbyKey, |
722 | IN ULONG uKeyLength | 722 | ULONG uKeyLength |
723 | ) | 723 | ) |
724 | { | 724 | { |
725 | int ii; | 725 | int ii; |
diff --git a/drivers/staging/vt6655/ioctl.h b/drivers/staging/vt6655/ioctl.h index dc278aeb7ea..0d10c2a923c 100644 --- a/drivers/staging/vt6655/ioctl.h +++ b/drivers/staging/vt6655/ioctl.h | |||
@@ -44,10 +44,10 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq); | |||
44 | 44 | ||
45 | /* | 45 | /* |
46 | void vConfigWEPKey ( | 46 | void vConfigWEPKey ( |
47 | IN PSDevice pDevice, | 47 | PSDevice pDevice, |
48 | IN DWORD dwKeyIndex, | 48 | DWORD dwKeyIndex, |
49 | IN PBYTE pbyKey, | 49 | PBYTE pbyKey, |
50 | IN ULONG uKeyLength | 50 | ULONG uKeyLength |
51 | ); | 51 | ); |
52 | */ | 52 | */ |
53 | 53 | ||
diff --git a/drivers/staging/vt6655/key.c b/drivers/staging/vt6655/key.c index b40c400a23c..c702d509605 100644 --- a/drivers/staging/vt6655/key.c +++ b/drivers/staging/vt6655/key.c | |||
@@ -132,9 +132,9 @@ void KeyvInitTable (PSKeyManagement pTable, DWORD_PTR dwIoBase) | |||
132 | * | 132 | * |
133 | */ | 133 | */ |
134 | BOOL KeybGetKey ( | 134 | BOOL KeybGetKey ( |
135 | IN PSKeyManagement pTable, | 135 | PSKeyManagement pTable, |
136 | IN PBYTE pbyBSSID, | 136 | PBYTE pbyBSSID, |
137 | IN DWORD dwKeyIndex, | 137 | DWORD dwKeyIndex, |
138 | OUT PSKeyItem *pKey | 138 | OUT PSKeyItem *pKey |
139 | ) | 139 | ) |
140 | { | 140 | { |
@@ -518,9 +518,9 @@ void KeyvRemoveAllWEPKey ( | |||
518 | * | 518 | * |
519 | */ | 519 | */ |
520 | BOOL KeybGetTransmitKey ( | 520 | BOOL KeybGetTransmitKey ( |
521 | IN PSKeyManagement pTable, | 521 | PSKeyManagement pTable, |
522 | IN PBYTE pbyBSSID, | 522 | PBYTE pbyBSSID, |
523 | IN DWORD dwKeyType, | 523 | DWORD dwKeyType, |
524 | OUT PSKeyItem *pKey | 524 | OUT PSKeyItem *pKey |
525 | ) | 525 | ) |
526 | { | 526 | { |
@@ -598,7 +598,7 @@ BOOL KeybGetTransmitKey ( | |||
598 | * | 598 | * |
599 | */ | 599 | */ |
600 | BOOL KeybCheckPairewiseKey ( | 600 | BOOL KeybCheckPairewiseKey ( |
601 | IN PSKeyManagement pTable, | 601 | PSKeyManagement pTable, |
602 | OUT PSKeyItem *pKey | 602 | OUT PSKeyItem *pKey |
603 | ) | 603 | ) |
604 | { | 604 | { |
diff --git a/drivers/staging/vt6655/key.h b/drivers/staging/vt6655/key.h index 4cbd82f76e4..88be5b4f392 100644 --- a/drivers/staging/vt6655/key.h +++ b/drivers/staging/vt6655/key.h | |||
@@ -104,9 +104,9 @@ typedef struct tagSKeyManagement | |||
104 | void KeyvInitTable(PSKeyManagement pTable, DWORD_PTR dwIoBase); | 104 | void KeyvInitTable(PSKeyManagement pTable, DWORD_PTR dwIoBase); |
105 | 105 | ||
106 | BOOL KeybGetKey( | 106 | BOOL KeybGetKey( |
107 | IN PSKeyManagement pTable, | 107 | PSKeyManagement pTable, |
108 | IN PBYTE pbyBSSID, | 108 | PBYTE pbyBSSID, |
109 | IN DWORD dwKeyIndex, | 109 | DWORD dwKeyIndex, |
110 | OUT PSKeyItem *pKey | 110 | OUT PSKeyItem *pKey |
111 | ); | 111 | ); |
112 | 112 | ||
@@ -141,14 +141,14 @@ BOOL KeybRemoveKey( | |||
141 | ); | 141 | ); |
142 | 142 | ||
143 | BOOL KeybGetTransmitKey( | 143 | BOOL KeybGetTransmitKey( |
144 | IN PSKeyManagement pTable, | 144 | PSKeyManagement pTable, |
145 | IN PBYTE pbyBSSID, | 145 | PBYTE pbyBSSID, |
146 | IN DWORD dwKeyType, | 146 | DWORD dwKeyType, |
147 | OUT PSKeyItem *pKey | 147 | OUT PSKeyItem *pKey |
148 | ); | 148 | ); |
149 | 149 | ||
150 | BOOL KeybCheckPairewiseKey( | 150 | BOOL KeybCheckPairewiseKey( |
151 | IN PSKeyManagement pTable, | 151 | PSKeyManagement pTable, |
152 | OUT PSKeyItem *pKey | 152 | OUT PSKeyItem *pKey |
153 | ); | 153 | ); |
154 | 154 | ||
diff --git a/drivers/staging/vt6655/power.c b/drivers/staging/vt6655/power.c index 166e7fb638c..64c22c3e4bb 100644 --- a/drivers/staging/vt6655/power.c +++ b/drivers/staging/vt6655/power.c | |||
@@ -76,8 +76,8 @@ static int msglevel =MSG_LEVEL_INFO; | |||
76 | 76 | ||
77 | void | 77 | void |
78 | PSvEnablePowerSaving( | 78 | PSvEnablePowerSaving( |
79 | IN void *hDeviceContext, | 79 | void *hDeviceContext, |
80 | IN WORD wListenInterval | 80 | WORD wListenInterval |
81 | ) | 81 | ) |
82 | { | 82 | { |
83 | PSDevice pDevice = (PSDevice)hDeviceContext; | 83 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -118,7 +118,7 @@ PSvEnablePowerSaving( | |||
118 | pDevice->bEnablePSMode = TRUE; | 118 | pDevice->bEnablePSMode = TRUE; |
119 | 119 | ||
120 | if (pDevice->eOPMode == OP_MODE_ADHOC) { | 120 | if (pDevice->eOPMode == OP_MODE_ADHOC) { |
121 | // bMgrPrepareBeaconToSend((HANDLE)pDevice, pMgmt); | 121 | // bMgrPrepareBeaconToSend((void *)pDevice, pMgmt); |
122 | } | 122 | } |
123 | // We don't send null pkt in ad hoc mode since beacon will handle this. | 123 | // We don't send null pkt in ad hoc mode since beacon will handle this. |
124 | else if (pDevice->eOPMode == OP_MODE_INFRASTRUCTURE) { | 124 | else if (pDevice->eOPMode == OP_MODE_INFRASTRUCTURE) { |
@@ -146,7 +146,7 @@ PSvEnablePowerSaving( | |||
146 | 146 | ||
147 | void | 147 | void |
148 | PSvDisablePowerSaving( | 148 | PSvDisablePowerSaving( |
149 | IN void *hDeviceContext | 149 | void *hDeviceContext |
150 | ) | 150 | ) |
151 | { | 151 | { |
152 | PSDevice pDevice = (PSDevice)hDeviceContext; | 152 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -184,9 +184,9 @@ PSvDisablePowerSaving( | |||
184 | 184 | ||
185 | BOOL | 185 | BOOL |
186 | PSbConsiderPowerDown( | 186 | PSbConsiderPowerDown( |
187 | IN void *hDeviceContext, | 187 | void *hDeviceContext, |
188 | IN BOOL bCheckRxDMA, | 188 | BOOL bCheckRxDMA, |
189 | IN BOOL bCheckCountToWakeUp | 189 | BOOL bCheckCountToWakeUp |
190 | ) | 190 | ) |
191 | { | 191 | { |
192 | PSDevice pDevice = (PSDevice)hDeviceContext; | 192 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -252,7 +252,7 @@ PSbConsiderPowerDown( | |||
252 | 252 | ||
253 | void | 253 | void |
254 | PSvSendPSPOLL( | 254 | PSvSendPSPOLL( |
255 | IN void *hDeviceContext | 255 | void *hDeviceContext |
256 | ) | 256 | ) |
257 | { | 257 | { |
258 | PSDevice pDevice = (PSDevice)hDeviceContext; | 258 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -298,7 +298,7 @@ PSvSendPSPOLL( | |||
298 | -*/ | 298 | -*/ |
299 | BOOL | 299 | BOOL |
300 | PSbSendNullPacket( | 300 | PSbSendNullPacket( |
301 | IN void *hDeviceContext | 301 | void *hDeviceContext |
302 | ) | 302 | ) |
303 | { | 303 | { |
304 | PSDevice pDevice = (PSDevice)hDeviceContext; | 304 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -384,7 +384,7 @@ PSbSendNullPacket( | |||
384 | 384 | ||
385 | BOOL | 385 | BOOL |
386 | PSbIsNextTBTTWakeUp( | 386 | PSbIsNextTBTTWakeUp( |
387 | IN void *hDeviceContext | 387 | void *hDeviceContext |
388 | ) | 388 | ) |
389 | { | 389 | { |
390 | 390 | ||
diff --git a/drivers/staging/vt6655/power.h b/drivers/staging/vt6655/power.h index 769e0d1acd2..c0dbe216e97 100644 --- a/drivers/staging/vt6655/power.h +++ b/drivers/staging/vt6655/power.h | |||
@@ -45,40 +45,40 @@ | |||
45 | 45 | ||
46 | /*--------------------- Export Functions --------------------------*/ | 46 | /*--------------------- Export Functions --------------------------*/ |
47 | 47 | ||
48 | // IN PSDevice pDevice | 48 | // PSDevice pDevice |
49 | // IN PSDevice hDeviceContext | 49 | // PSDevice hDeviceContext |
50 | 50 | ||
51 | BOOL | 51 | BOOL |
52 | PSbConsiderPowerDown( | 52 | PSbConsiderPowerDown( |
53 | IN void *hDeviceContext, | 53 | void *hDeviceContext, |
54 | IN BOOL bCheckRxDMA, | 54 | BOOL bCheckRxDMA, |
55 | IN BOOL bCheckCountToWakeUp | 55 | BOOL bCheckCountToWakeUp |
56 | ); | 56 | ); |
57 | 57 | ||
58 | void | 58 | void |
59 | PSvDisablePowerSaving( | 59 | PSvDisablePowerSaving( |
60 | IN void *hDeviceContext | 60 | void *hDeviceContext |
61 | ); | 61 | ); |
62 | 62 | ||
63 | void | 63 | void |
64 | PSvEnablePowerSaving( | 64 | PSvEnablePowerSaving( |
65 | IN void *hDeviceContext, | 65 | void *hDeviceContext, |
66 | IN WORD wListenInterval | 66 | WORD wListenInterval |
67 | ); | 67 | ); |
68 | 68 | ||
69 | void | 69 | void |
70 | PSvSendPSPOLL( | 70 | PSvSendPSPOLL( |
71 | IN void *hDeviceContext | 71 | void *hDeviceContext |
72 | ); | 72 | ); |
73 | 73 | ||
74 | BOOL | 74 | BOOL |
75 | PSbSendNullPacket( | 75 | PSbSendNullPacket( |
76 | IN void *hDeviceContext | 76 | void *hDeviceContext |
77 | ); | 77 | ); |
78 | 78 | ||
79 | BOOL | 79 | BOOL |
80 | PSbIsNextTBTTWakeUp( | 80 | PSbIsNextTBTTWakeUp( |
81 | IN void *hDeviceContext | 81 | void *hDeviceContext |
82 | ); | 82 | ); |
83 | 83 | ||
84 | #endif //__POWER_H__ | 84 | #endif //__POWER_H__ |
diff --git a/drivers/staging/vt6655/rf.c b/drivers/staging/vt6655/rf.c index 29eb758c9e7..7cb86fe2eeb 100644 --- a/drivers/staging/vt6655/rf.c +++ b/drivers/staging/vt6655/rf.c | |||
@@ -808,7 +808,7 @@ BOOL RFbAL2230SelectChannel (DWORD_PTR dwIoBase, BYTE byChannel) | |||
808 | * | 808 | * |
809 | */ | 809 | */ |
810 | BOOL RFbInit ( | 810 | BOOL RFbInit ( |
811 | IN PSDevice pDevice | 811 | PSDevice pDevice |
812 | ) | 812 | ) |
813 | { | 813 | { |
814 | BOOL bResult = TRUE; | 814 | BOOL bResult = TRUE; |
@@ -846,7 +846,7 @@ BOOL bResult = TRUE; | |||
846 | * | 846 | * |
847 | */ | 847 | */ |
848 | BOOL RFbShutDown ( | 848 | BOOL RFbShutDown ( |
849 | IN PSDevice pDevice | 849 | PSDevice pDevice |
850 | ) | 850 | ) |
851 | { | 851 | { |
852 | BOOL bResult = TRUE; | 852 | BOOL bResult = TRUE; |
@@ -997,9 +997,9 @@ BOOL RFvWriteWakeProgSyn (DWORD_PTR dwIoBase, BYTE byRFType, UINT uChannel) | |||
997 | * | 997 | * |
998 | */ | 998 | */ |
999 | BOOL RFbSetPower ( | 999 | BOOL RFbSetPower ( |
1000 | IN PSDevice pDevice, | 1000 | PSDevice pDevice, |
1001 | IN UINT uRATE, | 1001 | UINT uRATE, |
1002 | IN UINT uCH | 1002 | UINT uCH |
1003 | ) | 1003 | ) |
1004 | { | 1004 | { |
1005 | BOOL bResult = TRUE; | 1005 | BOOL bResult = TRUE; |
@@ -1136,9 +1136,9 @@ BYTE byPwrdBm = 0; | |||
1136 | */ | 1136 | */ |
1137 | 1137 | ||
1138 | BOOL RFbRawSetPower ( | 1138 | BOOL RFbRawSetPower ( |
1139 | IN PSDevice pDevice, | 1139 | PSDevice pDevice, |
1140 | IN BYTE byPwr, | 1140 | BYTE byPwr, |
1141 | IN UINT uRATE | 1141 | UINT uRATE |
1142 | ) | 1142 | ) |
1143 | { | 1143 | { |
1144 | BOOL bResult = TRUE; | 1144 | BOOL bResult = TRUE; |
@@ -1203,8 +1203,8 @@ DWORD dwMax7230Pwr = 0; | |||
1203 | -*/ | 1203 | -*/ |
1204 | void | 1204 | void |
1205 | RFvRSSITodBm ( | 1205 | RFvRSSITodBm ( |
1206 | IN PSDevice pDevice, | 1206 | PSDevice pDevice, |
1207 | IN BYTE byCurrRSSI, | 1207 | BYTE byCurrRSSI, |
1208 | long * pldBm | 1208 | long * pldBm |
1209 | ) | 1209 | ) |
1210 | { | 1210 | { |
diff --git a/drivers/staging/vt6655/rf.h b/drivers/staging/vt6655/rf.h index e6e6ca58633..25dfc7942f6 100644 --- a/drivers/staging/vt6655/rf.h +++ b/drivers/staging/vt6655/rf.h | |||
@@ -79,20 +79,20 @@ | |||
79 | BOOL IFRFbWriteEmbeded(DWORD_PTR dwIoBase, DWORD dwData); | 79 | BOOL IFRFbWriteEmbeded(DWORD_PTR dwIoBase, DWORD dwData); |
80 | BOOL RFbSelectChannel(DWORD_PTR dwIoBase, BYTE byRFType, BYTE byChannel); | 80 | BOOL RFbSelectChannel(DWORD_PTR dwIoBase, BYTE byRFType, BYTE byChannel); |
81 | BOOL RFbInit ( | 81 | BOOL RFbInit ( |
82 | IN PSDevice pDevice | 82 | PSDevice pDevice |
83 | ); | 83 | ); |
84 | BOOL RFvWriteWakeProgSyn(DWORD_PTR dwIoBase, BYTE byRFType, UINT uChannel); | 84 | BOOL RFvWriteWakeProgSyn(DWORD_PTR dwIoBase, BYTE byRFType, UINT uChannel); |
85 | BOOL RFbSetPower(PSDevice pDevice, UINT uRATE, UINT uCH); | 85 | BOOL RFbSetPower(PSDevice pDevice, UINT uRATE, UINT uCH); |
86 | BOOL RFbRawSetPower( | 86 | BOOL RFbRawSetPower( |
87 | IN PSDevice pDevice, | 87 | PSDevice pDevice, |
88 | IN BYTE byPwr, | 88 | BYTE byPwr, |
89 | IN UINT uRATE | 89 | UINT uRATE |
90 | ); | 90 | ); |
91 | 91 | ||
92 | void | 92 | void |
93 | RFvRSSITodBm( | 93 | RFvRSSITodBm( |
94 | IN PSDevice pDevice, | 94 | PSDevice pDevice, |
95 | IN BYTE byCurrRSSI, | 95 | BYTE byCurrRSSI, |
96 | long *pldBm | 96 | long *pldBm |
97 | ); | 97 | ); |
98 | 98 | ||
diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index 8d1772e70ab..885741a774b 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c | |||
@@ -117,12 +117,12 @@ const WORD wFB_Opt1[2][5] = { | |||
117 | static | 117 | static |
118 | void | 118 | void |
119 | s_vFillTxKey( | 119 | s_vFillTxKey( |
120 | IN PSDevice pDevice, | 120 | PSDevice pDevice, |
121 | IN PBYTE pbyBuf, | 121 | PBYTE pbyBuf, |
122 | IN PBYTE pbyIVHead, | 122 | PBYTE pbyIVHead, |
123 | IN PSKeyItem pTransmitKey, | 123 | PSKeyItem pTransmitKey, |
124 | IN PBYTE pbyHdrBuf, | 124 | PBYTE pbyHdrBuf, |
125 | IN WORD wPayloadLen, | 125 | WORD wPayloadLen, |
126 | OUT PBYTE pMICHDR | 126 | OUT PBYTE pMICHDR |
127 | ); | 127 | ); |
128 | 128 | ||
@@ -131,59 +131,59 @@ s_vFillTxKey( | |||
131 | static | 131 | static |
132 | void | 132 | void |
133 | s_vFillRTSHead( | 133 | s_vFillRTSHead( |
134 | IN PSDevice pDevice, | 134 | PSDevice pDevice, |
135 | IN BYTE byPktType, | 135 | BYTE byPktType, |
136 | IN void * pvRTS, | 136 | void * pvRTS, |
137 | IN UINT cbFrameLength, | 137 | UINT cbFrameLength, |
138 | IN BOOL bNeedAck, | 138 | BOOL bNeedAck, |
139 | IN BOOL bDisCRC, | 139 | BOOL bDisCRC, |
140 | IN PSEthernetHeader psEthHeader, | 140 | PSEthernetHeader psEthHeader, |
141 | IN WORD wCurrentRate, | 141 | WORD wCurrentRate, |
142 | IN BYTE byFBOption | 142 | BYTE byFBOption |
143 | ); | 143 | ); |
144 | 144 | ||
145 | static | 145 | static |
146 | void | 146 | void |
147 | s_vGenerateTxParameter( | 147 | s_vGenerateTxParameter( |
148 | IN PSDevice pDevice, | 148 | PSDevice pDevice, |
149 | IN BYTE byPktType, | 149 | BYTE byPktType, |
150 | IN void * pTxBufHead, | 150 | void * pTxBufHead, |
151 | IN void * pvRrvTime, | 151 | void * pvRrvTime, |
152 | IN void * pvRTS, | 152 | void * pvRTS, |
153 | IN void * pvCTS, | 153 | void * pvCTS, |
154 | IN UINT cbFrameSize, | 154 | UINT cbFrameSize, |
155 | IN BOOL bNeedACK, | 155 | BOOL bNeedACK, |
156 | IN UINT uDMAIdx, | 156 | UINT uDMAIdx, |
157 | IN PSEthernetHeader psEthHeader, | 157 | PSEthernetHeader psEthHeader, |
158 | IN WORD wCurrentRate | 158 | WORD wCurrentRate |
159 | ); | 159 | ); |
160 | 160 | ||
161 | 161 | ||
162 | 162 | ||
163 | static void s_vFillFragParameter( | 163 | static void s_vFillFragParameter( |
164 | IN PSDevice pDevice, | 164 | PSDevice pDevice, |
165 | IN PBYTE pbyBuffer, | 165 | PBYTE pbyBuffer, |
166 | IN UINT uTxType, | 166 | UINT uTxType, |
167 | IN void * pvtdCurr, | 167 | void * pvtdCurr, |
168 | IN WORD wFragType, | 168 | WORD wFragType, |
169 | IN UINT cbReqCount | 169 | UINT cbReqCount |
170 | ); | 170 | ); |
171 | 171 | ||
172 | 172 | ||
173 | static | 173 | static |
174 | UINT | 174 | UINT |
175 | s_cbFillTxBufHead ( | 175 | s_cbFillTxBufHead ( |
176 | IN PSDevice pDevice, | 176 | PSDevice pDevice, |
177 | IN BYTE byPktType, | 177 | BYTE byPktType, |
178 | IN PBYTE pbyTxBufferAddr, | 178 | PBYTE pbyTxBufferAddr, |
179 | IN UINT cbFrameBodySize, | 179 | UINT cbFrameBodySize, |
180 | IN UINT uDMAIdx, | 180 | UINT uDMAIdx, |
181 | IN PSTxDesc pHeadTD, | 181 | PSTxDesc pHeadTD, |
182 | IN PSEthernetHeader psEthHeader, | 182 | PSEthernetHeader psEthHeader, |
183 | IN PBYTE pPacket, | 183 | PBYTE pPacket, |
184 | IN BOOL bNeedEncrypt, | 184 | BOOL bNeedEncrypt, |
185 | IN PSKeyItem pTransmitKey, | 185 | PSKeyItem pTransmitKey, |
186 | IN UINT uNodeIndex, | 186 | UINT uNodeIndex, |
187 | OUT PUINT puMACfragNum | 187 | OUT PUINT puMACfragNum |
188 | ); | 188 | ); |
189 | 189 | ||
@@ -191,17 +191,17 @@ s_cbFillTxBufHead ( | |||
191 | static | 191 | static |
192 | UINT | 192 | UINT |
193 | s_uFillDataHead ( | 193 | s_uFillDataHead ( |
194 | IN PSDevice pDevice, | 194 | PSDevice pDevice, |
195 | IN BYTE byPktType, | 195 | BYTE byPktType, |
196 | IN void * pTxDataHead, | 196 | void * pTxDataHead, |
197 | IN UINT cbFrameLength, | 197 | UINT cbFrameLength, |
198 | IN UINT uDMAIdx, | 198 | UINT uDMAIdx, |
199 | IN BOOL bNeedAck, | 199 | BOOL bNeedAck, |
200 | IN UINT uFragIdx, | 200 | UINT uFragIdx, |
201 | IN UINT cbLastFragmentSize, | 201 | UINT cbLastFragmentSize, |
202 | IN UINT uMACfragNum, | 202 | UINT uMACfragNum, |
203 | IN BYTE byFBOption, | 203 | BYTE byFBOption, |
204 | IN WORD wCurrentRate | 204 | WORD wCurrentRate |
205 | ); | 205 | ); |
206 | 206 | ||
207 | 207 | ||
@@ -212,12 +212,12 @@ s_uFillDataHead ( | |||
212 | static | 212 | static |
213 | void | 213 | void |
214 | s_vFillTxKey ( | 214 | s_vFillTxKey ( |
215 | IN PSDevice pDevice, | 215 | PSDevice pDevice, |
216 | IN PBYTE pbyBuf, | 216 | PBYTE pbyBuf, |
217 | IN PBYTE pbyIVHead, | 217 | PBYTE pbyIVHead, |
218 | IN PSKeyItem pTransmitKey, | 218 | PSKeyItem pTransmitKey, |
219 | IN PBYTE pbyHdrBuf, | 219 | PBYTE pbyHdrBuf, |
220 | IN WORD wPayloadLen, | 220 | WORD wPayloadLen, |
221 | OUT PBYTE pMICHDR | 221 | OUT PBYTE pMICHDR |
222 | ) | 222 | ) |
223 | { | 223 | { |
@@ -330,10 +330,10 @@ s_vFillTxKey ( | |||
330 | static | 330 | static |
331 | void | 331 | void |
332 | s_vSWencryption ( | 332 | s_vSWencryption ( |
333 | IN PSDevice pDevice, | 333 | PSDevice pDevice, |
334 | IN PSKeyItem pTransmitKey, | 334 | PSKeyItem pTransmitKey, |
335 | IN PBYTE pbyPayloadHead, | 335 | PBYTE pbyPayloadHead, |
336 | IN WORD wPayloadSize | 336 | WORD wPayloadSize |
337 | ) | 337 | ) |
338 | { | 338 | { |
339 | UINT cbICVlen = 4; | 339 | UINT cbICVlen = 4; |
@@ -379,11 +379,11 @@ s_vSWencryption ( | |||
379 | static | 379 | static |
380 | UINT | 380 | UINT |
381 | s_uGetTxRsvTime ( | 381 | s_uGetTxRsvTime ( |
382 | IN PSDevice pDevice, | 382 | PSDevice pDevice, |
383 | IN BYTE byPktType, | 383 | BYTE byPktType, |
384 | IN UINT cbFrameLength, | 384 | UINT cbFrameLength, |
385 | IN WORD wRate, | 385 | WORD wRate, |
386 | IN BOOL bNeedAck | 386 | BOOL bNeedAck |
387 | ) | 387 | ) |
388 | { | 388 | { |
389 | UINT uDataTime, uAckTime; | 389 | UINT uDataTime, uAckTime; |
@@ -410,11 +410,11 @@ s_uGetTxRsvTime ( | |||
410 | static | 410 | static |
411 | UINT | 411 | UINT |
412 | s_uGetRTSCTSRsvTime ( | 412 | s_uGetRTSCTSRsvTime ( |
413 | IN PSDevice pDevice, | 413 | PSDevice pDevice, |
414 | IN BYTE byRTSRsvType, | 414 | BYTE byRTSRsvType, |
415 | IN BYTE byPktType, | 415 | BYTE byPktType, |
416 | IN UINT cbFrameLength, | 416 | UINT cbFrameLength, |
417 | IN WORD wCurrentRate | 417 | WORD wCurrentRate |
418 | ) | 418 | ) |
419 | { | 419 | { |
420 | UINT uRrvTime , uRTSTime, uCTSTime, uAckTime, uDataTime; | 420 | UINT uRrvTime , uRTSTime, uCTSTime, uAckTime, uDataTime; |
@@ -452,16 +452,16 @@ s_uGetRTSCTSRsvTime ( | |||
452 | static | 452 | static |
453 | UINT | 453 | UINT |
454 | s_uGetDataDuration ( | 454 | s_uGetDataDuration ( |
455 | IN PSDevice pDevice, | 455 | PSDevice pDevice, |
456 | IN BYTE byDurType, | 456 | BYTE byDurType, |
457 | IN UINT cbFrameLength, | 457 | UINT cbFrameLength, |
458 | IN BYTE byPktType, | 458 | BYTE byPktType, |
459 | IN WORD wRate, | 459 | WORD wRate, |
460 | IN BOOL bNeedAck, | 460 | BOOL bNeedAck, |
461 | IN UINT uFragIdx, | 461 | UINT uFragIdx, |
462 | IN UINT cbLastFragmentSize, | 462 | UINT cbLastFragmentSize, |
463 | IN UINT uMACfragNum, | 463 | UINT uMACfragNum, |
464 | IN BYTE byFBOption | 464 | BYTE byFBOption |
465 | ) | 465 | ) |
466 | { | 466 | { |
467 | BOOL bLastFrag = 0; | 467 | BOOL bLastFrag = 0; |
@@ -623,13 +623,13 @@ s_uGetDataDuration ( | |||
623 | static | 623 | static |
624 | UINT | 624 | UINT |
625 | s_uGetRTSCTSDuration ( | 625 | s_uGetRTSCTSDuration ( |
626 | IN PSDevice pDevice, | 626 | PSDevice pDevice, |
627 | IN BYTE byDurType, | 627 | BYTE byDurType, |
628 | IN UINT cbFrameLength, | 628 | UINT cbFrameLength, |
629 | IN BYTE byPktType, | 629 | BYTE byPktType, |
630 | IN WORD wRate, | 630 | WORD wRate, |
631 | IN BOOL bNeedAck, | 631 | BOOL bNeedAck, |
632 | IN BYTE byFBOption | 632 | BYTE byFBOption |
633 | ) | 633 | ) |
634 | { | 634 | { |
635 | UINT uCTSTime = 0, uDurTime = 0; | 635 | UINT uCTSTime = 0, uDurTime = 0; |
@@ -721,17 +721,17 @@ s_uGetRTSCTSDuration ( | |||
721 | static | 721 | static |
722 | UINT | 722 | UINT |
723 | s_uFillDataHead ( | 723 | s_uFillDataHead ( |
724 | IN PSDevice pDevice, | 724 | PSDevice pDevice, |
725 | IN BYTE byPktType, | 725 | BYTE byPktType, |
726 | IN void * pTxDataHead, | 726 | void * pTxDataHead, |
727 | IN UINT cbFrameLength, | 727 | UINT cbFrameLength, |
728 | IN UINT uDMAIdx, | 728 | UINT uDMAIdx, |
729 | IN BOOL bNeedAck, | 729 | BOOL bNeedAck, |
730 | IN UINT uFragIdx, | 730 | UINT uFragIdx, |
731 | IN UINT cbLastFragmentSize, | 731 | UINT cbLastFragmentSize, |
732 | IN UINT uMACfragNum, | 732 | UINT uMACfragNum, |
733 | IN BYTE byFBOption, | 733 | BYTE byFBOption, |
734 | IN WORD wCurrentRate | 734 | WORD wCurrentRate |
735 | ) | 735 | ) |
736 | { | 736 | { |
737 | WORD wLen = 0x0000; | 737 | WORD wLen = 0x0000; |
@@ -853,15 +853,15 @@ s_uFillDataHead ( | |||
853 | static | 853 | static |
854 | void | 854 | void |
855 | s_vFillRTSHead ( | 855 | s_vFillRTSHead ( |
856 | IN PSDevice pDevice, | 856 | PSDevice pDevice, |
857 | IN BYTE byPktType, | 857 | BYTE byPktType, |
858 | IN void * pvRTS, | 858 | void * pvRTS, |
859 | IN UINT cbFrameLength, | 859 | UINT cbFrameLength, |
860 | IN BOOL bNeedAck, | 860 | BOOL bNeedAck, |
861 | IN BOOL bDisCRC, | 861 | BOOL bDisCRC, |
862 | IN PSEthernetHeader psEthHeader, | 862 | PSEthernetHeader psEthHeader, |
863 | IN WORD wCurrentRate, | 863 | WORD wCurrentRate, |
864 | IN BYTE byFBOption | 864 | BYTE byFBOption |
865 | ) | 865 | ) |
866 | { | 866 | { |
867 | UINT uRTSFrameLen = 20; | 867 | UINT uRTSFrameLen = 20; |
@@ -1047,15 +1047,15 @@ s_vFillRTSHead ( | |||
1047 | static | 1047 | static |
1048 | void | 1048 | void |
1049 | s_vFillCTSHead ( | 1049 | s_vFillCTSHead ( |
1050 | IN PSDevice pDevice, | 1050 | PSDevice pDevice, |
1051 | IN UINT uDMAIdx, | 1051 | UINT uDMAIdx, |
1052 | IN BYTE byPktType, | 1052 | BYTE byPktType, |
1053 | IN void * pvCTS, | 1053 | void * pvCTS, |
1054 | IN UINT cbFrameLength, | 1054 | UINT cbFrameLength, |
1055 | IN BOOL bNeedAck, | 1055 | BOOL bNeedAck, |
1056 | IN BOOL bDisCRC, | 1056 | BOOL bDisCRC, |
1057 | IN WORD wCurrentRate, | 1057 | WORD wCurrentRate, |
1058 | IN BYTE byFBOption | 1058 | BYTE byFBOption |
1059 | ) | 1059 | ) |
1060 | { | 1060 | { |
1061 | UINT uCTSFrameLen = 14; | 1061 | UINT uCTSFrameLen = 14; |
@@ -1152,17 +1152,17 @@ s_vFillCTSHead ( | |||
1152 | static | 1152 | static |
1153 | void | 1153 | void |
1154 | s_vGenerateTxParameter ( | 1154 | s_vGenerateTxParameter ( |
1155 | IN PSDevice pDevice, | 1155 | PSDevice pDevice, |
1156 | IN BYTE byPktType, | 1156 | BYTE byPktType, |
1157 | IN void * pTxBufHead, | 1157 | void * pTxBufHead, |
1158 | IN void * pvRrvTime, | 1158 | void * pvRrvTime, |
1159 | IN void * pvRTS, | 1159 | void * pvRTS, |
1160 | IN void * pvCTS, | 1160 | void * pvCTS, |
1161 | IN UINT cbFrameSize, | 1161 | UINT cbFrameSize, |
1162 | IN BOOL bNeedACK, | 1162 | BOOL bNeedACK, |
1163 | IN UINT uDMAIdx, | 1163 | UINT uDMAIdx, |
1164 | IN PSEthernetHeader psEthHeader, | 1164 | PSEthernetHeader psEthHeader, |
1165 | IN WORD wCurrentRate | 1165 | WORD wCurrentRate |
1166 | ) | 1166 | ) |
1167 | { | 1167 | { |
1168 | UINT cbMACHdLen = WLAN_HDR_ADDR3_LEN; //24 | 1168 | UINT cbMACHdLen = WLAN_HDR_ADDR3_LEN; //24 |
@@ -1270,12 +1270,12 @@ s_vGenerateTxParameter ( | |||
1270 | static | 1270 | static |
1271 | void | 1271 | void |
1272 | s_vFillFragParameter( | 1272 | s_vFillFragParameter( |
1273 | IN PSDevice pDevice, | 1273 | PSDevice pDevice, |
1274 | IN PBYTE pbyBuffer, | 1274 | PBYTE pbyBuffer, |
1275 | IN UINT uTxType, | 1275 | UINT uTxType, |
1276 | IN void * pvtdCurr, | 1276 | void * pvtdCurr, |
1277 | IN WORD wFragType, | 1277 | WORD wFragType, |
1278 | IN UINT cbReqCount | 1278 | UINT cbReqCount |
1279 | ) | 1279 | ) |
1280 | { | 1280 | { |
1281 | PSTxBufHead pTxBufHead = (PSTxBufHead) pbyBuffer; | 1281 | PSTxBufHead pTxBufHead = (PSTxBufHead) pbyBuffer; |
@@ -1318,17 +1318,17 @@ s_vFillFragParameter( | |||
1318 | static | 1318 | static |
1319 | UINT | 1319 | UINT |
1320 | s_cbFillTxBufHead ( | 1320 | s_cbFillTxBufHead ( |
1321 | IN PSDevice pDevice, | 1321 | PSDevice pDevice, |
1322 | IN BYTE byPktType, | 1322 | BYTE byPktType, |
1323 | IN PBYTE pbyTxBufferAddr, | 1323 | PBYTE pbyTxBufferAddr, |
1324 | IN UINT cbFrameBodySize, | 1324 | UINT cbFrameBodySize, |
1325 | IN UINT uDMAIdx, | 1325 | UINT uDMAIdx, |
1326 | IN PSTxDesc pHeadTD, | 1326 | PSTxDesc pHeadTD, |
1327 | IN PSEthernetHeader psEthHeader, | 1327 | PSEthernetHeader psEthHeader, |
1328 | IN PBYTE pPacket, | 1328 | PBYTE pPacket, |
1329 | IN BOOL bNeedEncrypt, | 1329 | BOOL bNeedEncrypt, |
1330 | IN PSKeyItem pTransmitKey, | 1330 | PSKeyItem pTransmitKey, |
1331 | IN UINT uNodeIndex, | 1331 | UINT uNodeIndex, |
1332 | OUT PUINT puMACfragNum | 1332 | OUT PUINT puMACfragNum |
1333 | ) | 1333 | ) |
1334 | { | 1334 | { |
@@ -2095,17 +2095,17 @@ s_cbFillTxBufHead ( | |||
2095 | 2095 | ||
2096 | void | 2096 | void |
2097 | vGenerateFIFOHeader ( | 2097 | vGenerateFIFOHeader ( |
2098 | IN PSDevice pDevice, | 2098 | PSDevice pDevice, |
2099 | IN BYTE byPktType, | 2099 | BYTE byPktType, |
2100 | IN PBYTE pbyTxBufferAddr, | 2100 | PBYTE pbyTxBufferAddr, |
2101 | IN BOOL bNeedEncrypt, | 2101 | BOOL bNeedEncrypt, |
2102 | IN UINT cbPayloadSize, | 2102 | UINT cbPayloadSize, |
2103 | IN UINT uDMAIdx, | 2103 | UINT uDMAIdx, |
2104 | IN PSTxDesc pHeadTD, | 2104 | PSTxDesc pHeadTD, |
2105 | IN PSEthernetHeader psEthHeader, | 2105 | PSEthernetHeader psEthHeader, |
2106 | IN PBYTE pPacket, | 2106 | PBYTE pPacket, |
2107 | IN PSKeyItem pTransmitKey, | 2107 | PSKeyItem pTransmitKey, |
2108 | IN UINT uNodeIndex, | 2108 | UINT uNodeIndex, |
2109 | OUT PUINT puMACfragNum, | 2109 | OUT PUINT puMACfragNum, |
2110 | OUT PUINT pcbHeaderSize | 2110 | OUT PUINT pcbHeaderSize |
2111 | ) | 2111 | ) |
@@ -2266,14 +2266,14 @@ vGenerateFIFOHeader ( | |||
2266 | 2266 | ||
2267 | void | 2267 | void |
2268 | vGenerateMACHeader ( | 2268 | vGenerateMACHeader ( |
2269 | IN PSDevice pDevice, | 2269 | PSDevice pDevice, |
2270 | IN PBYTE pbyBufferAddr, | 2270 | PBYTE pbyBufferAddr, |
2271 | IN WORD wDuration, | 2271 | WORD wDuration, |
2272 | IN PSEthernetHeader psEthHeader, | 2272 | PSEthernetHeader psEthHeader, |
2273 | IN BOOL bNeedEncrypt, | 2273 | BOOL bNeedEncrypt, |
2274 | IN WORD wFragType, | 2274 | WORD wFragType, |
2275 | IN UINT uDMAIdx, | 2275 | UINT uDMAIdx, |
2276 | IN UINT uFragIdx | 2276 | UINT uFragIdx |
2277 | ) | 2277 | ) |
2278 | { | 2278 | { |
2279 | PS802_11Header pMACHeader = (PS802_11Header)pbyBufferAddr; | 2279 | PS802_11Header pMACHeader = (PS802_11Header)pbyBufferAddr; |
@@ -2738,10 +2738,10 @@ CMD_STATUS csBeacon_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket) { | |||
2738 | 2738 | ||
2739 | UINT | 2739 | UINT |
2740 | cbGetFragCount ( | 2740 | cbGetFragCount ( |
2741 | IN PSDevice pDevice, | 2741 | PSDevice pDevice, |
2742 | IN PSKeyItem pTransmitKey, | 2742 | PSKeyItem pTransmitKey, |
2743 | IN UINT cbFrameBodySize, | 2743 | UINT cbFrameBodySize, |
2744 | IN PSEthernetHeader psEthHeader | 2744 | PSEthernetHeader psEthHeader |
2745 | ) | 2745 | ) |
2746 | { | 2746 | { |
2747 | UINT cbMACHdLen; | 2747 | UINT cbMACHdLen; |
diff --git a/drivers/staging/vt6655/rxtx.h b/drivers/staging/vt6655/rxtx.h index 4c2df48be37..75988c74a18 100644 --- a/drivers/staging/vt6655/rxtx.h +++ b/drivers/staging/vt6655/rxtx.h | |||
@@ -41,20 +41,20 @@ | |||
41 | 41 | ||
42 | /* | 42 | /* |
43 | void vGenerateMACHeader( | 43 | void vGenerateMACHeader( |
44 | IN PSDevice pDevice, | 44 | PSDevice pDevice, |
45 | IN DWORD dwTxBufferAddr, | 45 | DWORD dwTxBufferAddr, |
46 | IN PBYTE pbySkbData, | 46 | PBYTE pbySkbData, |
47 | IN UINT cbPacketSize, | 47 | UINT cbPacketSize, |
48 | IN BOOL bDMA0Used, | 48 | BOOL bDMA0Used, |
49 | OUT PUINT pcbHeadSize, | 49 | OUT PUINT pcbHeadSize, |
50 | OUT PUINT pcbAppendPayload | 50 | OUT PUINT pcbAppendPayload |
51 | ); | 51 | ); |
52 | 52 | ||
53 | void vProcessRxMACHeader ( | 53 | void vProcessRxMACHeader ( |
54 | IN PSDevice pDevice, | 54 | PSDevice pDevice, |
55 | IN DWORD dwRxBufferAddr, | 55 | DWORD dwRxBufferAddr, |
56 | IN UINT cbPacketSize, | 56 | UINT cbPacketSize, |
57 | IN BOOL bIsWEP, | 57 | BOOL bIsWEP, |
58 | OUT PUINT pcbHeadSize | 58 | OUT PUINT pcbHeadSize |
59 | ); | 59 | ); |
60 | */ | 60 | */ |
@@ -62,39 +62,39 @@ void vProcessRxMACHeader ( | |||
62 | 62 | ||
63 | void | 63 | void |
64 | vGenerateMACHeader ( | 64 | vGenerateMACHeader ( |
65 | IN PSDevice pDevice, | 65 | PSDevice pDevice, |
66 | IN PBYTE pbyBufferAddr, | 66 | PBYTE pbyBufferAddr, |
67 | IN WORD wDuration, | 67 | WORD wDuration, |
68 | IN PSEthernetHeader psEthHeader, | 68 | PSEthernetHeader psEthHeader, |
69 | IN BOOL bNeedEncrypt, | 69 | BOOL bNeedEncrypt, |
70 | IN WORD wFragType, | 70 | WORD wFragType, |
71 | IN UINT uDMAIdx, | 71 | UINT uDMAIdx, |
72 | IN UINT uFragIdx | 72 | UINT uFragIdx |
73 | ); | 73 | ); |
74 | 74 | ||
75 | 75 | ||
76 | UINT | 76 | UINT |
77 | cbGetFragCount( | 77 | cbGetFragCount( |
78 | IN PSDevice pDevice, | 78 | PSDevice pDevice, |
79 | IN PSKeyItem pTransmitKey, | 79 | PSKeyItem pTransmitKey, |
80 | IN UINT cbFrameBodySize, | 80 | UINT cbFrameBodySize, |
81 | IN PSEthernetHeader psEthHeader | 81 | PSEthernetHeader psEthHeader |
82 | ); | 82 | ); |
83 | 83 | ||
84 | 84 | ||
85 | void | 85 | void |
86 | vGenerateFIFOHeader ( | 86 | vGenerateFIFOHeader ( |
87 | IN PSDevice pDevice, | 87 | PSDevice pDevice, |
88 | IN BYTE byPktTyp, | 88 | BYTE byPktTyp, |
89 | IN PBYTE pbyTxBufferAddr, | 89 | PBYTE pbyTxBufferAddr, |
90 | IN BOOL bNeedEncrypt, | 90 | BOOL bNeedEncrypt, |
91 | IN UINT cbPayloadSize, | 91 | UINT cbPayloadSize, |
92 | IN UINT uDMAIdx, | 92 | UINT uDMAIdx, |
93 | IN PSTxDesc pHeadTD, | 93 | PSTxDesc pHeadTD, |
94 | IN PSEthernetHeader psEthHeader, | 94 | PSEthernetHeader psEthHeader, |
95 | IN PBYTE pPacket, | 95 | PBYTE pPacket, |
96 | IN PSKeyItem pTransmitKey, | 96 | PSKeyItem pTransmitKey, |
97 | IN UINT uNodeIndex, | 97 | UINT uNodeIndex, |
98 | OUT PUINT puMACfragNum, | 98 | OUT PUINT puMACfragNum, |
99 | OUT PUINT pcbHeaderSize | 99 | OUT PUINT pcbHeaderSize |
100 | ); | 100 | ); |
diff --git a/drivers/staging/vt6655/ttype.h b/drivers/staging/vt6655/ttype.h index b2dff3a7b77..2921083a9f2 100644 --- a/drivers/staging/vt6655/ttype.h +++ b/drivers/staging/vt6655/ttype.h | |||
@@ -33,10 +33,6 @@ | |||
33 | 33 | ||
34 | /******* Common definitions and typedefs ***********************************/ | 34 | /******* Common definitions and typedefs ***********************************/ |
35 | 35 | ||
36 | #ifndef IN | ||
37 | #define IN | ||
38 | #endif | ||
39 | |||
40 | #ifndef OUT | 36 | #ifndef OUT |
41 | #define OUT | 37 | #define OUT |
42 | #endif | 38 | #endif |
diff --git a/drivers/staging/vt6655/vntwifi.c b/drivers/staging/vt6655/vntwifi.c index 03975dabb8d..bd3b2afe2cf 100644 --- a/drivers/staging/vt6655/vntwifi.c +++ b/drivers/staging/vt6655/vntwifi.c | |||
@@ -71,8 +71,8 @@ | |||
71 | -*/ | 71 | -*/ |
72 | void | 72 | void |
73 | VNTWIFIvSetOPMode ( | 73 | VNTWIFIvSetOPMode ( |
74 | IN void *pMgmtHandle, | 74 | void *pMgmtHandle, |
75 | IN WMAC_CONFIG_MODE eOPMode | 75 | WMAC_CONFIG_MODE eOPMode |
76 | ) | 76 | ) |
77 | { | 77 | { |
78 | PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; | 78 | PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; |
@@ -100,10 +100,10 @@ VNTWIFIvSetOPMode ( | |||
100 | -*/ | 100 | -*/ |
101 | void | 101 | void |
102 | VNTWIFIvSetIBSSParameter ( | 102 | VNTWIFIvSetIBSSParameter ( |
103 | IN void *pMgmtHandle, | 103 | void *pMgmtHandle, |
104 | IN WORD wBeaconPeriod, | 104 | WORD wBeaconPeriod, |
105 | IN WORD wATIMWindow, | 105 | WORD wATIMWindow, |
106 | IN UINT uChannel | 106 | UINT uChannel |
107 | ) | 107 | ) |
108 | { | 108 | { |
109 | PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; | 109 | PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; |
@@ -129,7 +129,7 @@ VNTWIFIvSetIBSSParameter ( | |||
129 | -*/ | 129 | -*/ |
130 | PWLAN_IE_SSID | 130 | PWLAN_IE_SSID |
131 | VNTWIFIpGetCurrentSSID ( | 131 | VNTWIFIpGetCurrentSSID ( |
132 | IN void *pMgmtHandle | 132 | void *pMgmtHandle |
133 | ) | 133 | ) |
134 | { | 134 | { |
135 | PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; | 135 | PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; |
@@ -152,7 +152,7 @@ VNTWIFIpGetCurrentSSID ( | |||
152 | -*/ | 152 | -*/ |
153 | UINT | 153 | UINT |
154 | VNTWIFIpGetCurrentChannel ( | 154 | VNTWIFIpGetCurrentChannel ( |
155 | IN void *pMgmtHandle | 155 | void *pMgmtHandle |
156 | ) | 156 | ) |
157 | { | 157 | { |
158 | PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; | 158 | PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; |
@@ -178,7 +178,7 @@ VNTWIFIpGetCurrentChannel ( | |||
178 | -*/ | 178 | -*/ |
179 | WORD | 179 | WORD |
180 | VNTWIFIwGetAssocID ( | 180 | VNTWIFIwGetAssocID ( |
181 | IN void *pMgmtHandle | 181 | void *pMgmtHandle |
182 | ) | 182 | ) |
183 | { | 183 | { |
184 | PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; | 184 | PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; |
@@ -204,8 +204,8 @@ VNTWIFIwGetAssocID ( | |||
204 | -*/ | 204 | -*/ |
205 | BYTE | 205 | BYTE |
206 | VNTWIFIbyGetMaxSupportRate ( | 206 | VNTWIFIbyGetMaxSupportRate ( |
207 | IN PWLAN_IE_SUPP_RATES pSupportRateIEs, | 207 | PWLAN_IE_SUPP_RATES pSupportRateIEs, |
208 | IN PWLAN_IE_SUPP_RATES pExtSupportRateIEs | 208 | PWLAN_IE_SUPP_RATES pExtSupportRateIEs |
209 | ) | 209 | ) |
210 | { | 210 | { |
211 | BYTE byMaxSupportRate = RATE_1M; | 211 | BYTE byMaxSupportRate = RATE_1M; |
@@ -250,9 +250,9 @@ VNTWIFIbyGetMaxSupportRate ( | |||
250 | -*/ | 250 | -*/ |
251 | BYTE | 251 | BYTE |
252 | VNTWIFIbyGetACKTxRate ( | 252 | VNTWIFIbyGetACKTxRate ( |
253 | IN BYTE byRxDataRate, | 253 | BYTE byRxDataRate, |
254 | IN PWLAN_IE_SUPP_RATES pSupportRateIEs, | 254 | PWLAN_IE_SUPP_RATES pSupportRateIEs, |
255 | IN PWLAN_IE_SUPP_RATES pExtSupportRateIEs | 255 | PWLAN_IE_SUPP_RATES pExtSupportRateIEs |
256 | ) | 256 | ) |
257 | { | 257 | { |
258 | BYTE byMaxAckRate; | 258 | BYTE byMaxAckRate; |
@@ -308,8 +308,8 @@ VNTWIFIbyGetACKTxRate ( | |||
308 | -*/ | 308 | -*/ |
309 | void | 309 | void |
310 | VNTWIFIvSetAuthenticationMode ( | 310 | VNTWIFIvSetAuthenticationMode ( |
311 | IN void *pMgmtHandle, | 311 | void *pMgmtHandle, |
312 | IN WMAC_AUTHENTICATION_MODE eAuthMode | 312 | WMAC_AUTHENTICATION_MODE eAuthMode |
313 | ) | 313 | ) |
314 | { | 314 | { |
315 | PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; | 315 | PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; |
@@ -340,8 +340,8 @@ VNTWIFIvSetAuthenticationMode ( | |||
340 | -*/ | 340 | -*/ |
341 | void | 341 | void |
342 | VNTWIFIvSetEncryptionMode ( | 342 | VNTWIFIvSetEncryptionMode ( |
343 | IN void *pMgmtHandle, | 343 | void *pMgmtHandle, |
344 | IN WMAC_ENCRYPTION_MODE eEncryptionMode | 344 | WMAC_ENCRYPTION_MODE eEncryptionMode |
345 | ) | 345 | ) |
346 | { | 346 | { |
347 | PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; | 347 | PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; |
@@ -360,8 +360,8 @@ VNTWIFIvSetEncryptionMode ( | |||
360 | 360 | ||
361 | BOOL | 361 | BOOL |
362 | VNTWIFIbConfigPhyMode ( | 362 | VNTWIFIbConfigPhyMode ( |
363 | IN void *pMgmtHandle, | 363 | void *pMgmtHandle, |
364 | IN CARD_PHY_TYPE ePhyType | 364 | CARD_PHY_TYPE ePhyType |
365 | ) | 365 | ) |
366 | { | 366 | { |
367 | PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; | 367 | PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; |
@@ -381,7 +381,7 @@ VNTWIFIbConfigPhyMode ( | |||
381 | 381 | ||
382 | void | 382 | void |
383 | VNTWIFIbGetConfigPhyMode ( | 383 | VNTWIFIbGetConfigPhyMode ( |
384 | IN void *pMgmtHandle, | 384 | void *pMgmtHandle, |
385 | OUT void *pePhyType | 385 | OUT void *pePhyType |
386 | ) | 386 | ) |
387 | { | 387 | { |
@@ -426,7 +426,7 @@ VNTWIFIbGetConfigPhyMode ( | |||
426 | 426 | ||
427 | void | 427 | void |
428 | VNTWIFIvQueryBSSList ( | 428 | VNTWIFIvQueryBSSList ( |
429 | IN void *pMgmtHandle, | 429 | void *pMgmtHandle, |
430 | OUT PUINT puBSSCount, | 430 | OUT PUINT puBSSCount, |
431 | OUT void **pvFirstBSS | 431 | OUT void **pvFirstBSS |
432 | ) | 432 | ) |
@@ -456,8 +456,8 @@ VNTWIFIvQueryBSSList ( | |||
456 | 456 | ||
457 | void | 457 | void |
458 | VNTWIFIvGetNextBSS ( | 458 | VNTWIFIvGetNextBSS ( |
459 | IN void *pMgmtHandle, | 459 | void *pMgmtHandle, |
460 | IN void *pvCurrentBSS, | 460 | void *pvCurrentBSS, |
461 | OUT void **pvNextBSS | 461 | OUT void **pvNextBSS |
462 | ) | 462 | ) |
463 | { | 463 | { |
@@ -496,11 +496,11 @@ VNTWIFIvGetNextBSS ( | |||
496 | -*/ | 496 | -*/ |
497 | void | 497 | void |
498 | VNTWIFIvUpdateNodeTxCounter( | 498 | VNTWIFIvUpdateNodeTxCounter( |
499 | IN void *pMgmtHandle, | 499 | void *pMgmtHandle, |
500 | IN PBYTE pbyDestAddress, | 500 | PBYTE pbyDestAddress, |
501 | IN BOOL bTxOk, | 501 | BOOL bTxOk, |
502 | IN WORD wRate, | 502 | WORD wRate, |
503 | IN PBYTE pbyTxFailCount | 503 | PBYTE pbyTxFailCount |
504 | ) | 504 | ) |
505 | { | 505 | { |
506 | PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; | 506 | PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; |
@@ -531,8 +531,8 @@ VNTWIFIvUpdateNodeTxCounter( | |||
531 | 531 | ||
532 | void | 532 | void |
533 | VNTWIFIvGetTxRate( | 533 | VNTWIFIvGetTxRate( |
534 | IN void *pMgmtHandle, | 534 | void *pMgmtHandle, |
535 | IN PBYTE pbyDestAddress, | 535 | PBYTE pbyDestAddress, |
536 | OUT PWORD pwTxDataRate, | 536 | OUT PWORD pwTxDataRate, |
537 | OUT PBYTE pbyACKRate, | 537 | OUT PBYTE pbyACKRate, |
538 | OUT PBYTE pbyCCKBasicRate, | 538 | OUT PBYTE pbyCCKBasicRate, |
@@ -603,8 +603,8 @@ VNTWIFIvGetTxRate( | |||
603 | 603 | ||
604 | BYTE | 604 | BYTE |
605 | VNTWIFIbyGetKeyCypher( | 605 | VNTWIFIbyGetKeyCypher( |
606 | IN void *pMgmtHandle, | 606 | void *pMgmtHandle, |
607 | IN BOOL bGroupKey | 607 | BOOL bGroupKey |
608 | ) | 608 | ) |
609 | { | 609 | { |
610 | PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; | 610 | PSMgmtObject pMgmt = (PSMgmtObject)pMgmtHandle; |
@@ -620,7 +620,7 @@ VNTWIFIbyGetKeyCypher( | |||
620 | /* | 620 | /* |
621 | BOOL | 621 | BOOL |
622 | VNTWIFIbInit( | 622 | VNTWIFIbInit( |
623 | IN void *pAdapterHandler, | 623 | void *pAdapterHandler, |
624 | OUT void **pMgmtHandler | 624 | OUT void **pMgmtHandler |
625 | ) | 625 | ) |
626 | { | 626 | { |
@@ -664,9 +664,9 @@ VNTWIFIbInit( | |||
664 | 664 | ||
665 | BOOL | 665 | BOOL |
666 | VNTWIFIbSetPMKIDCache ( | 666 | VNTWIFIbSetPMKIDCache ( |
667 | IN void *pMgmtObject, | 667 | void *pMgmtObject, |
668 | IN ULONG ulCount, | 668 | ULONG ulCount, |
669 | IN void *pPMKIDInfo | 669 | void *pPMKIDInfo |
670 | ) | 670 | ) |
671 | { | 671 | { |
672 | PSMgmtObject pMgmt = (PSMgmtObject) pMgmtObject; | 672 | PSMgmtObject pMgmt = (PSMgmtObject) pMgmtObject; |
@@ -683,7 +683,7 @@ VNTWIFIbSetPMKIDCache ( | |||
683 | 683 | ||
684 | WORD | 684 | WORD |
685 | VNTWIFIwGetMaxSupportRate( | 685 | VNTWIFIwGetMaxSupportRate( |
686 | IN void *pMgmtObject | 686 | void *pMgmtObject |
687 | ) | 687 | ) |
688 | { | 688 | { |
689 | WORD wRate = RATE_54M; | 689 | WORD wRate = RATE_54M; |
@@ -704,8 +704,8 @@ VNTWIFIwGetMaxSupportRate( | |||
704 | 704 | ||
705 | void | 705 | void |
706 | VNTWIFIvSet11h ( | 706 | VNTWIFIvSet11h ( |
707 | IN void *pMgmtObject, | 707 | void *pMgmtObject, |
708 | IN BOOL b11hEnable | 708 | BOOL b11hEnable |
709 | ) | 709 | ) |
710 | { | 710 | { |
711 | PSMgmtObject pMgmt = (PSMgmtObject) pMgmtObject; | 711 | PSMgmtObject pMgmt = (PSMgmtObject) pMgmtObject; |
@@ -715,13 +715,13 @@ VNTWIFIvSet11h ( | |||
715 | 715 | ||
716 | BOOL | 716 | BOOL |
717 | VNTWIFIbMeasureReport( | 717 | VNTWIFIbMeasureReport( |
718 | IN void *pMgmtObject, | 718 | void *pMgmtObject, |
719 | IN BOOL bEndOfReport, | 719 | BOOL bEndOfReport, |
720 | IN void *pvMeasureEID, | 720 | void *pvMeasureEID, |
721 | IN BYTE byReportMode, | 721 | BYTE byReportMode, |
722 | IN BYTE byBasicMap, | 722 | BYTE byBasicMap, |
723 | IN BYTE byCCAFraction, | 723 | BYTE byCCAFraction, |
724 | IN PBYTE pbyRPIs | 724 | PBYTE pbyRPIs |
725 | ) | 725 | ) |
726 | { | 726 | { |
727 | PSMgmtObject pMgmt = (PSMgmtObject) pMgmtObject; | 727 | PSMgmtObject pMgmt = (PSMgmtObject) pMgmtObject; |
@@ -775,8 +775,8 @@ VNTWIFIbMeasureReport( | |||
775 | 775 | ||
776 | BOOL | 776 | BOOL |
777 | VNTWIFIbChannelSwitch( | 777 | VNTWIFIbChannelSwitch( |
778 | IN void *pMgmtObject, | 778 | void *pMgmtObject, |
779 | IN BYTE byNewChannel | 779 | BYTE byNewChannel |
780 | ) | 780 | ) |
781 | { | 781 | { |
782 | PSMgmtObject pMgmt = (PSMgmtObject) pMgmtObject; | 782 | PSMgmtObject pMgmt = (PSMgmtObject) pMgmtObject; |
@@ -791,8 +791,8 @@ VNTWIFIbChannelSwitch( | |||
791 | /* | 791 | /* |
792 | BOOL | 792 | BOOL |
793 | VNTWIFIbRadarPresent( | 793 | VNTWIFIbRadarPresent( |
794 | IN void *pMgmtObject, | 794 | void *pMgmtObject, |
795 | IN BYTE byChannel | 795 | BYTE byChannel |
796 | ) | 796 | ) |
797 | { | 797 | { |
798 | PSMgmtObject pMgmt = (PSMgmtObject) pMgmtObject; | 798 | PSMgmtObject pMgmt = (PSMgmtObject) pMgmtObject; |
diff --git a/drivers/staging/vt6655/vntwifi.h b/drivers/staging/vt6655/vntwifi.h index 666684af5cd..ca1ee0e4446 100644 --- a/drivers/staging/vt6655/vntwifi.h +++ b/drivers/staging/vt6655/vntwifi.h | |||
@@ -142,74 +142,74 @@ typedef enum tagWMAC_POWER_MODE { | |||
142 | 142 | ||
143 | void | 143 | void |
144 | VNTWIFIvSetIBSSParameter ( | 144 | VNTWIFIvSetIBSSParameter ( |
145 | IN void *pMgmtHandle, | 145 | void *pMgmtHandle, |
146 | IN WORD wBeaconPeriod, | 146 | WORD wBeaconPeriod, |
147 | IN WORD wATIMWindow, | 147 | WORD wATIMWindow, |
148 | IN UINT uChannel | 148 | UINT uChannel |
149 | ); | 149 | ); |
150 | 150 | ||
151 | void | 151 | void |
152 | VNTWIFIvSetOPMode ( | 152 | VNTWIFIvSetOPMode ( |
153 | IN void *pMgmtHandle, | 153 | void *pMgmtHandle, |
154 | IN WMAC_CONFIG_MODE eOPMode | 154 | WMAC_CONFIG_MODE eOPMode |
155 | ); | 155 | ); |
156 | 156 | ||
157 | PWLAN_IE_SSID | 157 | PWLAN_IE_SSID |
158 | VNTWIFIpGetCurrentSSID( | 158 | VNTWIFIpGetCurrentSSID( |
159 | IN void *pMgmtHandle | 159 | void *pMgmtHandle |
160 | ); | 160 | ); |
161 | 161 | ||
162 | UINT | 162 | UINT |
163 | VNTWIFIpGetCurrentChannel( | 163 | VNTWIFIpGetCurrentChannel( |
164 | IN void *pMgmtHandle | 164 | void *pMgmtHandle |
165 | ); | 165 | ); |
166 | 166 | ||
167 | WORD | 167 | WORD |
168 | VNTWIFIwGetAssocID ( | 168 | VNTWIFIwGetAssocID ( |
169 | IN void *pMgmtHandle | 169 | void *pMgmtHandle |
170 | ); | 170 | ); |
171 | 171 | ||
172 | BYTE | 172 | BYTE |
173 | VNTWIFIbyGetMaxSupportRate ( | 173 | VNTWIFIbyGetMaxSupportRate ( |
174 | IN PWLAN_IE_SUPP_RATES pSupportRateIEs, | 174 | PWLAN_IE_SUPP_RATES pSupportRateIEs, |
175 | IN PWLAN_IE_SUPP_RATES pExtSupportRateIEs | 175 | PWLAN_IE_SUPP_RATES pExtSupportRateIEs |
176 | ); | 176 | ); |
177 | 177 | ||
178 | BYTE | 178 | BYTE |
179 | VNTWIFIbyGetACKTxRate ( | 179 | VNTWIFIbyGetACKTxRate ( |
180 | IN BYTE byRxDataRate, | 180 | BYTE byRxDataRate, |
181 | IN PWLAN_IE_SUPP_RATES pSupportRateIEs, | 181 | PWLAN_IE_SUPP_RATES pSupportRateIEs, |
182 | IN PWLAN_IE_SUPP_RATES pExtSupportRateIEs | 182 | PWLAN_IE_SUPP_RATES pExtSupportRateIEs |
183 | ); | 183 | ); |
184 | 184 | ||
185 | void | 185 | void |
186 | VNTWIFIvSetAuthenticationMode ( | 186 | VNTWIFIvSetAuthenticationMode ( |
187 | IN void *pMgmtHandle, | 187 | void *pMgmtHandle, |
188 | IN WMAC_AUTHENTICATION_MODE eAuthMode | 188 | WMAC_AUTHENTICATION_MODE eAuthMode |
189 | ); | 189 | ); |
190 | 190 | ||
191 | void | 191 | void |
192 | VNTWIFIvSetEncryptionMode ( | 192 | VNTWIFIvSetEncryptionMode ( |
193 | IN void *pMgmtHandle, | 193 | void *pMgmtHandle, |
194 | IN WMAC_ENCRYPTION_MODE eEncryptionMode | 194 | WMAC_ENCRYPTION_MODE eEncryptionMode |
195 | ); | 195 | ); |
196 | 196 | ||
197 | 197 | ||
198 | BOOL | 198 | BOOL |
199 | VNTWIFIbConfigPhyMode( | 199 | VNTWIFIbConfigPhyMode( |
200 | IN void *pMgmtHandle, | 200 | void *pMgmtHandle, |
201 | IN CARD_PHY_TYPE ePhyType | 201 | CARD_PHY_TYPE ePhyType |
202 | ); | 202 | ); |
203 | 203 | ||
204 | void | 204 | void |
205 | VNTWIFIbGetConfigPhyMode( | 205 | VNTWIFIbGetConfigPhyMode( |
206 | IN void *pMgmtHandle, | 206 | void *pMgmtHandle, |
207 | OUT void *pePhyType | 207 | OUT void *pePhyType |
208 | ); | 208 | ); |
209 | 209 | ||
210 | void | 210 | void |
211 | VNTWIFIvQueryBSSList( | 211 | VNTWIFIvQueryBSSList( |
212 | IN void *pMgmtHandle, | 212 | void *pMgmtHandle, |
213 | OUT PUINT puBSSCount, | 213 | OUT PUINT puBSSCount, |
214 | OUT void **pvFirstBSS | 214 | OUT void **pvFirstBSS |
215 | ); | 215 | ); |
@@ -219,8 +219,8 @@ VNTWIFIvQueryBSSList( | |||
219 | 219 | ||
220 | void | 220 | void |
221 | VNTWIFIvGetNextBSS ( | 221 | VNTWIFIvGetNextBSS ( |
222 | IN void *pMgmtHandle, | 222 | void *pMgmtHandle, |
223 | IN void *pvCurrentBSS, | 223 | void *pvCurrentBSS, |
224 | OUT void **pvNextBSS | 224 | OUT void **pvNextBSS |
225 | ); | 225 | ); |
226 | 226 | ||
@@ -228,18 +228,18 @@ VNTWIFIvGetNextBSS ( | |||
228 | 228 | ||
229 | void | 229 | void |
230 | VNTWIFIvUpdateNodeTxCounter( | 230 | VNTWIFIvUpdateNodeTxCounter( |
231 | IN void *pMgmtHandle, | 231 | void *pMgmtHandle, |
232 | IN PBYTE pbyDestAddress, | 232 | PBYTE pbyDestAddress, |
233 | IN BOOL bTxOk, | 233 | BOOL bTxOk, |
234 | IN WORD wRate, | 234 | WORD wRate, |
235 | IN PBYTE pbyTxFailCount | 235 | PBYTE pbyTxFailCount |
236 | ); | 236 | ); |
237 | 237 | ||
238 | 238 | ||
239 | void | 239 | void |
240 | VNTWIFIvGetTxRate( | 240 | VNTWIFIvGetTxRate( |
241 | IN void *pMgmtHandle, | 241 | void *pMgmtHandle, |
242 | IN PBYTE pbyDestAddress, | 242 | PBYTE pbyDestAddress, |
243 | OUT PWORD pwTxDataRate, | 243 | OUT PWORD pwTxDataRate, |
244 | OUT PBYTE pbyACKRate, | 244 | OUT PBYTE pbyACKRate, |
245 | OUT PBYTE pbyCCKBasicRate, | 245 | OUT PBYTE pbyCCKBasicRate, |
@@ -248,15 +248,15 @@ VNTWIFIvGetTxRate( | |||
248 | /* | 248 | /* |
249 | BOOL | 249 | BOOL |
250 | VNTWIFIbInit( | 250 | VNTWIFIbInit( |
251 | IN void *pAdapterHandler, | 251 | void *pAdapterHandler, |
252 | OUT void **pMgmtHandler | 252 | OUT void **pMgmtHandler |
253 | ); | 253 | ); |
254 | */ | 254 | */ |
255 | 255 | ||
256 | BYTE | 256 | BYTE |
257 | VNTWIFIbyGetKeyCypher( | 257 | VNTWIFIbyGetKeyCypher( |
258 | IN void *pMgmtHandle, | 258 | void *pMgmtHandle, |
259 | IN BOOL bGroupKey | 259 | BOOL bGroupKey |
260 | ); | 260 | ); |
261 | 261 | ||
262 | 262 | ||
@@ -264,49 +264,49 @@ VNTWIFIbyGetKeyCypher( | |||
264 | 264 | ||
265 | BOOL | 265 | BOOL |
266 | VNTWIFIbSetPMKIDCache ( | 266 | VNTWIFIbSetPMKIDCache ( |
267 | IN void *pMgmtObject, | 267 | void *pMgmtObject, |
268 | IN ULONG ulCount, | 268 | ULONG ulCount, |
269 | IN void *pPMKIDInfo | 269 | void *pPMKIDInfo |
270 | ); | 270 | ); |
271 | 271 | ||
272 | BOOL | 272 | BOOL |
273 | VNTWIFIbCommandRunning ( | 273 | VNTWIFIbCommandRunning ( |
274 | IN void *pMgmtObject | 274 | void *pMgmtObject |
275 | ); | 275 | ); |
276 | 276 | ||
277 | WORD | 277 | WORD |
278 | VNTWIFIwGetMaxSupportRate( | 278 | VNTWIFIwGetMaxSupportRate( |
279 | IN void *pMgmtObject | 279 | void *pMgmtObject |
280 | ); | 280 | ); |
281 | 281 | ||
282 | // for 802.11h | 282 | // for 802.11h |
283 | void | 283 | void |
284 | VNTWIFIvSet11h ( | 284 | VNTWIFIvSet11h ( |
285 | IN void *pMgmtObject, | 285 | void *pMgmtObject, |
286 | IN BOOL b11hEnable | 286 | BOOL b11hEnable |
287 | ); | 287 | ); |
288 | 288 | ||
289 | BOOL | 289 | BOOL |
290 | VNTWIFIbMeasureReport( | 290 | VNTWIFIbMeasureReport( |
291 | IN void *pMgmtObject, | 291 | void *pMgmtObject, |
292 | IN BOOL bEndOfReport, | 292 | BOOL bEndOfReport, |
293 | IN void *pvMeasureEID, | 293 | void *pvMeasureEID, |
294 | IN BYTE byReportMode, | 294 | BYTE byReportMode, |
295 | IN BYTE byBasicMap, | 295 | BYTE byBasicMap, |
296 | IN BYTE byCCAFraction, | 296 | BYTE byCCAFraction, |
297 | IN PBYTE pbyRPIs | 297 | PBYTE pbyRPIs |
298 | ); | 298 | ); |
299 | 299 | ||
300 | BOOL | 300 | BOOL |
301 | VNTWIFIbChannelSwitch( | 301 | VNTWIFIbChannelSwitch( |
302 | IN void *pMgmtObject, | 302 | void *pMgmtObject, |
303 | IN BYTE byNewChannel | 303 | BYTE byNewChannel |
304 | ); | 304 | ); |
305 | /* | 305 | /* |
306 | BOOL | 306 | BOOL |
307 | VNTWIFIbRadarPresent( | 307 | VNTWIFIbRadarPresent( |
308 | IN void *pMgmtObject, | 308 | void *pMgmtObject, |
309 | IN BYTE byChannel | 309 | BYTE byChannel |
310 | ); | 310 | ); |
311 | */ | 311 | */ |
312 | 312 | ||
diff --git a/drivers/staging/vt6655/wcmd.c b/drivers/staging/vt6655/wcmd.c index 6e460409f98..28665d870f5 100644 --- a/drivers/staging/vt6655/wcmd.c +++ b/drivers/staging/vt6655/wcmd.c | |||
@@ -68,19 +68,19 @@ static int msglevel =MSG_LEVEL_INFO; | |||
68 | static | 68 | static |
69 | void | 69 | void |
70 | s_vProbeChannel( | 70 | s_vProbeChannel( |
71 | IN PSDevice pDevice | 71 | PSDevice pDevice |
72 | ); | 72 | ); |
73 | 73 | ||
74 | 74 | ||
75 | static | 75 | static |
76 | PSTxMgmtPacket | 76 | PSTxMgmtPacket |
77 | s_MgrMakeProbeRequest( | 77 | s_MgrMakeProbeRequest( |
78 | IN PSDevice pDevice, | 78 | PSDevice pDevice, |
79 | IN PSMgmtObject pMgmt, | 79 | PSMgmtObject pMgmt, |
80 | IN PBYTE pScanBSSID, | 80 | PBYTE pScanBSSID, |
81 | IN PWLAN_IE_SSID pSSID, | 81 | PWLAN_IE_SSID pSSID, |
82 | IN PWLAN_IE_SUPP_RATES pCurrRates, | 82 | PWLAN_IE_SUPP_RATES pCurrRates, |
83 | IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates | 83 | PWLAN_IE_SUPP_RATES pCurrExtSuppRates |
84 | ); | 84 | ); |
85 | 85 | ||
86 | 86 | ||
@@ -204,7 +204,7 @@ vAdHocBeaconRestart(PSDevice pDevice) | |||
204 | static | 204 | static |
205 | void | 205 | void |
206 | s_vProbeChannel( | 206 | s_vProbeChannel( |
207 | IN PSDevice pDevice | 207 | PSDevice pDevice |
208 | ) | 208 | ) |
209 | { | 209 | { |
210 | //1M, 2M, 5M, 11M, 18M, 24M, 36M, 54M | 210 | //1M, 2M, 5M, 11M, 18M, 24M, 36M, 54M |
@@ -267,12 +267,12 @@ s_vProbeChannel( | |||
267 | 267 | ||
268 | PSTxMgmtPacket | 268 | PSTxMgmtPacket |
269 | s_MgrMakeProbeRequest( | 269 | s_MgrMakeProbeRequest( |
270 | IN PSDevice pDevice, | 270 | PSDevice pDevice, |
271 | IN PSMgmtObject pMgmt, | 271 | PSMgmtObject pMgmt, |
272 | IN PBYTE pScanBSSID, | 272 | PBYTE pScanBSSID, |
273 | IN PWLAN_IE_SSID pSSID, | 273 | PWLAN_IE_SSID pSSID, |
274 | IN PWLAN_IE_SUPP_RATES pCurrRates, | 274 | PWLAN_IE_SUPP_RATES pCurrRates, |
275 | IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates | 275 | PWLAN_IE_SUPP_RATES pCurrExtSuppRates |
276 | 276 | ||
277 | ) | 277 | ) |
278 | { | 278 | { |
@@ -319,8 +319,8 @@ s_MgrMakeProbeRequest( | |||
319 | 319 | ||
320 | void | 320 | void |
321 | vCommandTimerWait( | 321 | vCommandTimerWait( |
322 | IN void *hDeviceContext, | 322 | void *hDeviceContext, |
323 | IN UINT MSecond | 323 | UINT MSecond |
324 | ) | 324 | ) |
325 | { | 325 | { |
326 | PSDevice pDevice = (PSDevice)hDeviceContext; | 326 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -339,7 +339,7 @@ vCommandTimerWait( | |||
339 | 339 | ||
340 | void | 340 | void |
341 | vCommandTimer ( | 341 | vCommandTimer ( |
342 | IN void *hDeviceContext | 342 | void *hDeviceContext |
343 | ) | 343 | ) |
344 | { | 344 | { |
345 | PSDevice pDevice = (PSDevice)hDeviceContext; | 345 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -980,9 +980,9 @@ s_bCommandComplete ( | |||
980 | 980 | ||
981 | 981 | ||
982 | BOOL bScheduleCommand ( | 982 | BOOL bScheduleCommand ( |
983 | IN void *hDeviceContext, | 983 | void *hDeviceContext, |
984 | IN CMD_CODE eCommand, | 984 | CMD_CODE eCommand, |
985 | IN PBYTE pbyItem0 | 985 | PBYTE pbyItem0 |
986 | ) | 986 | ) |
987 | { | 987 | { |
988 | PSDevice pDevice = (PSDevice)hDeviceContext; | 988 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -1061,7 +1061,7 @@ BOOL bScheduleCommand ( | |||
1061 | * | 1061 | * |
1062 | */ | 1062 | */ |
1063 | BOOL bClearBSSID_SCAN ( | 1063 | BOOL bClearBSSID_SCAN ( |
1064 | IN void *hDeviceContext | 1064 | void *hDeviceContext |
1065 | ) | 1065 | ) |
1066 | { | 1066 | { |
1067 | PSDevice pDevice = (PSDevice)hDeviceContext; | 1067 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -1083,7 +1083,7 @@ BOOL bClearBSSID_SCAN ( | |||
1083 | //mike add:reset command timer | 1083 | //mike add:reset command timer |
1084 | void | 1084 | void |
1085 | vResetCommandTimer( | 1085 | vResetCommandTimer( |
1086 | IN void *hDeviceContext | 1086 | void *hDeviceContext |
1087 | ) | 1087 | ) |
1088 | { | 1088 | { |
1089 | PSDevice pDevice = (PSDevice)hDeviceContext; | 1089 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -1107,7 +1107,7 @@ vResetCommandTimer( | |||
1107 | #ifdef TxInSleep | 1107 | #ifdef TxInSleep |
1108 | void | 1108 | void |
1109 | BSSvSecondTxData( | 1109 | BSSvSecondTxData( |
1110 | IN void *hDeviceContext | 1110 | void *hDeviceContext |
1111 | ) | 1111 | ) |
1112 | { | 1112 | { |
1113 | PSDevice pDevice = (PSDevice)hDeviceContext; | 1113 | PSDevice pDevice = (PSDevice)hDeviceContext; |
diff --git a/drivers/staging/vt6655/wcmd.h b/drivers/staging/vt6655/wcmd.h index 67b08f61edc..c3c41808951 100644 --- a/drivers/staging/vt6655/wcmd.h +++ b/drivers/staging/vt6655/wcmd.h | |||
@@ -111,34 +111,34 @@ typedef enum tagCMD_STATE { | |||
111 | /*--------------------- Export Functions --------------------------*/ | 111 | /*--------------------- Export Functions --------------------------*/ |
112 | void | 112 | void |
113 | vResetCommandTimer( | 113 | vResetCommandTimer( |
114 | IN void *hDeviceContext | 114 | void *hDeviceContext |
115 | ); | 115 | ); |
116 | 116 | ||
117 | void | 117 | void |
118 | vCommandTimer ( | 118 | vCommandTimer ( |
119 | IN void *hDeviceContext | 119 | void *hDeviceContext |
120 | ); | 120 | ); |
121 | 121 | ||
122 | BOOL bClearBSSID_SCAN( | 122 | BOOL bClearBSSID_SCAN( |
123 | IN void *hDeviceContext | 123 | void *hDeviceContext |
124 | ); | 124 | ); |
125 | 125 | ||
126 | BOOL | 126 | BOOL |
127 | bScheduleCommand( | 127 | bScheduleCommand( |
128 | IN void *hDeviceContext, | 128 | void *hDeviceContext, |
129 | IN CMD_CODE eCommand, | 129 | CMD_CODE eCommand, |
130 | IN PBYTE pbyItem0 | 130 | PBYTE pbyItem0 |
131 | ); | 131 | ); |
132 | 132 | ||
133 | void | 133 | void |
134 | vCommandTimerWait( | 134 | vCommandTimerWait( |
135 | IN void *hDeviceContext, | 135 | void *hDeviceContext, |
136 | IN UINT MSecond | 136 | UINT MSecond |
137 | ); | 137 | ); |
138 | #ifdef TxInSleep | 138 | #ifdef TxInSleep |
139 | void | 139 | void |
140 | BSSvSecondTxData( | 140 | BSSvSecondTxData( |
141 | IN void *hDeviceContext | 141 | void *hDeviceContext |
142 | ); | 142 | ); |
143 | #endif | 143 | #endif |
144 | 144 | ||
diff --git a/drivers/staging/vt6655/wmgr.c b/drivers/staging/vt6655/wmgr.c index 614850a7b91..19a16cae175 100644 --- a/drivers/staging/vt6655/wmgr.c +++ b/drivers/staging/vt6655/wmgr.c | |||
@@ -94,110 +94,110 @@ static int msglevel =MSG_LEVEL_INFO; | |||
94 | /*--------------------- Static Functions --------------------------*/ | 94 | /*--------------------- Static Functions --------------------------*/ |
95 | //2008-8-4 <add> by chester | 95 | //2008-8-4 <add> by chester |
96 | static BOOL ChannelExceedZoneType( | 96 | static BOOL ChannelExceedZoneType( |
97 | IN PSDevice pDevice, | 97 | PSDevice pDevice, |
98 | IN BYTE byCurrChannel | 98 | BYTE byCurrChannel |
99 | ); | 99 | ); |
100 | 100 | ||
101 | // Association/diassociation functions | 101 | // Association/diassociation functions |
102 | static | 102 | static |
103 | PSTxMgmtPacket | 103 | PSTxMgmtPacket |
104 | s_MgrMakeAssocRequest( | 104 | s_MgrMakeAssocRequest( |
105 | IN PSDevice pDevice, | 105 | PSDevice pDevice, |
106 | IN PSMgmtObject pMgmt, | 106 | PSMgmtObject pMgmt, |
107 | IN PBYTE pDAddr, | 107 | PBYTE pDAddr, |
108 | IN WORD wCurrCapInfo, | 108 | WORD wCurrCapInfo, |
109 | IN WORD wListenInterval, | 109 | WORD wListenInterval, |
110 | IN PWLAN_IE_SSID pCurrSSID, | 110 | PWLAN_IE_SSID pCurrSSID, |
111 | IN PWLAN_IE_SUPP_RATES pCurrRates, | 111 | PWLAN_IE_SUPP_RATES pCurrRates, |
112 | IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates | 112 | PWLAN_IE_SUPP_RATES pCurrExtSuppRates |
113 | ); | 113 | ); |
114 | 114 | ||
115 | static | 115 | static |
116 | void | 116 | void |
117 | s_vMgrRxAssocRequest( | 117 | s_vMgrRxAssocRequest( |
118 | IN PSDevice pDevice, | 118 | PSDevice pDevice, |
119 | IN PSMgmtObject pMgmt, | 119 | PSMgmtObject pMgmt, |
120 | IN PSRxMgmtPacket pRxPacket, | 120 | PSRxMgmtPacket pRxPacket, |
121 | IN UINT uNodeIndex | 121 | UINT uNodeIndex |
122 | ); | 122 | ); |
123 | 123 | ||
124 | static | 124 | static |
125 | PSTxMgmtPacket | 125 | PSTxMgmtPacket |
126 | s_MgrMakeReAssocRequest( | 126 | s_MgrMakeReAssocRequest( |
127 | IN PSDevice pDevice, | 127 | PSDevice pDevice, |
128 | IN PSMgmtObject pMgmt, | 128 | PSMgmtObject pMgmt, |
129 | IN PBYTE pDAddr, | 129 | PBYTE pDAddr, |
130 | IN WORD wCurrCapInfo, | 130 | WORD wCurrCapInfo, |
131 | IN WORD wListenInterval, | 131 | WORD wListenInterval, |
132 | IN PWLAN_IE_SSID pCurrSSID, | 132 | PWLAN_IE_SSID pCurrSSID, |
133 | IN PWLAN_IE_SUPP_RATES pCurrRates, | 133 | PWLAN_IE_SUPP_RATES pCurrRates, |
134 | IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates | 134 | PWLAN_IE_SUPP_RATES pCurrExtSuppRates |
135 | ); | 135 | ); |
136 | 136 | ||
137 | static | 137 | static |
138 | void | 138 | void |
139 | s_vMgrRxAssocResponse( | 139 | s_vMgrRxAssocResponse( |
140 | IN PSDevice pDevice, | 140 | PSDevice pDevice, |
141 | IN PSMgmtObject pMgmt, | 141 | PSMgmtObject pMgmt, |
142 | IN PSRxMgmtPacket pRxPacket, | 142 | PSRxMgmtPacket pRxPacket, |
143 | IN BOOL bReAssocType | 143 | BOOL bReAssocType |
144 | ); | 144 | ); |
145 | 145 | ||
146 | static | 146 | static |
147 | void | 147 | void |
148 | s_vMgrRxDisassociation( | 148 | s_vMgrRxDisassociation( |
149 | IN PSDevice pDevice, | 149 | PSDevice pDevice, |
150 | IN PSMgmtObject pMgmt, | 150 | PSMgmtObject pMgmt, |
151 | IN PSRxMgmtPacket pRxPacket | 151 | PSRxMgmtPacket pRxPacket |
152 | ); | 152 | ); |
153 | 153 | ||
154 | // Authentication/deauthen functions | 154 | // Authentication/deauthen functions |
155 | static | 155 | static |
156 | void | 156 | void |
157 | s_vMgrRxAuthenSequence_1( | 157 | s_vMgrRxAuthenSequence_1( |
158 | IN PSDevice pDevice, | 158 | PSDevice pDevice, |
159 | IN PSMgmtObject pMgmt, | 159 | PSMgmtObject pMgmt, |
160 | IN PWLAN_FR_AUTHEN pFrame | 160 | PWLAN_FR_AUTHEN pFrame |
161 | ); | 161 | ); |
162 | 162 | ||
163 | static | 163 | static |
164 | void | 164 | void |
165 | s_vMgrRxAuthenSequence_2( | 165 | s_vMgrRxAuthenSequence_2( |
166 | IN PSDevice pDevice, | 166 | PSDevice pDevice, |
167 | IN PSMgmtObject pMgmt, | 167 | PSMgmtObject pMgmt, |
168 | IN PWLAN_FR_AUTHEN pFrame | 168 | PWLAN_FR_AUTHEN pFrame |
169 | ); | 169 | ); |
170 | 170 | ||
171 | static | 171 | static |
172 | void | 172 | void |
173 | s_vMgrRxAuthenSequence_3( | 173 | s_vMgrRxAuthenSequence_3( |
174 | IN PSDevice pDevice, | 174 | PSDevice pDevice, |
175 | IN PSMgmtObject pMgmt, | 175 | PSMgmtObject pMgmt, |
176 | IN PWLAN_FR_AUTHEN pFrame | 176 | PWLAN_FR_AUTHEN pFrame |
177 | ); | 177 | ); |
178 | 178 | ||
179 | static | 179 | static |
180 | void | 180 | void |
181 | s_vMgrRxAuthenSequence_4( | 181 | s_vMgrRxAuthenSequence_4( |
182 | IN PSDevice pDevice, | 182 | PSDevice pDevice, |
183 | IN PSMgmtObject pMgmt, | 183 | PSMgmtObject pMgmt, |
184 | IN PWLAN_FR_AUTHEN pFrame | 184 | PWLAN_FR_AUTHEN pFrame |
185 | ); | 185 | ); |
186 | 186 | ||
187 | static | 187 | static |
188 | void | 188 | void |
189 | s_vMgrRxAuthentication( | 189 | s_vMgrRxAuthentication( |
190 | IN PSDevice pDevice, | 190 | PSDevice pDevice, |
191 | IN PSMgmtObject pMgmt, | 191 | PSMgmtObject pMgmt, |
192 | IN PSRxMgmtPacket pRxPacket | 192 | PSRxMgmtPacket pRxPacket |
193 | ); | 193 | ); |
194 | 194 | ||
195 | static | 195 | static |
196 | void | 196 | void |
197 | s_vMgrRxDeauthentication( | 197 | s_vMgrRxDeauthentication( |
198 | IN PSDevice pDevice, | 198 | PSDevice pDevice, |
199 | IN PSMgmtObject pMgmt, | 199 | PSMgmtObject pMgmt, |
200 | IN PSRxMgmtPacket pRxPacket | 200 | PSRxMgmtPacket pRxPacket |
201 | ); | 201 | ); |
202 | 202 | ||
203 | // Scan functions | 203 | // Scan functions |
@@ -205,49 +205,49 @@ s_vMgrRxDeauthentication( | |||
205 | static | 205 | static |
206 | void | 206 | void |
207 | s_vMgrRxProbeRequest( | 207 | s_vMgrRxProbeRequest( |
208 | IN PSDevice pDevice, | 208 | PSDevice pDevice, |
209 | IN PSMgmtObject pMgmt, | 209 | PSMgmtObject pMgmt, |
210 | IN PSRxMgmtPacket pRxPacket | 210 | PSRxMgmtPacket pRxPacket |
211 | ); | 211 | ); |
212 | 212 | ||
213 | static | 213 | static |
214 | void | 214 | void |
215 | s_vMgrRxProbeResponse( | 215 | s_vMgrRxProbeResponse( |
216 | IN PSDevice pDevice, | 216 | PSDevice pDevice, |
217 | IN PSMgmtObject pMgmt, | 217 | PSMgmtObject pMgmt, |
218 | IN PSRxMgmtPacket pRxPacket | 218 | PSRxMgmtPacket pRxPacket |
219 | ); | 219 | ); |
220 | 220 | ||
221 | // beacon functions | 221 | // beacon functions |
222 | static | 222 | static |
223 | void | 223 | void |
224 | s_vMgrRxBeacon( | 224 | s_vMgrRxBeacon( |
225 | IN PSDevice pDevice, | 225 | PSDevice pDevice, |
226 | IN PSMgmtObject pMgmt, | 226 | PSMgmtObject pMgmt, |
227 | IN PSRxMgmtPacket pRxPacket, | 227 | PSRxMgmtPacket pRxPacket, |
228 | IN BOOL bInScan | 228 | BOOL bInScan |
229 | ); | 229 | ); |
230 | 230 | ||
231 | static | 231 | static |
232 | void | 232 | void |
233 | s_vMgrFormatTIM( | 233 | s_vMgrFormatTIM( |
234 | IN PSMgmtObject pMgmt, | 234 | PSMgmtObject pMgmt, |
235 | IN PWLAN_IE_TIM pTIM | 235 | PWLAN_IE_TIM pTIM |
236 | ); | 236 | ); |
237 | 237 | ||
238 | static | 238 | static |
239 | PSTxMgmtPacket | 239 | PSTxMgmtPacket |
240 | s_MgrMakeBeacon( | 240 | s_MgrMakeBeacon( |
241 | IN PSDevice pDevice, | 241 | PSDevice pDevice, |
242 | IN PSMgmtObject pMgmt, | 242 | PSMgmtObject pMgmt, |
243 | IN WORD wCurrCapInfo, | 243 | WORD wCurrCapInfo, |
244 | IN WORD wCurrBeaconPeriod, | 244 | WORD wCurrBeaconPeriod, |
245 | IN UINT uCurrChannel, | 245 | UINT uCurrChannel, |
246 | IN WORD wCurrATIMWinodw, | 246 | WORD wCurrATIMWinodw, |
247 | IN PWLAN_IE_SSID pCurrSSID, | 247 | PWLAN_IE_SSID pCurrSSID, |
248 | IN PBYTE pCurrBSSID, | 248 | PBYTE pCurrBSSID, |
249 | IN PWLAN_IE_SUPP_RATES pCurrSuppRates, | 249 | PWLAN_IE_SUPP_RATES pCurrSuppRates, |
250 | IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates | 250 | PWLAN_IE_SUPP_RATES pCurrExtSuppRates |
251 | ); | 251 | ); |
252 | 252 | ||
253 | 253 | ||
@@ -255,78 +255,78 @@ s_MgrMakeBeacon( | |||
255 | static | 255 | static |
256 | PSTxMgmtPacket | 256 | PSTxMgmtPacket |
257 | s_MgrMakeAssocResponse( | 257 | s_MgrMakeAssocResponse( |
258 | IN PSDevice pDevice, | 258 | PSDevice pDevice, |
259 | IN PSMgmtObject pMgmt, | 259 | PSMgmtObject pMgmt, |
260 | IN WORD wCurrCapInfo, | 260 | WORD wCurrCapInfo, |
261 | IN WORD wAssocStatus, | 261 | WORD wAssocStatus, |
262 | IN WORD wAssocAID, | 262 | WORD wAssocAID, |
263 | IN PBYTE pDstAddr, | 263 | PBYTE pDstAddr, |
264 | IN PWLAN_IE_SUPP_RATES pCurrSuppRates, | 264 | PWLAN_IE_SUPP_RATES pCurrSuppRates, |
265 | IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates | 265 | PWLAN_IE_SUPP_RATES pCurrExtSuppRates |
266 | ); | 266 | ); |
267 | 267 | ||
268 | // ReAssociation response | 268 | // ReAssociation response |
269 | static | 269 | static |
270 | PSTxMgmtPacket | 270 | PSTxMgmtPacket |
271 | s_MgrMakeReAssocResponse( | 271 | s_MgrMakeReAssocResponse( |
272 | IN PSDevice pDevice, | 272 | PSDevice pDevice, |
273 | IN PSMgmtObject pMgmt, | 273 | PSMgmtObject pMgmt, |
274 | IN WORD wCurrCapInfo, | 274 | WORD wCurrCapInfo, |
275 | IN WORD wAssocStatus, | 275 | WORD wAssocStatus, |
276 | IN WORD wAssocAID, | 276 | WORD wAssocAID, |
277 | IN PBYTE pDstAddr, | 277 | PBYTE pDstAddr, |
278 | IN PWLAN_IE_SUPP_RATES pCurrSuppRates, | 278 | PWLAN_IE_SUPP_RATES pCurrSuppRates, |
279 | IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates | 279 | PWLAN_IE_SUPP_RATES pCurrExtSuppRates |
280 | ); | 280 | ); |
281 | 281 | ||
282 | // Probe response | 282 | // Probe response |
283 | static | 283 | static |
284 | PSTxMgmtPacket | 284 | PSTxMgmtPacket |
285 | s_MgrMakeProbeResponse( | 285 | s_MgrMakeProbeResponse( |
286 | IN PSDevice pDevice, | 286 | PSDevice pDevice, |
287 | IN PSMgmtObject pMgmt, | 287 | PSMgmtObject pMgmt, |
288 | IN WORD wCurrCapInfo, | 288 | WORD wCurrCapInfo, |
289 | IN WORD wCurrBeaconPeriod, | 289 | WORD wCurrBeaconPeriod, |
290 | IN UINT uCurrChannel, | 290 | UINT uCurrChannel, |
291 | IN WORD wCurrATIMWinodw, | 291 | WORD wCurrATIMWinodw, |
292 | IN PBYTE pDstAddr, | 292 | PBYTE pDstAddr, |
293 | IN PWLAN_IE_SSID pCurrSSID, | 293 | PWLAN_IE_SSID pCurrSSID, |
294 | IN PBYTE pCurrBSSID, | 294 | PBYTE pCurrBSSID, |
295 | IN PWLAN_IE_SUPP_RATES pCurrSuppRates, | 295 | PWLAN_IE_SUPP_RATES pCurrSuppRates, |
296 | IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates, | 296 | PWLAN_IE_SUPP_RATES pCurrExtSuppRates, |
297 | IN BYTE byPHYType | 297 | BYTE byPHYType |
298 | ); | 298 | ); |
299 | 299 | ||
300 | // received status | 300 | // received status |
301 | static | 301 | static |
302 | void | 302 | void |
303 | s_vMgrLogStatus( | 303 | s_vMgrLogStatus( |
304 | IN PSMgmtObject pMgmt, | 304 | PSMgmtObject pMgmt, |
305 | IN WORD wStatus | 305 | WORD wStatus |
306 | ); | 306 | ); |
307 | 307 | ||
308 | 308 | ||
309 | static | 309 | static |
310 | void | 310 | void |
311 | s_vMgrSynchBSS ( | 311 | s_vMgrSynchBSS ( |
312 | IN PSDevice pDevice, | 312 | PSDevice pDevice, |
313 | IN UINT uBSSMode, | 313 | UINT uBSSMode, |
314 | IN PKnownBSS pCurr, | 314 | PKnownBSS pCurr, |
315 | OUT PCMD_STATUS pStatus | 315 | OUT PCMD_STATUS pStatus |
316 | ); | 316 | ); |
317 | 317 | ||
318 | 318 | ||
319 | static BOOL | 319 | static BOOL |
320 | s_bCipherMatch ( | 320 | s_bCipherMatch ( |
321 | IN PKnownBSS pBSSNode, | 321 | PKnownBSS pBSSNode, |
322 | IN NDIS_802_11_ENCRYPTION_STATUS EncStatus, | 322 | NDIS_802_11_ENCRYPTION_STATUS EncStatus, |
323 | OUT PBYTE pbyCCSPK, | 323 | OUT PBYTE pbyCCSPK, |
324 | OUT PBYTE pbyCCSGK | 324 | OUT PBYTE pbyCCSGK |
325 | ); | 325 | ); |
326 | 326 | ||
327 | static void Encyption_Rebuild( | 327 | static void Encyption_Rebuild( |
328 | IN PSDevice pDevice, | 328 | PSDevice pDevice, |
329 | IN PKnownBSS pCurr | 329 | PKnownBSS pCurr |
330 | ); | 330 | ); |
331 | 331 | ||
332 | 332 | ||
@@ -349,7 +349,7 @@ s_bCipherMatch ( | |||
349 | 349 | ||
350 | void | 350 | void |
351 | vMgrObjectInit( | 351 | vMgrObjectInit( |
352 | IN void *hDeviceContext | 352 | void *hDeviceContext |
353 | ) | 353 | ) |
354 | { | 354 | { |
355 | PSDevice pDevice = (PSDevice)hDeviceContext; | 355 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -385,7 +385,7 @@ vMgrObjectInit( | |||
385 | 385 | ||
386 | void | 386 | void |
387 | vMgrTimerInit( | 387 | vMgrTimerInit( |
388 | IN void *hDeviceContext | 388 | void *hDeviceContext |
389 | ) | 389 | ) |
390 | { | 390 | { |
391 | PSDevice pDevice = (PSDevice)hDeviceContext; | 391 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -433,7 +433,7 @@ vMgrTimerInit( | |||
433 | 433 | ||
434 | void | 434 | void |
435 | vMgrObjectReset( | 435 | vMgrObjectReset( |
436 | IN void *hDeviceContext | 436 | void *hDeviceContext |
437 | ) | 437 | ) |
438 | { | 438 | { |
439 | PSDevice pDevice = (PSDevice)hDeviceContext; | 439 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -462,8 +462,8 @@ vMgrObjectReset( | |||
462 | 462 | ||
463 | void | 463 | void |
464 | vMgrAssocBeginSta( | 464 | vMgrAssocBeginSta( |
465 | IN void *hDeviceContext, | 465 | void *hDeviceContext, |
466 | IN PSMgmtObject pMgmt, | 466 | PSMgmtObject pMgmt, |
467 | OUT PCMD_STATUS pStatus | 467 | OUT PCMD_STATUS pStatus |
468 | ) | 468 | ) |
469 | { | 469 | { |
@@ -538,8 +538,8 @@ vMgrAssocBeginSta( | |||
538 | 538 | ||
539 | void | 539 | void |
540 | vMgrReAssocBeginSta( | 540 | vMgrReAssocBeginSta( |
541 | IN void *hDeviceContext, | 541 | void *hDeviceContext, |
542 | IN PSMgmtObject pMgmt, | 542 | PSMgmtObject pMgmt, |
543 | OUT PCMD_STATUS pStatus | 543 | OUT PCMD_STATUS pStatus |
544 | ) | 544 | ) |
545 | { | 545 | { |
@@ -617,10 +617,10 @@ vMgrReAssocBeginSta( | |||
617 | 617 | ||
618 | void | 618 | void |
619 | vMgrDisassocBeginSta( | 619 | vMgrDisassocBeginSta( |
620 | IN void *hDeviceContext, | 620 | void *hDeviceContext, |
621 | IN PSMgmtObject pMgmt, | 621 | PSMgmtObject pMgmt, |
622 | IN PBYTE abyDestAddress, | 622 | PBYTE abyDestAddress, |
623 | IN WORD wReason, | 623 | WORD wReason, |
624 | OUT PCMD_STATUS pStatus | 624 | OUT PCMD_STATUS pStatus |
625 | ) | 625 | ) |
626 | { | 626 | { |
@@ -680,10 +680,10 @@ vMgrDisassocBeginSta( | |||
680 | static | 680 | static |
681 | void | 681 | void |
682 | s_vMgrRxAssocRequest( | 682 | s_vMgrRxAssocRequest( |
683 | IN PSDevice pDevice, | 683 | PSDevice pDevice, |
684 | IN PSMgmtObject pMgmt, | 684 | PSMgmtObject pMgmt, |
685 | IN PSRxMgmtPacket pRxPacket, | 685 | PSRxMgmtPacket pRxPacket, |
686 | IN UINT uNodeIndex | 686 | UINT uNodeIndex |
687 | ) | 687 | ) |
688 | { | 688 | { |
689 | WLAN_FR_ASSOCREQ sFrame; | 689 | WLAN_FR_ASSOCREQ sFrame; |
@@ -842,10 +842,10 @@ s_vMgrRxAssocRequest( | |||
842 | static | 842 | static |
843 | void | 843 | void |
844 | s_vMgrRxReAssocRequest( | 844 | s_vMgrRxReAssocRequest( |
845 | IN PSDevice pDevice, | 845 | PSDevice pDevice, |
846 | IN PSMgmtObject pMgmt, | 846 | PSMgmtObject pMgmt, |
847 | IN PSRxMgmtPacket pRxPacket, | 847 | PSRxMgmtPacket pRxPacket, |
848 | IN UINT uNodeIndex | 848 | UINT uNodeIndex |
849 | ) | 849 | ) |
850 | { | 850 | { |
851 | WLAN_FR_REASSOCREQ sFrame; | 851 | WLAN_FR_REASSOCREQ sFrame; |
@@ -992,10 +992,10 @@ s_vMgrRxReAssocRequest( | |||
992 | static | 992 | static |
993 | void | 993 | void |
994 | s_vMgrRxAssocResponse( | 994 | s_vMgrRxAssocResponse( |
995 | IN PSDevice pDevice, | 995 | PSDevice pDevice, |
996 | IN PSMgmtObject pMgmt, | 996 | PSMgmtObject pMgmt, |
997 | IN PSRxMgmtPacket pRxPacket, | 997 | PSRxMgmtPacket pRxPacket, |
998 | IN BOOL bReAssocType | 998 | BOOL bReAssocType |
999 | ) | 999 | ) |
1000 | { | 1000 | { |
1001 | WLAN_FR_ASSOCRESP sFrame; | 1001 | WLAN_FR_ASSOCRESP sFrame; |
@@ -1152,8 +1152,8 @@ if(pMgmt->eCurrState == WMAC_STATE_ASSOC) | |||
1152 | 1152 | ||
1153 | void | 1153 | void |
1154 | vMgrAuthenBeginSta( | 1154 | vMgrAuthenBeginSta( |
1155 | IN void *hDeviceContext, | 1155 | void *hDeviceContext, |
1156 | IN PSMgmtObject pMgmt, | 1156 | PSMgmtObject pMgmt, |
1157 | OUT PCMD_STATUS pStatus | 1157 | OUT PCMD_STATUS pStatus |
1158 | ) | 1158 | ) |
1159 | { | 1159 | { |
@@ -1210,10 +1210,10 @@ vMgrAuthenBeginSta( | |||
1210 | 1210 | ||
1211 | void | 1211 | void |
1212 | vMgrDeAuthenBeginSta( | 1212 | vMgrDeAuthenBeginSta( |
1213 | IN void *hDeviceContext, | 1213 | void *hDeviceContext, |
1214 | IN PSMgmtObject pMgmt, | 1214 | PSMgmtObject pMgmt, |
1215 | IN PBYTE abyDestAddress, | 1215 | PBYTE abyDestAddress, |
1216 | IN WORD wReason, | 1216 | WORD wReason, |
1217 | OUT PCMD_STATUS pStatus | 1217 | OUT PCMD_STATUS pStatus |
1218 | ) | 1218 | ) |
1219 | { | 1219 | { |
@@ -1267,9 +1267,9 @@ vMgrDeAuthenBeginSta( | |||
1267 | static | 1267 | static |
1268 | void | 1268 | void |
1269 | s_vMgrRxAuthentication( | 1269 | s_vMgrRxAuthentication( |
1270 | IN PSDevice pDevice, | 1270 | PSDevice pDevice, |
1271 | IN PSMgmtObject pMgmt, | 1271 | PSMgmtObject pMgmt, |
1272 | IN PSRxMgmtPacket pRxPacket | 1272 | PSRxMgmtPacket pRxPacket |
1273 | ) | 1273 | ) |
1274 | { | 1274 | { |
1275 | WLAN_FR_AUTHEN sFrame; | 1275 | WLAN_FR_AUTHEN sFrame; |
@@ -1325,9 +1325,9 @@ s_vMgrRxAuthentication( | |||
1325 | static | 1325 | static |
1326 | void | 1326 | void |
1327 | s_vMgrRxAuthenSequence_1( | 1327 | s_vMgrRxAuthenSequence_1( |
1328 | IN PSDevice pDevice, | 1328 | PSDevice pDevice, |
1329 | IN PSMgmtObject pMgmt, | 1329 | PSMgmtObject pMgmt, |
1330 | IN PWLAN_FR_AUTHEN pFrame | 1330 | PWLAN_FR_AUTHEN pFrame |
1331 | ) | 1331 | ) |
1332 | { | 1332 | { |
1333 | PSTxMgmtPacket pTxPacket = NULL; | 1333 | PSTxMgmtPacket pTxPacket = NULL; |
@@ -1431,9 +1431,9 @@ s_vMgrRxAuthenSequence_1( | |||
1431 | static | 1431 | static |
1432 | void | 1432 | void |
1433 | s_vMgrRxAuthenSequence_2( | 1433 | s_vMgrRxAuthenSequence_2( |
1434 | IN PSDevice pDevice, | 1434 | PSDevice pDevice, |
1435 | IN PSMgmtObject pMgmt, | 1435 | PSMgmtObject pMgmt, |
1436 | IN PWLAN_FR_AUTHEN pFrame | 1436 | PWLAN_FR_AUTHEN pFrame |
1437 | ) | 1437 | ) |
1438 | { | 1438 | { |
1439 | WLAN_FR_AUTHEN sFrame; | 1439 | WLAN_FR_AUTHEN sFrame; |
@@ -1533,9 +1533,9 @@ s_vMgrRxAuthenSequence_2( | |||
1533 | static | 1533 | static |
1534 | void | 1534 | void |
1535 | s_vMgrRxAuthenSequence_3( | 1535 | s_vMgrRxAuthenSequence_3( |
1536 | IN PSDevice pDevice, | 1536 | PSDevice pDevice, |
1537 | IN PSMgmtObject pMgmt, | 1537 | PSMgmtObject pMgmt, |
1538 | IN PWLAN_FR_AUTHEN pFrame | 1538 | PWLAN_FR_AUTHEN pFrame |
1539 | ) | 1539 | ) |
1540 | { | 1540 | { |
1541 | PSTxMgmtPacket pTxPacket = NULL; | 1541 | PSTxMgmtPacket pTxPacket = NULL; |
@@ -1621,9 +1621,9 @@ reply: | |||
1621 | static | 1621 | static |
1622 | void | 1622 | void |
1623 | s_vMgrRxAuthenSequence_4( | 1623 | s_vMgrRxAuthenSequence_4( |
1624 | IN PSDevice pDevice, | 1624 | PSDevice pDevice, |
1625 | IN PSMgmtObject pMgmt, | 1625 | PSMgmtObject pMgmt, |
1626 | IN PWLAN_FR_AUTHEN pFrame | 1626 | PWLAN_FR_AUTHEN pFrame |
1627 | ) | 1627 | ) |
1628 | { | 1628 | { |
1629 | 1629 | ||
@@ -1660,9 +1660,9 @@ s_vMgrRxAuthenSequence_4( | |||
1660 | static | 1660 | static |
1661 | void | 1661 | void |
1662 | s_vMgrRxDisassociation( | 1662 | s_vMgrRxDisassociation( |
1663 | IN PSDevice pDevice, | 1663 | PSDevice pDevice, |
1664 | IN PSMgmtObject pMgmt, | 1664 | PSMgmtObject pMgmt, |
1665 | IN PSRxMgmtPacket pRxPacket | 1665 | PSRxMgmtPacket pRxPacket |
1666 | ) | 1666 | ) |
1667 | { | 1667 | { |
1668 | WLAN_FR_DISASSOC sFrame; | 1668 | WLAN_FR_DISASSOC sFrame; |
@@ -1739,9 +1739,9 @@ s_vMgrRxDisassociation( | |||
1739 | static | 1739 | static |
1740 | void | 1740 | void |
1741 | s_vMgrRxDeauthentication( | 1741 | s_vMgrRxDeauthentication( |
1742 | IN PSDevice pDevice, | 1742 | PSDevice pDevice, |
1743 | IN PSMgmtObject pMgmt, | 1743 | PSMgmtObject pMgmt, |
1744 | IN PSRxMgmtPacket pRxPacket | 1744 | PSRxMgmtPacket pRxPacket |
1745 | ) | 1745 | ) |
1746 | { | 1746 | { |
1747 | WLAN_FR_DEAUTHEN sFrame; | 1747 | WLAN_FR_DEAUTHEN sFrame; |
@@ -1827,8 +1827,8 @@ s_vMgrRxDeauthentication( | |||
1827 | -*/ | 1827 | -*/ |
1828 | static BOOL | 1828 | static BOOL |
1829 | ChannelExceedZoneType( | 1829 | ChannelExceedZoneType( |
1830 | IN PSDevice pDevice, | 1830 | PSDevice pDevice, |
1831 | IN BYTE byCurrChannel | 1831 | BYTE byCurrChannel |
1832 | ) | 1832 | ) |
1833 | { | 1833 | { |
1834 | BOOL exceed=FALSE; | 1834 | BOOL exceed=FALSE; |
@@ -1865,10 +1865,10 @@ ChannelExceedZoneType( | |||
1865 | static | 1865 | static |
1866 | void | 1866 | void |
1867 | s_vMgrRxBeacon( | 1867 | s_vMgrRxBeacon( |
1868 | IN PSDevice pDevice, | 1868 | PSDevice pDevice, |
1869 | IN PSMgmtObject pMgmt, | 1869 | PSMgmtObject pMgmt, |
1870 | IN PSRxMgmtPacket pRxPacket, | 1870 | PSRxMgmtPacket pRxPacket, |
1871 | IN BOOL bInScan | 1871 | BOOL bInScan |
1872 | ) | 1872 | ) |
1873 | { | 1873 | { |
1874 | 1874 | ||
@@ -2386,7 +2386,7 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==TRUE) | |||
2386 | -*/ | 2386 | -*/ |
2387 | void | 2387 | void |
2388 | vMgrCreateOwnIBSS( | 2388 | vMgrCreateOwnIBSS( |
2389 | IN void *hDeviceContext, | 2389 | void *hDeviceContext, |
2390 | OUT PCMD_STATUS pStatus | 2390 | OUT PCMD_STATUS pStatus |
2391 | ) | 2391 | ) |
2392 | { | 2392 | { |
@@ -2653,7 +2653,7 @@ vMgrCreateOwnIBSS( | |||
2653 | 2653 | ||
2654 | void | 2654 | void |
2655 | vMgrJoinBSSBegin( | 2655 | vMgrJoinBSSBegin( |
2656 | IN void *hDeviceContext, | 2656 | void *hDeviceContext, |
2657 | OUT PCMD_STATUS pStatus | 2657 | OUT PCMD_STATUS pStatus |
2658 | ) | 2658 | ) |
2659 | { | 2659 | { |
@@ -2922,9 +2922,9 @@ vMgrJoinBSSBegin( | |||
2922 | static | 2922 | static |
2923 | void | 2923 | void |
2924 | s_vMgrSynchBSS ( | 2924 | s_vMgrSynchBSS ( |
2925 | IN PSDevice pDevice, | 2925 | PSDevice pDevice, |
2926 | IN UINT uBSSMode, | 2926 | UINT uBSSMode, |
2927 | IN PKnownBSS pCurr, | 2927 | PKnownBSS pCurr, |
2928 | OUT PCMD_STATUS pStatus | 2928 | OUT PCMD_STATUS pStatus |
2929 | ) | 2929 | ) |
2930 | { | 2930 | { |
@@ -3089,8 +3089,8 @@ s_vMgrSynchBSS ( | |||
3089 | //mike add: fix NetworkManager 0.7.0 hidden ssid mode in WPA encryption | 3089 | //mike add: fix NetworkManager 0.7.0 hidden ssid mode in WPA encryption |
3090 | // ,need reset eAuthenMode and eEncryptionStatus | 3090 | // ,need reset eAuthenMode and eEncryptionStatus |
3091 | static void Encyption_Rebuild( | 3091 | static void Encyption_Rebuild( |
3092 | IN PSDevice pDevice, | 3092 | PSDevice pDevice, |
3093 | IN PKnownBSS pCurr | 3093 | PKnownBSS pCurr |
3094 | ) | 3094 | ) |
3095 | { | 3095 | { |
3096 | PSMgmtObject pMgmt = &(pDevice->sMgmtObj); | 3096 | PSMgmtObject pMgmt = &(pDevice->sMgmtObj); |
@@ -3147,8 +3147,8 @@ s_vMgrSynchBSS ( | |||
3147 | static | 3147 | static |
3148 | void | 3148 | void |
3149 | s_vMgrFormatTIM( | 3149 | s_vMgrFormatTIM( |
3150 | IN PSMgmtObject pMgmt, | 3150 | PSMgmtObject pMgmt, |
3151 | IN PWLAN_IE_TIM pTIM | 3151 | PWLAN_IE_TIM pTIM |
3152 | ) | 3152 | ) |
3153 | { | 3153 | { |
3154 | BYTE byMask[8] = {1, 2, 4, 8, 0x10, 0x20, 0x40, 0x80}; | 3154 | BYTE byMask[8] = {1, 2, 4, 8, 0x10, 0x20, 0x40, 0x80}; |
@@ -3222,16 +3222,16 @@ s_vMgrFormatTIM( | |||
3222 | static | 3222 | static |
3223 | PSTxMgmtPacket | 3223 | PSTxMgmtPacket |
3224 | s_MgrMakeBeacon( | 3224 | s_MgrMakeBeacon( |
3225 | IN PSDevice pDevice, | 3225 | PSDevice pDevice, |
3226 | IN PSMgmtObject pMgmt, | 3226 | PSMgmtObject pMgmt, |
3227 | IN WORD wCurrCapInfo, | 3227 | WORD wCurrCapInfo, |
3228 | IN WORD wCurrBeaconPeriod, | 3228 | WORD wCurrBeaconPeriod, |
3229 | IN UINT uCurrChannel, | 3229 | UINT uCurrChannel, |
3230 | IN WORD wCurrATIMWinodw, | 3230 | WORD wCurrATIMWinodw, |
3231 | IN PWLAN_IE_SSID pCurrSSID, | 3231 | PWLAN_IE_SSID pCurrSSID, |
3232 | IN PBYTE pCurrBSSID, | 3232 | PBYTE pCurrBSSID, |
3233 | IN PWLAN_IE_SUPP_RATES pCurrSuppRates, | 3233 | PWLAN_IE_SUPP_RATES pCurrSuppRates, |
3234 | IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates | 3234 | PWLAN_IE_SUPP_RATES pCurrExtSuppRates |
3235 | ) | 3235 | ) |
3236 | { | 3236 | { |
3237 | PSTxMgmtPacket pTxPacket = NULL; | 3237 | PSTxMgmtPacket pTxPacket = NULL; |
@@ -3451,18 +3451,18 @@ s_MgrMakeBeacon( | |||
3451 | 3451 | ||
3452 | PSTxMgmtPacket | 3452 | PSTxMgmtPacket |
3453 | s_MgrMakeProbeResponse( | 3453 | s_MgrMakeProbeResponse( |
3454 | IN PSDevice pDevice, | 3454 | PSDevice pDevice, |
3455 | IN PSMgmtObject pMgmt, | 3455 | PSMgmtObject pMgmt, |
3456 | IN WORD wCurrCapInfo, | 3456 | WORD wCurrCapInfo, |
3457 | IN WORD wCurrBeaconPeriod, | 3457 | WORD wCurrBeaconPeriod, |
3458 | IN UINT uCurrChannel, | 3458 | UINT uCurrChannel, |
3459 | IN WORD wCurrATIMWinodw, | 3459 | WORD wCurrATIMWinodw, |
3460 | IN PBYTE pDstAddr, | 3460 | PBYTE pDstAddr, |
3461 | IN PWLAN_IE_SSID pCurrSSID, | 3461 | PWLAN_IE_SSID pCurrSSID, |
3462 | IN PBYTE pCurrBSSID, | 3462 | PBYTE pCurrBSSID, |
3463 | IN PWLAN_IE_SUPP_RATES pCurrSuppRates, | 3463 | PWLAN_IE_SUPP_RATES pCurrSuppRates, |
3464 | IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates, | 3464 | PWLAN_IE_SUPP_RATES pCurrExtSuppRates, |
3465 | IN BYTE byPHYType | 3465 | BYTE byPHYType |
3466 | ) | 3466 | ) |
3467 | { | 3467 | { |
3468 | PSTxMgmtPacket pTxPacket = NULL; | 3468 | PSTxMgmtPacket pTxPacket = NULL; |
@@ -3640,14 +3640,14 @@ s_MgrMakeProbeResponse( | |||
3640 | 3640 | ||
3641 | PSTxMgmtPacket | 3641 | PSTxMgmtPacket |
3642 | s_MgrMakeAssocRequest( | 3642 | s_MgrMakeAssocRequest( |
3643 | IN PSDevice pDevice, | 3643 | PSDevice pDevice, |
3644 | IN PSMgmtObject pMgmt, | 3644 | PSMgmtObject pMgmt, |
3645 | IN PBYTE pDAddr, | 3645 | PBYTE pDAddr, |
3646 | IN WORD wCurrCapInfo, | 3646 | WORD wCurrCapInfo, |
3647 | IN WORD wListenInterval, | 3647 | WORD wListenInterval, |
3648 | IN PWLAN_IE_SSID pCurrSSID, | 3648 | PWLAN_IE_SSID pCurrSSID, |
3649 | IN PWLAN_IE_SUPP_RATES pCurrRates, | 3649 | PWLAN_IE_SUPP_RATES pCurrRates, |
3650 | IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates | 3650 | PWLAN_IE_SUPP_RATES pCurrExtSuppRates |
3651 | ) | 3651 | ) |
3652 | { | 3652 | { |
3653 | PSTxMgmtPacket pTxPacket = NULL; | 3653 | PSTxMgmtPacket pTxPacket = NULL; |
@@ -3915,14 +3915,14 @@ s_MgrMakeAssocRequest( | |||
3915 | 3915 | ||
3916 | PSTxMgmtPacket | 3916 | PSTxMgmtPacket |
3917 | s_MgrMakeReAssocRequest( | 3917 | s_MgrMakeReAssocRequest( |
3918 | IN PSDevice pDevice, | 3918 | PSDevice pDevice, |
3919 | IN PSMgmtObject pMgmt, | 3919 | PSMgmtObject pMgmt, |
3920 | IN PBYTE pDAddr, | 3920 | PBYTE pDAddr, |
3921 | IN WORD wCurrCapInfo, | 3921 | WORD wCurrCapInfo, |
3922 | IN WORD wListenInterval, | 3922 | WORD wListenInterval, |
3923 | IN PWLAN_IE_SSID pCurrSSID, | 3923 | PWLAN_IE_SSID pCurrSSID, |
3924 | IN PWLAN_IE_SUPP_RATES pCurrRates, | 3924 | PWLAN_IE_SUPP_RATES pCurrRates, |
3925 | IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates | 3925 | PWLAN_IE_SUPP_RATES pCurrExtSuppRates |
3926 | ) | 3926 | ) |
3927 | { | 3927 | { |
3928 | PSTxMgmtPacket pTxPacket = NULL; | 3928 | PSTxMgmtPacket pTxPacket = NULL; |
@@ -4167,14 +4167,14 @@ s_MgrMakeReAssocRequest( | |||
4167 | 4167 | ||
4168 | PSTxMgmtPacket | 4168 | PSTxMgmtPacket |
4169 | s_MgrMakeAssocResponse( | 4169 | s_MgrMakeAssocResponse( |
4170 | IN PSDevice pDevice, | 4170 | PSDevice pDevice, |
4171 | IN PSMgmtObject pMgmt, | 4171 | PSMgmtObject pMgmt, |
4172 | IN WORD wCurrCapInfo, | 4172 | WORD wCurrCapInfo, |
4173 | IN WORD wAssocStatus, | 4173 | WORD wAssocStatus, |
4174 | IN WORD wAssocAID, | 4174 | WORD wAssocAID, |
4175 | IN PBYTE pDstAddr, | 4175 | PBYTE pDstAddr, |
4176 | IN PWLAN_IE_SUPP_RATES pCurrSuppRates, | 4176 | PWLAN_IE_SUPP_RATES pCurrSuppRates, |
4177 | IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates | 4177 | PWLAN_IE_SUPP_RATES pCurrExtSuppRates |
4178 | ) | 4178 | ) |
4179 | { | 4179 | { |
4180 | PSTxMgmtPacket pTxPacket = NULL; | 4180 | PSTxMgmtPacket pTxPacket = NULL; |
@@ -4241,14 +4241,14 @@ s_MgrMakeAssocResponse( | |||
4241 | 4241 | ||
4242 | PSTxMgmtPacket | 4242 | PSTxMgmtPacket |
4243 | s_MgrMakeReAssocResponse( | 4243 | s_MgrMakeReAssocResponse( |
4244 | IN PSDevice pDevice, | 4244 | PSDevice pDevice, |
4245 | IN PSMgmtObject pMgmt, | 4245 | PSMgmtObject pMgmt, |
4246 | IN WORD wCurrCapInfo, | 4246 | WORD wCurrCapInfo, |
4247 | IN WORD wAssocStatus, | 4247 | WORD wAssocStatus, |
4248 | IN WORD wAssocAID, | 4248 | WORD wAssocAID, |
4249 | IN PBYTE pDstAddr, | 4249 | PBYTE pDstAddr, |
4250 | IN PWLAN_IE_SUPP_RATES pCurrSuppRates, | 4250 | PWLAN_IE_SUPP_RATES pCurrSuppRates, |
4251 | IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates | 4251 | PWLAN_IE_SUPP_RATES pCurrExtSuppRates |
4252 | ) | 4252 | ) |
4253 | { | 4253 | { |
4254 | PSTxMgmtPacket pTxPacket = NULL; | 4254 | PSTxMgmtPacket pTxPacket = NULL; |
@@ -4315,9 +4315,9 @@ s_MgrMakeReAssocResponse( | |||
4315 | static | 4315 | static |
4316 | void | 4316 | void |
4317 | s_vMgrRxProbeResponse( | 4317 | s_vMgrRxProbeResponse( |
4318 | IN PSDevice pDevice, | 4318 | PSDevice pDevice, |
4319 | IN PSMgmtObject pMgmt, | 4319 | PSMgmtObject pMgmt, |
4320 | IN PSRxMgmtPacket pRxPacket | 4320 | PSRxMgmtPacket pRxPacket |
4321 | ) | 4321 | ) |
4322 | { | 4322 | { |
4323 | PKnownBSS pBSSList = NULL; | 4323 | PKnownBSS pBSSList = NULL; |
@@ -4440,9 +4440,9 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==TRUE) | |||
4440 | static | 4440 | static |
4441 | void | 4441 | void |
4442 | s_vMgrRxProbeRequest( | 4442 | s_vMgrRxProbeRequest( |
4443 | IN PSDevice pDevice, | 4443 | PSDevice pDevice, |
4444 | IN PSMgmtObject pMgmt, | 4444 | PSMgmtObject pMgmt, |
4445 | IN PSRxMgmtPacket pRxPacket | 4445 | PSRxMgmtPacket pRxPacket |
4446 | ) | 4446 | ) |
4447 | { | 4447 | { |
4448 | WLAN_FR_PROBEREQ sFrame; | 4448 | WLAN_FR_PROBEREQ sFrame; |
@@ -4536,9 +4536,9 @@ s_vMgrRxProbeRequest( | |||
4536 | 4536 | ||
4537 | void | 4537 | void |
4538 | vMgrRxManagePacket( | 4538 | vMgrRxManagePacket( |
4539 | IN void *hDeviceContext, | 4539 | void *hDeviceContext, |
4540 | IN PSMgmtObject pMgmt, | 4540 | PSMgmtObject pMgmt, |
4541 | IN PSRxMgmtPacket pRxPacket | 4541 | PSRxMgmtPacket pRxPacket |
4542 | ) | 4542 | ) |
4543 | { | 4543 | { |
4544 | PSDevice pDevice = (PSDevice)hDeviceContext; | 4544 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -4685,8 +4685,8 @@ vMgrRxManagePacket( | |||
4685 | -*/ | 4685 | -*/ |
4686 | BOOL | 4686 | BOOL |
4687 | bMgrPrepareBeaconToSend( | 4687 | bMgrPrepareBeaconToSend( |
4688 | IN void *hDeviceContext, | 4688 | void *hDeviceContext, |
4689 | IN PSMgmtObject pMgmt | 4689 | PSMgmtObject pMgmt |
4690 | ) | 4690 | ) |
4691 | { | 4691 | { |
4692 | PSDevice pDevice = (PSDevice)hDeviceContext; | 4692 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -4740,8 +4740,8 @@ bMgrPrepareBeaconToSend( | |||
4740 | static | 4740 | static |
4741 | void | 4741 | void |
4742 | s_vMgrLogStatus( | 4742 | s_vMgrLogStatus( |
4743 | IN PSMgmtObject pMgmt, | 4743 | PSMgmtObject pMgmt, |
4744 | IN WORD wStatus | 4744 | WORD wStatus |
4745 | ) | 4745 | ) |
4746 | { | 4746 | { |
4747 | switch( wStatus ){ | 4747 | switch( wStatus ){ |
@@ -4809,9 +4809,9 @@ s_vMgrLogStatus( | |||
4809 | -*/ | 4809 | -*/ |
4810 | BOOL | 4810 | BOOL |
4811 | bAdd_PMKID_Candidate ( | 4811 | bAdd_PMKID_Candidate ( |
4812 | IN void *hDeviceContext, | 4812 | void *hDeviceContext, |
4813 | IN PBYTE pbyBSSID, | 4813 | PBYTE pbyBSSID, |
4814 | IN PSRSNCapObject psRSNCapObj | 4814 | PSRSNCapObject psRSNCapObj |
4815 | ) | 4815 | ) |
4816 | { | 4816 | { |
4817 | PSDevice pDevice = (PSDevice)hDeviceContext; | 4817 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -4870,7 +4870,7 @@ bAdd_PMKID_Candidate ( | |||
4870 | -*/ | 4870 | -*/ |
4871 | void | 4871 | void |
4872 | vFlush_PMKID_Candidate ( | 4872 | vFlush_PMKID_Candidate ( |
4873 | IN void *hDeviceContext | 4873 | void *hDeviceContext |
4874 | ) | 4874 | ) |
4875 | { | 4875 | { |
4876 | PSDevice pDevice = (PSDevice)hDeviceContext; | 4876 | PSDevice pDevice = (PSDevice)hDeviceContext; |
@@ -4883,8 +4883,8 @@ vFlush_PMKID_Candidate ( | |||
4883 | 4883 | ||
4884 | static BOOL | 4884 | static BOOL |
4885 | s_bCipherMatch ( | 4885 | s_bCipherMatch ( |
4886 | IN PKnownBSS pBSSNode, | 4886 | PKnownBSS pBSSNode, |
4887 | IN NDIS_802_11_ENCRYPTION_STATUS EncStatus, | 4887 | NDIS_802_11_ENCRYPTION_STATUS EncStatus, |
4888 | OUT PBYTE pbyCCSPK, | 4888 | OUT PBYTE pbyCCSPK, |
4889 | OUT PBYTE pbyCCSGK | 4889 | OUT PBYTE pbyCCSGK |
4890 | ) | 4890 | ) |
diff --git a/drivers/staging/vt6655/wmgr.h b/drivers/staging/vt6655/wmgr.h index cee86028181..a86406e63bc 100644 --- a/drivers/staging/vt6655/wmgr.h +++ b/drivers/staging/vt6655/wmgr.h | |||
@@ -401,102 +401,102 @@ typedef struct tagSMgmtObject | |||
401 | 401 | ||
402 | void | 402 | void |
403 | vMgrObjectInit( | 403 | vMgrObjectInit( |
404 | IN void *hDeviceContext | 404 | void *hDeviceContext |
405 | ); | 405 | ); |
406 | 406 | ||
407 | void | 407 | void |
408 | vMgrTimerInit( | 408 | vMgrTimerInit( |
409 | IN void *hDeviceContext | 409 | void *hDeviceContext |
410 | ); | 410 | ); |
411 | 411 | ||
412 | void | 412 | void |
413 | vMgrObjectReset( | 413 | vMgrObjectReset( |
414 | IN void *hDeviceContext | 414 | void *hDeviceContext |
415 | ); | 415 | ); |
416 | 416 | ||
417 | void | 417 | void |
418 | vMgrAssocBeginSta( | 418 | vMgrAssocBeginSta( |
419 | IN void *hDeviceContext, | 419 | void *hDeviceContext, |
420 | IN PSMgmtObject pMgmt, | 420 | PSMgmtObject pMgmt, |
421 | OUT PCMD_STATUS pStatus | 421 | OUT PCMD_STATUS pStatus |
422 | ); | 422 | ); |
423 | 423 | ||
424 | void | 424 | void |
425 | vMgrReAssocBeginSta( | 425 | vMgrReAssocBeginSta( |
426 | IN void *hDeviceContext, | 426 | void *hDeviceContext, |
427 | IN PSMgmtObject pMgmt, | 427 | PSMgmtObject pMgmt, |
428 | OUT PCMD_STATUS pStatus | 428 | OUT PCMD_STATUS pStatus |
429 | ); | 429 | ); |
430 | 430 | ||
431 | void | 431 | void |
432 | vMgrDisassocBeginSta( | 432 | vMgrDisassocBeginSta( |
433 | IN void *hDeviceContext, | 433 | void *hDeviceContext, |
434 | IN PSMgmtObject pMgmt, | 434 | PSMgmtObject pMgmt, |
435 | IN PBYTE abyDestAddress, | 435 | PBYTE abyDestAddress, |
436 | IN WORD wReason, | 436 | WORD wReason, |
437 | OUT PCMD_STATUS pStatus | 437 | OUT PCMD_STATUS pStatus |
438 | ); | 438 | ); |
439 | 439 | ||
440 | void | 440 | void |
441 | vMgrAuthenBeginSta( | 441 | vMgrAuthenBeginSta( |
442 | IN void *hDeviceContext, | 442 | void *hDeviceContext, |
443 | IN PSMgmtObject pMgmt, | 443 | PSMgmtObject pMgmt, |
444 | OUT PCMD_STATUS pStatus | 444 | OUT PCMD_STATUS pStatus |
445 | ); | 445 | ); |
446 | 446 | ||
447 | void | 447 | void |
448 | vMgrCreateOwnIBSS( | 448 | vMgrCreateOwnIBSS( |
449 | IN void *hDeviceContext, | 449 | void *hDeviceContext, |
450 | OUT PCMD_STATUS pStatus | 450 | OUT PCMD_STATUS pStatus |
451 | ); | 451 | ); |
452 | 452 | ||
453 | void | 453 | void |
454 | vMgrJoinBSSBegin( | 454 | vMgrJoinBSSBegin( |
455 | IN void *hDeviceContext, | 455 | void *hDeviceContext, |
456 | OUT PCMD_STATUS pStatus | 456 | OUT PCMD_STATUS pStatus |
457 | ); | 457 | ); |
458 | 458 | ||
459 | void | 459 | void |
460 | vMgrRxManagePacket( | 460 | vMgrRxManagePacket( |
461 | IN void *hDeviceContext, | 461 | void *hDeviceContext, |
462 | IN PSMgmtObject pMgmt, | 462 | PSMgmtObject pMgmt, |
463 | IN PSRxMgmtPacket pRxPacket | 463 | PSRxMgmtPacket pRxPacket |
464 | ); | 464 | ); |
465 | 465 | ||
466 | /* | 466 | /* |
467 | void | 467 | void |
468 | vMgrScanBegin( | 468 | vMgrScanBegin( |
469 | IN void *hDeviceContext, | 469 | void *hDeviceContext, |
470 | OUT PCMD_STATUS pStatus | 470 | OUT PCMD_STATUS pStatus |
471 | ); | 471 | ); |
472 | */ | 472 | */ |
473 | 473 | ||
474 | void | 474 | void |
475 | vMgrDeAuthenBeginSta( | 475 | vMgrDeAuthenBeginSta( |
476 | IN void *hDeviceContext, | 476 | void *hDeviceContext, |
477 | IN PSMgmtObject pMgmt, | 477 | PSMgmtObject pMgmt, |
478 | IN PBYTE abyDestAddress, | 478 | PBYTE abyDestAddress, |
479 | IN WORD wReason, | 479 | WORD wReason, |
480 | OUT PCMD_STATUS pStatus | 480 | OUT PCMD_STATUS pStatus |
481 | ); | 481 | ); |
482 | 482 | ||
483 | BOOL | 483 | BOOL |
484 | bMgrPrepareBeaconToSend( | 484 | bMgrPrepareBeaconToSend( |
485 | IN void *hDeviceContext, | 485 | void *hDeviceContext, |
486 | IN PSMgmtObject pMgmt | 486 | PSMgmtObject pMgmt |
487 | ); | 487 | ); |
488 | 488 | ||
489 | 489 | ||
490 | BOOL | 490 | BOOL |
491 | bAdd_PMKID_Candidate ( | 491 | bAdd_PMKID_Candidate ( |
492 | IN void *hDeviceContext, | 492 | void *hDeviceContext, |
493 | IN PBYTE pbyBSSID, | 493 | PBYTE pbyBSSID, |
494 | IN PSRSNCapObject psRSNCapObj | 494 | PSRSNCapObject psRSNCapObj |
495 | ); | 495 | ); |
496 | 496 | ||
497 | void | 497 | void |
498 | vFlush_PMKID_Candidate ( | 498 | vFlush_PMKID_Candidate ( |
499 | IN void *hDeviceContext | 499 | void *hDeviceContext |
500 | ); | 500 | ); |
501 | 501 | ||
502 | #endif // __WMGR_H__ | 502 | #endif // __WMGR_H__ |
diff --git a/drivers/staging/vt6655/wpa.c b/drivers/staging/vt6655/wpa.c index 75ae83814d8..da5c814e200 100644 --- a/drivers/staging/vt6655/wpa.c +++ b/drivers/staging/vt6655/wpa.c | |||
@@ -70,7 +70,7 @@ const BYTE abyOUI05[4] = { 0x00, 0x50, 0xf2, 0x05 }; | |||
70 | 70 | ||
71 | void | 71 | void |
72 | WPA_ClearRSN ( | 72 | WPA_ClearRSN ( |
73 | IN PKnownBSS pBSSList | 73 | PKnownBSS pBSSList |
74 | ) | 74 | ) |
75 | { | 75 | { |
76 | int ii; | 76 | int ii; |
@@ -106,8 +106,8 @@ WPA_ClearRSN ( | |||
106 | -*/ | 106 | -*/ |
107 | void | 107 | void |
108 | WPA_ParseRSN ( | 108 | WPA_ParseRSN ( |
109 | IN PKnownBSS pBSSList, | 109 | PKnownBSS pBSSList, |
110 | IN PWLAN_IE_RSN_EXT pRSN | 110 | PWLAN_IE_RSN_EXT pRSN |
111 | ) | 111 | ) |
112 | { | 112 | { |
113 | PWLAN_IE_RSN_AUTH pIE_RSN_Auth = NULL; | 113 | PWLAN_IE_RSN_AUTH pIE_RSN_Auth = NULL; |
@@ -241,7 +241,7 @@ BOOL | |||
241 | WPA_SearchRSN ( | 241 | WPA_SearchRSN ( |
242 | BYTE byCmd, | 242 | BYTE byCmd, |
243 | BYTE byEncrypt, | 243 | BYTE byEncrypt, |
244 | IN PKnownBSS pBSSList | 244 | PKnownBSS pBSSList |
245 | ) | 245 | ) |
246 | { | 246 | { |
247 | int ii; | 247 | int ii; |
@@ -299,7 +299,7 @@ WPA_SearchRSN ( | |||
299 | -*/ | 299 | -*/ |
300 | BOOL | 300 | BOOL |
301 | WPAb_Is_RSN ( | 301 | WPAb_Is_RSN ( |
302 | IN PWLAN_IE_RSN_EXT pRSN | 302 | PWLAN_IE_RSN_EXT pRSN |
303 | ) | 303 | ) |
304 | { | 304 | { |
305 | if (pRSN == NULL) | 305 | if (pRSN == NULL) |
diff --git a/drivers/staging/vt6655/wpa.h b/drivers/staging/vt6655/wpa.h index d77c7bb2274..80d990b09d2 100644 --- a/drivers/staging/vt6655/wpa.h +++ b/drivers/staging/vt6655/wpa.h | |||
@@ -60,25 +60,25 @@ | |||
60 | 60 | ||
61 | void | 61 | void |
62 | WPA_ClearRSN( | 62 | WPA_ClearRSN( |
63 | IN PKnownBSS pBSSList | 63 | PKnownBSS pBSSList |
64 | ); | 64 | ); |
65 | 65 | ||
66 | void | 66 | void |
67 | WPA_ParseRSN( | 67 | WPA_ParseRSN( |
68 | IN PKnownBSS pBSSList, | 68 | PKnownBSS pBSSList, |
69 | IN PWLAN_IE_RSN_EXT pRSN | 69 | PWLAN_IE_RSN_EXT pRSN |
70 | ); | 70 | ); |
71 | 71 | ||
72 | BOOL | 72 | BOOL |
73 | WPA_SearchRSN( | 73 | WPA_SearchRSN( |
74 | BYTE byCmd, | 74 | BYTE byCmd, |
75 | BYTE byEncrypt, | 75 | BYTE byEncrypt, |
76 | IN PKnownBSS pBSSList | 76 | PKnownBSS pBSSList |
77 | ); | 77 | ); |
78 | 78 | ||
79 | BOOL | 79 | BOOL |
80 | WPAb_Is_RSN( | 80 | WPAb_Is_RSN( |
81 | IN PWLAN_IE_RSN_EXT pRSN | 81 | PWLAN_IE_RSN_EXT pRSN |
82 | ); | 82 | ); |
83 | 83 | ||
84 | #endif // __WPA_H__ | 84 | #endif // __WPA_H__ |
diff --git a/drivers/staging/vt6655/wpa2.c b/drivers/staging/vt6655/wpa2.c index 3f377b6a2ba..102a18a835b 100644 --- a/drivers/staging/vt6655/wpa2.c +++ b/drivers/staging/vt6655/wpa2.c | |||
@@ -74,7 +74,7 @@ const BYTE abyOUIPSK[4] = { 0x00, 0x0F, 0xAC, 0x02 }; | |||
74 | -*/ | 74 | -*/ |
75 | void | 75 | void |
76 | WPA2_ClearRSN ( | 76 | WPA2_ClearRSN ( |
77 | IN PKnownBSS pBSSNode | 77 | PKnownBSS pBSSNode |
78 | ) | 78 | ) |
79 | { | 79 | { |
80 | int ii; | 80 | int ii; |
@@ -109,8 +109,8 @@ WPA2_ClearRSN ( | |||
109 | -*/ | 109 | -*/ |
110 | void | 110 | void |
111 | WPA2vParseRSN ( | 111 | WPA2vParseRSN ( |
112 | IN PKnownBSS pBSSNode, | 112 | PKnownBSS pBSSNode, |
113 | IN PWLAN_IE_RSN pRSN | 113 | PWLAN_IE_RSN pRSN |
114 | ) | 114 | ) |
115 | { | 115 | { |
116 | int i, j; | 116 | int i, j; |
@@ -263,7 +263,7 @@ WPA2vParseRSN ( | |||
263 | -*/ | 263 | -*/ |
264 | UINT | 264 | UINT |
265 | WPA2uSetIEs( | 265 | WPA2uSetIEs( |
266 | IN void *pMgmtHandle, | 266 | void *pMgmtHandle, |
267 | OUT PWLAN_IE_RSN pRSNIEs | 267 | OUT PWLAN_IE_RSN pRSNIEs |
268 | ) | 268 | ) |
269 | { | 269 | { |
diff --git a/drivers/staging/vt6655/wpa2.h b/drivers/staging/vt6655/wpa2.h index 7becc749c9f..1f2a02d2a57 100644 --- a/drivers/staging/vt6655/wpa2.h +++ b/drivers/staging/vt6655/wpa2.h | |||
@@ -60,18 +60,18 @@ typedef struct tagSPMKIDCache { | |||
60 | 60 | ||
61 | void | 61 | void |
62 | WPA2_ClearRSN ( | 62 | WPA2_ClearRSN ( |
63 | IN PKnownBSS pBSSNode | 63 | PKnownBSS pBSSNode |
64 | ); | 64 | ); |
65 | 65 | ||
66 | void | 66 | void |
67 | WPA2vParseRSN ( | 67 | WPA2vParseRSN ( |
68 | IN PKnownBSS pBSSNode, | 68 | PKnownBSS pBSSNode, |
69 | IN PWLAN_IE_RSN pRSN | 69 | PWLAN_IE_RSN pRSN |
70 | ); | 70 | ); |
71 | 71 | ||
72 | UINT | 72 | UINT |
73 | WPA2uSetIEs( | 73 | WPA2uSetIEs( |
74 | IN void *pMgmtHandle, | 74 | void *pMgmtHandle, |
75 | OUT PWLAN_IE_RSN pRSNIEs | 75 | OUT PWLAN_IE_RSN pRSNIEs |
76 | ); | 76 | ); |
77 | 77 | ||