1 /* |
1 /* |
2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of the License "Eclipse Public License v1.0" |
5 * under the terms of the License "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
95 // ----------------------------------------------------------------------------- |
95 // ----------------------------------------------------------------------------- |
96 // |
96 // |
97 // ----------------------------------------------------------------------------- |
97 // ----------------------------------------------------------------------------- |
98 // |
98 // |
99 TBool WlanMacState::SetRcpiTriggerLevel( |
99 TBool WlanMacState::SetRcpiTriggerLevel( |
100 WlanContextImpl& /*aCtxImpl*/, |
100 WlanContextImpl& aCtxImpl, |
101 TUint32 /*aRcpiTrigger*/ ) |
101 TUint32 /*aRcpiTrigger*/ ) |
102 { |
102 { |
103 // not supported in default handler |
103 // not supported in default handler |
104 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
104 #ifndef NDEBUG |
105 |
105 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
106 return EFalse; |
106 #endif |
|
107 OnOidComplete( aCtxImpl, KErrNotSupported ); |
|
108 return EFalse; // no state change |
107 } |
109 } |
108 |
110 |
109 // ----------------------------------------------------------------------------- |
111 // ----------------------------------------------------------------------------- |
110 // |
112 // |
111 // ----------------------------------------------------------------------------- |
113 // ----------------------------------------------------------------------------- |
112 // |
114 // |
113 TBool WlanMacState::AddBroadcastWepKey( |
115 TBool WlanMacState::AddBroadcastWepKey( |
114 WlanContextImpl& /*aCtxImpl*/, |
116 WlanContextImpl& aCtxImpl, |
115 TUint32 /*aKeyIndex*/, |
117 TUint32 /*aKeyIndex*/, |
116 TBool /*aUseAsDefaulKey*/, |
118 TBool /*aUseAsDefaulKey*/, |
117 TUint32 /*aKeyLength*/, |
119 TUint32 /*aKeyLength*/, |
118 const TUint8 /*aKey*/[KMaxWEPKeyLength], |
120 const TUint8 /*aKey*/[KMaxWEPKeyLength], |
119 const TMacAddress& /*aMac*/ ) |
121 const TMacAddress& /*aMac*/ ) |
120 { |
122 { |
121 // not supported in default handler |
123 // not supported in default handler |
122 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
124 #ifndef NDEBUG |
123 return EFalse; |
125 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
126 #endif |
|
127 OnOidComplete( aCtxImpl, KErrNotSupported ); |
|
128 return EFalse; // no state change |
124 } |
129 } |
125 |
130 |
126 // ----------------------------------------------------------------------------- |
131 // ----------------------------------------------------------------------------- |
127 // |
132 // |
128 // ----------------------------------------------------------------------------- |
133 // ----------------------------------------------------------------------------- |
195 // --------------------------------------------------------------------------- |
200 // --------------------------------------------------------------------------- |
196 // |
201 // |
197 // --------------------------------------------------------------------------- |
202 // --------------------------------------------------------------------------- |
198 // |
203 // |
199 TBool WlanMacState::Connect( |
204 TBool WlanMacState::Connect( |
200 WlanContextImpl& /*aCtxImpl*/, |
205 WlanContextImpl& aCtxImpl, |
201 const TSSID& /*aSSID*/, |
206 const TSSID& /*aSSID*/, |
202 const TMacAddress& /*aBSSID*/, |
207 const TMacAddress& /*aBSSID*/, |
203 TUint16 /*aAuthAlgorithmNbr*/, |
208 TUint16 /*aAuthAlgorithmNbr*/, |
204 TEncryptionStatus /*aEncryptionStatus*/, |
209 TEncryptionStatus /*aEncryptionStatus*/, |
205 TBool /*aIsInfra*/, |
210 TBool /*aIsInfra*/, |
207 const TUint8* /*aScanResponseFrameBody*/, |
212 const TUint8* /*aScanResponseFrameBody*/, |
208 const TUint8* /*aIeData*/, |
213 const TUint8* /*aIeData*/, |
209 TUint16 /*aIeDataLength*/ ) |
214 TUint16 /*aIeDataLength*/ ) |
210 { |
215 { |
211 // not supported in default handler |
216 // not supported in default handler |
212 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
217 #ifndef NDEBUG |
213 return EFalse; |
218 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
214 } |
219 #endif |
215 |
220 OnOidComplete( aCtxImpl, KErrNotSupported ); |
216 // ----------------------------------------------------------------------------- |
221 return EFalse; // no state change |
217 // |
222 } |
218 // ----------------------------------------------------------------------------- |
223 |
219 // |
224 // ----------------------------------------------------------------------------- |
220 TBool WlanMacState::Disconnect( WlanContextImpl& /*aCtxImpl*/ ) |
225 // |
221 { |
226 // ----------------------------------------------------------------------------- |
222 // not supported in default handler |
227 // |
223 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
228 TBool WlanMacState::Disconnect( WlanContextImpl& aCtxImpl ) |
224 return EFalse; |
229 { |
|
230 // not supported in default handler |
|
231 #ifndef NDEBUG |
|
232 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
233 #endif |
|
234 OnOidComplete( aCtxImpl, KErrNotSupported ); |
|
235 return EFalse; // no state change |
225 } |
236 } |
226 |
237 |
227 // ----------------------------------------------------------------------------- |
238 // ----------------------------------------------------------------------------- |
228 // |
239 // |
229 // ----------------------------------------------------------------------------- |
240 // ----------------------------------------------------------------------------- |
319 // ----------------------------------------------------------------------------- |
330 // ----------------------------------------------------------------------------- |
320 // |
331 // |
321 // ----------------------------------------------------------------------------- |
332 // ----------------------------------------------------------------------------- |
322 // |
333 // |
323 TBool WlanMacState::StartIBSS( |
334 TBool WlanMacState::StartIBSS( |
324 WlanContextImpl& /*aCtxImpl*/, |
335 WlanContextImpl& aCtxImpl, |
325 const TSSID& /*aSSID*/, |
336 const TSSID& /*aSSID*/, |
326 TUint32 /*aBeaconInterval*/, |
337 TUint32 /*aBeaconInterval*/, |
327 TUint32 /*aAtim*/, |
338 TUint32 /*aAtim*/, |
328 TUint32 /*aChannel*/, |
339 TUint32 /*aChannel*/, |
329 TEncryptionStatus /*aEncryptionStatus*/ ) |
340 TEncryptionStatus /*aEncryptionStatus*/ ) |
330 { |
341 { |
331 // not supported in default handler |
342 // not supported in default handler |
332 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
343 #ifndef NDEBUG |
333 return EFalse; |
344 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
345 #endif |
|
346 OnOidComplete( aCtxImpl, KErrNotSupported ); |
|
347 return EFalse; // no state change |
334 } |
348 } |
335 |
349 |
336 // ----------------------------------------------------------------------------- |
350 // ----------------------------------------------------------------------------- |
337 // |
351 // |
338 // ----------------------------------------------------------------------------- |
352 // ----------------------------------------------------------------------------- |
364 SChannels& /*aChannels*/, |
378 SChannels& /*aChannels*/, |
365 TUint32 /*aMinChannelTime*/, |
379 TUint32 /*aMinChannelTime*/, |
366 TUint32 /*aMaxChannelTime*/, |
380 TUint32 /*aMaxChannelTime*/, |
367 TBool /*aSplitScan*/ ) |
381 TBool /*aSplitScan*/ ) |
368 { |
382 { |
369 OnOidComplete( aCtxImpl, KErrGeneral ); |
383 OnOidComplete( aCtxImpl, KErrNotSupported ); |
370 |
|
371 return EFalse; // no state change |
384 return EFalse; // no state change |
372 } |
385 } |
373 |
386 |
374 // ----------------------------------------------------------------------------- |
387 // ----------------------------------------------------------------------------- |
375 // |
388 // |
398 // ----------------------------------------------------------------------------- |
411 // ----------------------------------------------------------------------------- |
399 // |
412 // |
400 // ----------------------------------------------------------------------------- |
413 // ----------------------------------------------------------------------------- |
401 // |
414 // |
402 TBool WlanMacState::Configure( |
415 TBool WlanMacState::Configure( |
403 WlanContextImpl& /*aCtxImpl*/, |
416 WlanContextImpl& aCtxImpl, |
404 TUint32 /*aRTSThreshold*/, |
417 TUint32 /*aRTSThreshold*/, |
405 TUint32 /*aMaxTxMSDULifetime*/, |
418 TUint32 /*aMaxTxMSDULifetime*/, |
406 TUint32 /*aVoiceCallEntryTimeout*/, |
419 TUint32 /*aVoiceCallEntryTimeout*/, |
407 TUint32 /*aVoiceCallEntryTxThreshold*/, |
420 TUint32 /*aVoiceCallEntryTxThreshold*/, |
408 TUint32 /*aVoiceNullTimeout*/, |
421 TUint32 /*aVoiceNullTimeout*/, |
411 TUint32 /*aspRcpiIndicationLevel*/, |
424 TUint32 /*aspRcpiIndicationLevel*/, |
412 TUint32 /*spTimetoCountPrediction*/, |
425 TUint32 /*spTimetoCountPrediction*/, |
413 TUint32 /*aSpMinIndicationInterval*/ ) |
426 TUint32 /*aSpMinIndicationInterval*/ ) |
414 { |
427 { |
415 // not supported in default handler |
428 // not supported in default handler |
416 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
429 #ifndef NDEBUG |
417 return EFalse; |
430 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
431 #endif |
|
432 OnOidComplete( aCtxImpl, KErrNotSupported ); |
|
433 return EFalse; // no state change |
418 } |
434 } |
419 |
435 |
420 // ----------------------------------------------------------------------------- |
436 // ----------------------------------------------------------------------------- |
421 // |
437 // |
422 // ----------------------------------------------------------------------------- |
438 // ----------------------------------------------------------------------------- |
578 // ----------------------------------------------------------------------------- |
594 // ----------------------------------------------------------------------------- |
579 // |
595 // |
580 // ----------------------------------------------------------------------------- |
596 // ----------------------------------------------------------------------------- |
581 // |
597 // |
582 TBool WlanMacState::ConfigureTxQueueIfNecessary( |
598 TBool WlanMacState::ConfigureTxQueueIfNecessary( |
583 WlanContextImpl& /*aCtxImpl*/, |
599 WlanContextImpl& aCtxImpl, |
584 TQueueId /*aQueueId*/, |
600 TQueueId /*aQueueId*/, |
585 TUint16 /*aMediumTime*/, |
601 TUint16 /*aMediumTime*/, |
586 TUint32 /*aMaxTxMSDULifetime*/ ) |
602 TUint32 /*aMaxTxMSDULifetime*/ ) |
587 { |
603 { |
588 // not supported in default handler |
604 // not supported in default handler |
589 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
605 #ifndef NDEBUG |
590 return EFalse; |
606 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
607 #endif |
|
608 OnOidComplete( aCtxImpl, KErrNotSupported ); |
|
609 return EFalse; // no state change |
591 } |
610 } |
592 |
611 |
593 // ----------------------------------------------------------------------------- |
612 // ----------------------------------------------------------------------------- |
594 // |
613 // |
595 // ----------------------------------------------------------------------------- |
614 // ----------------------------------------------------------------------------- |