|
1 /* |
|
2 * Copyright (c) 2005-2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Declaration of the WlanWhaToDot11TypeConverter class. |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 8 % |
|
20 */ |
|
21 |
|
22 #ifndef T_WLANWHATODOT11TYPECONVERTER_H |
|
23 #define T_WLANWHATODOT11TYPECONVERTER_H |
|
24 |
|
25 #ifndef RD_WLAN_DDK |
|
26 #include <wha.h> |
|
27 #else |
|
28 #include <wlanwha.h> |
|
29 #endif |
|
30 |
|
31 #include "umacoidmsg.h" |
|
32 |
|
33 class WlanContextImpl; |
|
34 struct SSupportedRatesIE; |
|
35 struct SExtendedSupportedRatesIE; |
|
36 |
|
37 /** |
|
38 * Converts WHA types to dot11 types |
|
39 * |
|
40 * @lib wlanumac.lib |
|
41 * @since S60 v3.1 |
|
42 */ |
|
43 class WlanWhaToDot11TypeConverter |
|
44 { |
|
45 |
|
46 public: |
|
47 |
|
48 /** |
|
49 * ?description |
|
50 * |
|
51 * @since S60 3.1 |
|
52 * @param ?arg1 ?description |
|
53 * @param ?arg2 ?description |
|
54 * @return ?description |
|
55 */ |
|
56 static void Convert( |
|
57 WHA::TRate aRateMask, |
|
58 SSupportedRatesIE& aRateIe, |
|
59 SExtendedSupportedRatesIE& aExtRateIe ); |
|
60 |
|
61 /** |
|
62 * Converts scan parameters to WHA types |
|
63 * |
|
64 * @since S60 3.2 |
|
65 * @param aCtxImpl global statemachine context |
|
66 * @param aSsid SSID as non-WHA type |
|
67 * @param aWhaSsid SSID as WHA type |
|
68 * @param aChannels channel information as non-WHA type |
|
69 * @param aMinChannelTime min. time to listen beacons/probe responses |
|
70 * on a channel |
|
71 * @param aMaxChannelTime max. time to listen beacons/probe responses |
|
72 * on a channel |
|
73 * @param aWhaChannels channel information as WHA type |
|
74 * @param aWhaChannelCount number of channels to be scanned |
|
75 * @return ETrue when successful |
|
76 * EFalse when memory allocation fails |
|
77 */ |
|
78 static TBool ConvertToWhaTypes( |
|
79 WlanContextImpl& aCtxImpl, |
|
80 const TSSID* aSsid, |
|
81 WHA::SSSID& aWhaSsid, |
|
82 const SChannels* aChannels, |
|
83 TUint32 aMinChannelTime, |
|
84 TUint32 aMaxChannelTime, |
|
85 WHA::SChannels*& aWhaChannels, |
|
86 TUint8& aWhaChannelCount ); |
|
87 |
|
88 private: |
|
89 |
|
90 WlanWhaToDot11TypeConverter() {}; |
|
91 |
|
92 // Prohibit copy constructor. |
|
93 WlanWhaToDot11TypeConverter( const WlanWhaToDot11TypeConverter& ); |
|
94 // Prohibit assigment operator. |
|
95 WlanWhaToDot11TypeConverter& operator= |
|
96 ( const WlanWhaToDot11TypeConverter& ); |
|
97 |
|
98 }; |
|
99 |
|
100 #endif // T_WLANWHATODOT11TYPECONVERTER_H |