|
1 /* |
|
2 * Copyright (c) 2002-2009 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: Implementation of the WlanMacState class |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 76 % |
|
20 */ |
|
21 |
|
22 #include "config.h" |
|
23 #include "UmacWsaCommand.h" |
|
24 #include "UmacDot11State.h" |
|
25 #include "UmacWsaComplexCommand.h" |
|
26 #include "UmacContextImpl.h" |
|
27 |
|
28 // ================= MEMBER FUNCTIONS ======================= |
|
29 |
|
30 // ----------------------------------------------------------------------------- |
|
31 // |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 TBool WlanMacState::ConfigureAcParams( |
|
35 WlanContextImpl& /*aCtxImpl*/ ) |
|
36 { |
|
37 // not supported in default handler |
|
38 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
39 |
|
40 return EFalse; |
|
41 } |
|
42 |
|
43 // ----------------------------------------------------------------------------- |
|
44 // |
|
45 // ----------------------------------------------------------------------------- |
|
46 // |
|
47 TBool WlanMacState::SetCtsToSelfMib( WlanContextImpl& /*aCtxImpl*/ ) |
|
48 { |
|
49 // not supported in default handler |
|
50 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
51 |
|
52 return EFalse; |
|
53 } |
|
54 |
|
55 // ----------------------------------------------------------------------------- |
|
56 // |
|
57 // ----------------------------------------------------------------------------- |
|
58 // |
|
59 TBool WlanMacState::SetRcpiTriggerLevelMib( |
|
60 WlanContextImpl& /*aCtxImpl*/, |
|
61 TUint32 /*aRcpiTrigger*/, |
|
62 TBool /*aCompleteManagementRequest*/ ) |
|
63 { |
|
64 // not supported in default handler |
|
65 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
66 |
|
67 return EFalse; |
|
68 } |
|
69 |
|
70 // ----------------------------------------------------------------------------- |
|
71 // |
|
72 // ----------------------------------------------------------------------------- |
|
73 // |
|
74 TBool WlanMacState::ConfigureHtBssOperation( WlanContextImpl& /*aCtxImpl*/ ) |
|
75 { |
|
76 // not supported in default handler |
|
77 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
78 |
|
79 return EFalse; |
|
80 } |
|
81 |
|
82 // ----------------------------------------------------------------------------- |
|
83 // |
|
84 // ----------------------------------------------------------------------------- |
|
85 // |
|
86 TBool WlanMacState::ChangePowerMgmtMode( |
|
87 WlanContextImpl& /*aCtxImpl*/ ) |
|
88 { |
|
89 // not supported in default handler |
|
90 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
91 |
|
92 return EFalse; |
|
93 } |
|
94 |
|
95 // ----------------------------------------------------------------------------- |
|
96 // |
|
97 // ----------------------------------------------------------------------------- |
|
98 // |
|
99 TBool WlanMacState::SetRcpiTriggerLevel( |
|
100 WlanContextImpl& /*aCtxImpl*/, |
|
101 TUint32 /*aRcpiTrigger*/ ) |
|
102 { |
|
103 // not supported in default handler |
|
104 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
105 |
|
106 return EFalse; |
|
107 } |
|
108 |
|
109 // ----------------------------------------------------------------------------- |
|
110 // |
|
111 // ----------------------------------------------------------------------------- |
|
112 // |
|
113 TBool WlanMacState::AddBroadcastWepKey( |
|
114 WlanContextImpl& /*aCtxImpl*/, |
|
115 TUint32 /*aKeyIndex*/, |
|
116 TBool /*aUseAsDefaulKey*/, |
|
117 TUint32 /*aKeyLength*/, |
|
118 const TUint8 /*aKey*/[KMaxWEPKeyLength], |
|
119 const TMacAddress& /*aMac*/ ) |
|
120 { |
|
121 // not supported in default handler |
|
122 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
123 return EFalse; |
|
124 } |
|
125 |
|
126 // ----------------------------------------------------------------------------- |
|
127 // |
|
128 // ----------------------------------------------------------------------------- |
|
129 // |
|
130 TBool WlanMacState::AddUnicastWepKey( |
|
131 WlanContextImpl& /*aCtxImpl*/, |
|
132 const ::TMacAddress& /*aMacAddr*/, |
|
133 TUint32 /*aKeyLength*/, |
|
134 const TUint8 /*aKey*/[KMaxWEPKeyLength]) |
|
135 { |
|
136 // not supported in default handler |
|
137 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
138 return EFalse; |
|
139 } |
|
140 |
|
141 // ----------------------------------------------------------------------------- |
|
142 // |
|
143 // ----------------------------------------------------------------------------- |
|
144 // |
|
145 TBool WlanMacState::DisableUserData( |
|
146 WlanContextImpl& /*aCtxImpl*/ ) |
|
147 { |
|
148 // not supported in default handler |
|
149 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
150 return EFalse; |
|
151 } |
|
152 |
|
153 // ----------------------------------------------------------------------------- |
|
154 // |
|
155 // ----------------------------------------------------------------------------- |
|
156 // |
|
157 TBool WlanMacState::EnableUserData( |
|
158 WlanContextImpl& /*aCtxImpl*/ ) |
|
159 { |
|
160 // not supported in default handler |
|
161 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
162 return EFalse; |
|
163 } |
|
164 |
|
165 // ----------------------------------------------------------------------------- |
|
166 // |
|
167 // ----------------------------------------------------------------------------- |
|
168 // |
|
169 TBool WlanMacState::SetPowerMode( |
|
170 WlanContextImpl& /*aCtxImpl*/, |
|
171 TPowerMode /*aPowerMode*/, |
|
172 TBool /*aDisableDynamicPowerModeManagement*/, |
|
173 TWlanWakeUpInterval /*aWakeupModeInLightPs*/, |
|
174 TUint8 /*aListenIntervalInLightPs*/, |
|
175 TWlanWakeUpInterval /*aWakeupModeInDeepPs*/, |
|
176 TUint8 /*aListenIntervalInDeepPs*/ ) |
|
177 { |
|
178 TBool ret( EFalse ); |
|
179 // not supported in default handler |
|
180 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
181 return ret; |
|
182 } |
|
183 |
|
184 // ----------------------------------------------------------------------------- |
|
185 // |
|
186 // ----------------------------------------------------------------------------- |
|
187 // |
|
188 TBool WlanMacState::OnDot11PwrMgmtTransitRequired( WlanContextImpl& /*aCtxImpl*/ ) |
|
189 { |
|
190 // not supported in default handler |
|
191 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
192 return EFalse; |
|
193 } |
|
194 |
|
195 // --------------------------------------------------------------------------- |
|
196 // |
|
197 // --------------------------------------------------------------------------- |
|
198 // |
|
199 TBool WlanMacState::Connect( |
|
200 WlanContextImpl& /*aCtxImpl*/, |
|
201 const TSSID& /*aSSID*/, |
|
202 const TMacAddress& /*aBSSID*/, |
|
203 TUint16 /*aAuthAlgorithmNbr*/, |
|
204 TEncryptionStatus /*aEncryptionStatus*/, |
|
205 TBool /*aIsInfra*/, |
|
206 TUint16 /*aScanResponseFrameBodyLength*/, |
|
207 const TUint8* /*aScanResponseFrameBody*/, |
|
208 const TUint8* /*aIeData*/, |
|
209 TUint16 /*aIeDataLength*/ ) |
|
210 { |
|
211 // not supported in default handler |
|
212 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
213 return EFalse; |
|
214 } |
|
215 |
|
216 // ----------------------------------------------------------------------------- |
|
217 // |
|
218 // ----------------------------------------------------------------------------- |
|
219 // |
|
220 TBool WlanMacState::Disconnect( WlanContextImpl& /*aCtxImpl*/ ) |
|
221 { |
|
222 // not supported in default handler |
|
223 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
224 return EFalse; |
|
225 } |
|
226 |
|
227 // ----------------------------------------------------------------------------- |
|
228 // |
|
229 // ----------------------------------------------------------------------------- |
|
230 // |
|
231 TBool WlanMacState::AddTkIPKey( |
|
232 WlanContextImpl& /*aCtxImpl*/, |
|
233 const TUint8* /*aData*/, |
|
234 TUint32 /*aLength*/, |
|
235 T802Dot11WepKeyId /*aKeyIndex*/, |
|
236 const TMacAddress& /*aMacAddr*/ ) |
|
237 { |
|
238 // not supported in default handler |
|
239 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
240 return EFalse; |
|
241 } |
|
242 |
|
243 // ----------------------------------------------------------------------------- |
|
244 // |
|
245 // ----------------------------------------------------------------------------- |
|
246 // |
|
247 TBool WlanMacState::AddMulticastTKIPKey( |
|
248 WlanContextImpl& /*aCtxImpl*/, |
|
249 T802Dot11WepKeyId /*aKeyIndex*/, |
|
250 TUint32 /*aLength*/, |
|
251 const TUint8* /*aData*/ ) |
|
252 { |
|
253 // not supported in default handler |
|
254 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
255 return EFalse; |
|
256 } |
|
257 |
|
258 // ----------------------------------------------------------------------------- |
|
259 // |
|
260 // ----------------------------------------------------------------------------- |
|
261 // |
|
262 TBool WlanMacState::AddAesKey( |
|
263 WlanContextImpl& /*aCtxImpl*/, |
|
264 const TUint8* /*aData*/, |
|
265 TUint32 /*aLength*/, |
|
266 const TMacAddress& /*aMacAddr*/ ) |
|
267 { |
|
268 // not supported in default handler |
|
269 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
270 return EFalse; |
|
271 } |
|
272 |
|
273 // ----------------------------------------------------------------------------- |
|
274 // |
|
275 // ----------------------------------------------------------------------------- |
|
276 // |
|
277 TBool WlanMacState::AddMulticastAesKey( |
|
278 WlanContextImpl& /*aCtxImpl*/, |
|
279 T802Dot11WepKeyId /*aKeyIndex*/, |
|
280 TUint32 /*aLength*/, |
|
281 const TUint8* /*aData*/ ) |
|
282 { |
|
283 // not supported in default handler |
|
284 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
285 return EFalse; |
|
286 } |
|
287 |
|
288 // ----------------------------------------------------------------------------- |
|
289 // |
|
290 // ----------------------------------------------------------------------------- |
|
291 // |
|
292 TBool WlanMacState::AddMulticastWapiKey( |
|
293 WlanContextImpl& /*aCtxImpl*/, |
|
294 T802Dot11WepKeyId /*aKeyIndex*/, |
|
295 TUint32 /*aLength*/, |
|
296 const TUint8* /*aData*/ ) |
|
297 { |
|
298 // not supported in default handler |
|
299 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
300 return EFalse; |
|
301 } |
|
302 |
|
303 // ----------------------------------------------------------------------------- |
|
304 // |
|
305 // ----------------------------------------------------------------------------- |
|
306 // |
|
307 TBool WlanMacState::AddUnicastWapiKey( |
|
308 WlanContextImpl& /*aCtxImpl*/, |
|
309 const TUint8* /*aData*/, |
|
310 TUint32 /*aLength*/, |
|
311 T802Dot11WepKeyId /*aKeyIndex*/, |
|
312 const TMacAddress& /*aMacAddr*/ ) |
|
313 { |
|
314 // not supported in default handler |
|
315 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
316 return EFalse; |
|
317 } |
|
318 |
|
319 // ----------------------------------------------------------------------------- |
|
320 // |
|
321 // ----------------------------------------------------------------------------- |
|
322 // |
|
323 TBool WlanMacState::StartIBSS( |
|
324 WlanContextImpl& /*aCtxImpl*/, |
|
325 const TSSID& /*aSSID*/, |
|
326 TUint32 /*aBeaconInterval*/, |
|
327 TUint32 /*aAtim*/, |
|
328 TUint32 /*aChannel*/, |
|
329 TEncryptionStatus /*aEncryptionStatus*/ ) |
|
330 { |
|
331 // not supported in default handler |
|
332 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
333 return EFalse; |
|
334 } |
|
335 |
|
336 // ----------------------------------------------------------------------------- |
|
337 // |
|
338 // ----------------------------------------------------------------------------- |
|
339 // |
|
340 TBool WlanMacState::Scan( |
|
341 WlanContextImpl& /*aCtxImpl*/, |
|
342 TScanMode /*aMode*/, |
|
343 const TSSID& /*aSSID*/, |
|
344 TRate /*aScanRate*/, |
|
345 SChannels& /*aChannels*/, |
|
346 TUint32 /*aMinChannelTime*/, |
|
347 TUint32 /*aMaxChannelTime*/, |
|
348 TBool /*aSplitScan*/ ) |
|
349 { |
|
350 // not supported in default handler |
|
351 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
352 return EFalse; |
|
353 } |
|
354 |
|
355 // ----------------------------------------------------------------------------- |
|
356 // |
|
357 // ----------------------------------------------------------------------------- |
|
358 // |
|
359 TBool WlanMacState::RealScan( |
|
360 WlanContextImpl& aCtxImpl, |
|
361 TScanMode /*aMode*/, |
|
362 const TSSID& /*aSSID*/, |
|
363 TUint32 /*aScanRate*/, |
|
364 SChannels& /*aChannels*/, |
|
365 TUint32 /*aMinChannelTime*/, |
|
366 TUint32 /*aMaxChannelTime*/, |
|
367 TBool /*aSplitScan*/ ) |
|
368 { |
|
369 OnOidComplete( aCtxImpl, KErrGeneral ); |
|
370 |
|
371 return EFalse; // no state change |
|
372 } |
|
373 |
|
374 // ----------------------------------------------------------------------------- |
|
375 // |
|
376 // ----------------------------------------------------------------------------- |
|
377 // |
|
378 TBool WlanMacState::StopScan( WlanContextImpl& /*aCtxImpl*/ ) |
|
379 { |
|
380 // not supported in default handler |
|
381 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
382 return EFalse; |
|
383 } |
|
384 |
|
385 // ----------------------------------------------------------------------------- |
|
386 // |
|
387 // ----------------------------------------------------------------------------- |
|
388 // |
|
389 TBool WlanMacState::SetTxPowerLevel( |
|
390 WlanContextImpl& /*aCtxImpl*/, |
|
391 TUint32 /*aLevel*/ ) |
|
392 { |
|
393 // not supported in default handler |
|
394 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
395 return EFalse; |
|
396 } |
|
397 |
|
398 // ----------------------------------------------------------------------------- |
|
399 // |
|
400 // ----------------------------------------------------------------------------- |
|
401 // |
|
402 TBool WlanMacState::Configure( |
|
403 WlanContextImpl& /*aCtxImpl*/, |
|
404 TUint32 /*aRTSThreshold*/, |
|
405 TUint32 /*aMaxTxMSDULifetime*/, |
|
406 TUint32 /*aVoiceCallEntryTimeout*/, |
|
407 TUint32 /*aVoiceCallEntryTxThreshold*/, |
|
408 TUint32 /*aVoiceNullTimeout*/, |
|
409 TUint32 /*aNoVoiceTimeout*/, |
|
410 TUint32 /*aKeepAliveTimeout*/, |
|
411 TUint32 /*aspRcpiIndicationLevel*/, |
|
412 TUint32 /*spTimetoCountPrediction*/, |
|
413 TUint32 /*aSpMinIndicationInterval*/ ) |
|
414 { |
|
415 // not supported in default handler |
|
416 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
417 return EFalse; |
|
418 } |
|
419 |
|
420 // ----------------------------------------------------------------------------- |
|
421 // |
|
422 // ----------------------------------------------------------------------------- |
|
423 // |
|
424 TBool WlanMacState::GetLastRcpi( |
|
425 WlanContextImpl& /*aCtxImpl*/ ) |
|
426 { |
|
427 // not supported in default handler |
|
428 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
429 return EFalse; |
|
430 } |
|
431 |
|
432 // ----------------------------------------------------------------------------- |
|
433 // |
|
434 // ----------------------------------------------------------------------------- |
|
435 // |
|
436 TBool WlanMacState::AddMulticastAddr( |
|
437 WlanContextImpl& /*aCtxImpl*/, |
|
438 const TMacAddress& /*aMacAddr*/ ) |
|
439 { |
|
440 // not supported in default handler |
|
441 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
442 return EFalse; |
|
443 } |
|
444 |
|
445 // ----------------------------------------------------------------------------- |
|
446 // |
|
447 // ----------------------------------------------------------------------------- |
|
448 // |
|
449 TBool WlanMacState::RemoveMulticastAddr( |
|
450 WlanContextImpl& /*aCtxImpl*/, |
|
451 TBool /*aRemoveAll*/, |
|
452 const TMacAddress& /*aMacAddr*/ ) |
|
453 { |
|
454 // not supported in default handler |
|
455 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
456 return EFalse; |
|
457 } |
|
458 |
|
459 // ----------------------------------------------------------------------------- |
|
460 // |
|
461 // ----------------------------------------------------------------------------- |
|
462 // |
|
463 TBool WlanMacState::ConfigureBssLost( |
|
464 WlanContextImpl& /*aCtxImpl*/, |
|
465 TUint32 /*aBeaconLostCount*/, |
|
466 TUint8 /*aFailedTxPacketCount*/ ) |
|
467 { |
|
468 // not supported in default handler |
|
469 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
470 return EFalse; |
|
471 } |
|
472 |
|
473 // ----------------------------------------------------------------------------- |
|
474 // |
|
475 // ----------------------------------------------------------------------------- |
|
476 // |
|
477 TBool WlanMacState::SetTxRateAdaptParams( |
|
478 WlanContextImpl& /*aCtxImpl*/, |
|
479 TUint8 /*aMinStepUpCheckpoint*/, |
|
480 TUint8 /*aMaxStepUpCheckpoint*/, |
|
481 TUint8 /*aStepUpCheckpointFactor*/, |
|
482 TUint8 /*aStepDownCheckpoint*/, |
|
483 TUint8 /*aMinStepUpThreshold*/, |
|
484 TUint8 /*aMaxStepUpThreshold*/, |
|
485 TUint8 /*aStepUpThresholdIncrement*/, |
|
486 TUint8 /*aStepDownThreshold*/, |
|
487 TBool /*aDisableProbeHandling*/ ) |
|
488 { |
|
489 // not supported in default handler |
|
490 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
491 return EFalse; |
|
492 } |
|
493 |
|
494 // ----------------------------------------------------------------------------- |
|
495 // |
|
496 // ----------------------------------------------------------------------------- |
|
497 // |
|
498 TBool WlanMacState::ConfigureTxRatePolicies( |
|
499 WlanContextImpl& /*aCtxImpl*/, |
|
500 const TTxRatePolicy& /*aRatePolicy*/, |
|
501 const TQueue2RateClass& /*aQueue2RateClass*/, |
|
502 const TInitialMaxTxRate4RateClass& /*aInitialMaxTxRate4RateClass*/, |
|
503 const TTxAutoRatePolicy& /*aAutoRatePolicy*/, |
|
504 const THtMcsPolicy& /*aHtMcsPolicy*/ ) |
|
505 { |
|
506 // not supported in default handler |
|
507 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
508 return EFalse; |
|
509 } |
|
510 |
|
511 // ----------------------------------------------------------------------------- |
|
512 // |
|
513 // ----------------------------------------------------------------------------- |
|
514 // |
|
515 TBool WlanMacState::SetPowerModeManagementParameters( |
|
516 WlanContextImpl& /*aCtxImpl*/, |
|
517 TUint32 /*aToLightPsTimeout*/, |
|
518 TUint16 /*aToLightPsFrameThreshold*/, |
|
519 TUint32 /*aToActiveTimeout*/, |
|
520 TUint16 /*aToActiveFrameThreshold*/, |
|
521 TUint32 /*aToDeepPsTimeout*/, |
|
522 TUint16 /*aToDeepPsFrameThreshold*/, |
|
523 TUint16 /*aUapsdRxFrameLengthThreshold*/ ) |
|
524 { |
|
525 // not supported in default handler |
|
526 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
527 return EFalse; |
|
528 } |
|
529 |
|
530 // ----------------------------------------------------------------------------- |
|
531 // |
|
532 // ----------------------------------------------------------------------------- |
|
533 // |
|
534 TBool WlanMacState::ConfigurePwrModeMgmtTrafficOverride( |
|
535 WlanContextImpl& /*aCtxImpl*/, |
|
536 TBool /*aStayInPsDespiteUapsdVoiceTraffic*/, |
|
537 TBool /*aStayInPsDespiteUapsdVideoTraffic*/, |
|
538 TBool /*aStayInPsDespiteUapsdBestEffortTraffic*/, |
|
539 TBool /*aStayInPsDespiteUapsdBackgroundTraffic*/, |
|
540 TBool /*aStayInPsDespiteLegacyVoiceTraffic*/, |
|
541 TBool /*aStayInPsDespiteLegacyVideoTraffic*/, |
|
542 TBool /*aStayInPsDespiteLegacyBestEffortTraffic*/, |
|
543 TBool /*aStayInPsDespiteLegacyBackgroundTraffic*/ ) |
|
544 { |
|
545 // not supported in default handler |
|
546 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
547 return EFalse; |
|
548 } |
|
549 |
|
550 // ----------------------------------------------------------------------------- |
|
551 // |
|
552 // ----------------------------------------------------------------------------- |
|
553 // |
|
554 TBool WlanMacState::GetFrameStatistics( WlanContextImpl& /*aCtxImpl*/ ) |
|
555 { |
|
556 // not supported in default handler |
|
557 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
558 return EFalse; |
|
559 } |
|
560 |
|
561 // ----------------------------------------------------------------------------- |
|
562 // |
|
563 // ----------------------------------------------------------------------------- |
|
564 // |
|
565 TBool WlanMacState::ConfigureUapsd( |
|
566 WlanContextImpl& /*aCtxImpl*/, |
|
567 TMaxServicePeriodLength /*aMaxServicePeriodLength*/, |
|
568 TBool /*aUapsdForVoice*/, |
|
569 TBool /*aUapsdForVideo*/, |
|
570 TBool /*aUapsdForBestEffort*/, |
|
571 TBool /*aUapsdForBackground*/ ) |
|
572 { |
|
573 // not supported in default handler |
|
574 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
575 return EFalse; |
|
576 } |
|
577 |
|
578 // ----------------------------------------------------------------------------- |
|
579 // |
|
580 // ----------------------------------------------------------------------------- |
|
581 // |
|
582 TBool WlanMacState::ConfigureTxQueueIfNecessary( |
|
583 WlanContextImpl& /*aCtxImpl*/, |
|
584 TQueueId /*aQueueId*/, |
|
585 TUint16 /*aMediumTime*/, |
|
586 TUint32 /*aMaxTxMSDULifetime*/ ) |
|
587 { |
|
588 // not supported in default handler |
|
589 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
590 return EFalse; |
|
591 } |
|
592 |
|
593 // ----------------------------------------------------------------------------- |
|
594 // |
|
595 // ----------------------------------------------------------------------------- |
|
596 // |
|
597 TBool WlanMacState::GetMacAddress( |
|
598 WlanContextImpl& /*aCtxImpl*/ ) |
|
599 { |
|
600 // not supported in default handler |
|
601 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
602 return EFalse; |
|
603 } |
|
604 |
|
605 // ----------------------------------------------------------------------------- |
|
606 // |
|
607 // ----------------------------------------------------------------------------- |
|
608 // |
|
609 void WlanMacState::SetProtocolStackTxOffset( |
|
610 WlanContextImpl& aCtxImpl ) const |
|
611 { |
|
612 OsTracePrint( KUmacDetails, (TUint8*) |
|
613 ("UMAC: WlanMacState::SetProtocolStackTxOffset") ); |
|
614 |
|
615 TUint32 ethernetFrameTxOffset ( 0 ); |
|
616 TUint32 dot11FrameTxOffsetNotRelevant ( 0 ); |
|
617 TUint32 snapFrameTxOffsetNotRelevant ( 0 ); |
|
618 |
|
619 DetermineTxOffsets( |
|
620 aCtxImpl, |
|
621 ethernetFrameTxOffset, |
|
622 dot11FrameTxOffsetNotRelevant, |
|
623 snapFrameTxOffsetNotRelevant ); |
|
624 |
|
625 aCtxImpl.iUmac.SetProtocolStackTxOffset( |
|
626 ethernetFrameTxOffset ); |
|
627 } |
|
628 |
|
629 // ----------------------------------------------------------------------------- |
|
630 // |
|
631 // ----------------------------------------------------------------------------- |
|
632 // |
|
633 TBool WlanMacState::ConfigureArpIpAddressFiltering( |
|
634 WlanContextImpl& /*aCtxImpl*/, |
|
635 TBool /*aEnableFiltering*/, |
|
636 TIpv4Address /*aIpv4Address*/ ) |
|
637 { |
|
638 // not supported in default handler |
|
639 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
640 return EFalse; |
|
641 } |
|
642 |
|
643 // ----------------------------------------------------------------------------- |
|
644 // |
|
645 // ----------------------------------------------------------------------------- |
|
646 // |
|
647 TBool WlanMacState::ConfigureHtBlockAck( |
|
648 WlanContextImpl& /*aCtxImpl*/, |
|
649 TUint8 /*aTxBlockAckUsage*/, |
|
650 TUint8 /*aRxBlockAckUsage*/ ) |
|
651 { |
|
652 // not supported in default handler |
|
653 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
654 return EFalse; |
|
655 } |
|
656 |
|
657 // ----------------------------------------------------------------------------- |
|
658 // |
|
659 // ----------------------------------------------------------------------------- |
|
660 // |
|
661 TBool WlanMacState::ConfigureProprietarySnapHdr( |
|
662 WlanContextImpl& /*aCtxImpl*/, |
|
663 const TSnapHeader& /*aSnapHeader*/ ) |
|
664 { |
|
665 // not supported in default handler |
|
666 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
667 return EFalse; |
|
668 } |
|
669 |
|
670 // ----------------------------------------------------------------------------- |
|
671 // |
|
672 // ----------------------------------------------------------------------------- |
|
673 // |
|
674 TBool WlanMacState::TxData( |
|
675 WlanContextImpl& /*aCtxImpl*/, |
|
676 TDataBuffer& /*aDataBuffer*/, |
|
677 TBool /*aMore*/ ) |
|
678 { |
|
679 // not supported in default handler |
|
680 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
681 return EFalse; |
|
682 } |
|
683 |
|
684 // ----------------------------------------------------------------------------- |
|
685 // |
|
686 // ----------------------------------------------------------------------------- |
|
687 // |
|
688 void WlanMacState::TxMgmtData( |
|
689 WlanContextImpl& /*aCtxImpl*/, |
|
690 TDataBuffer& /* aDataBuffer */) |
|
691 { |
|
692 // not supported in default handler |
|
693 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
694 } |
|
695 |
|
696 // ----------------------------------------------------------------------------- |
|
697 // |
|
698 // ----------------------------------------------------------------------------- |
|
699 // |
|
700 void WlanMacState::FinitSystem( |
|
701 WlanContextImpl& /*aCtxImpl*/ ) |
|
702 { |
|
703 // not supported in default handler |
|
704 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
705 } |
|
706 |
|
707 // ----------------------------------------------------------------------------- |
|
708 // |
|
709 // ----------------------------------------------------------------------------- |
|
710 // |
|
711 TBool WlanMacState::OnTimeout( WlanContextImpl& /*aCtxImpl*/ ) |
|
712 { |
|
713 // a timeout occurred when we weren't expecting it. Because this can happen |
|
714 // if a timeout callback had already been registered when we tried to cancel |
|
715 // the timer, we need to ignore this event |
|
716 |
|
717 OsTracePrint( KWarningLevel, (TUint8*) |
|
718 ("UMAC: WlanMacState::OnTimeout: unexpected timeout; ignored") ); |
|
719 |
|
720 return EFalse; |
|
721 } |
|
722 |
|
723 // ----------------------------------------------------------------------------- |
|
724 // |
|
725 // ----------------------------------------------------------------------------- |
|
726 // |
|
727 TBool WlanMacState::OnVoiceCallEntryTimerTimeout( |
|
728 WlanContextImpl& /*aCtxImpl*/ ) |
|
729 { |
|
730 // a timeout occurred when we weren't expecting it. Because this can happen |
|
731 // if a timeout callback had already been registered when we tried to cancel |
|
732 // the timer, we need to ignore this event |
|
733 |
|
734 OsTracePrint( KWarningLevel, (TUint8*) |
|
735 ("UMAC: WlanMacState::OnVoiceCallEntryTimerTimeout: unexpected timeout; ignored") ); |
|
736 |
|
737 return EFalse; |
|
738 } |
|
739 |
|
740 // ----------------------------------------------------------------------------- |
|
741 // |
|
742 // ----------------------------------------------------------------------------- |
|
743 // |
|
744 TBool WlanMacState::OnNullTimerTimeout( WlanContextImpl& /*aCtxImpl*/ ) |
|
745 { |
|
746 // a timeout occurred when we weren't expecting it. Because this can happen |
|
747 // if a timeout callback had already been registered when we tried to cancel |
|
748 // the timer, we need to ignore this event |
|
749 |
|
750 OsTracePrint( KWarningLevel, (TUint8*) |
|
751 ("UMAC: WlanMacState::OnNullTimerTimeout: unexpected timeout; ignored") ); |
|
752 |
|
753 return EFalse; |
|
754 } |
|
755 |
|
756 // ----------------------------------------------------------------------------- |
|
757 // |
|
758 // ----------------------------------------------------------------------------- |
|
759 // |
|
760 TBool WlanMacState::OnNoVoiceTimerTimeout( WlanContextImpl& /*aCtxImpl*/ ) |
|
761 { |
|
762 // a timeout occurred when we weren't expecting it. Because this can happen |
|
763 // if a timeout callback had already been registered when we tried to cancel |
|
764 // the timer, we need to ignore this event |
|
765 |
|
766 OsTracePrint( KWarningLevel, (TUint8*) |
|
767 ("UMAC: WlanMacState::OnNoVoiceTimerTimeout: unexpected timeout; ignored") ); |
|
768 |
|
769 return EFalse; |
|
770 } |
|
771 |
|
772 // ----------------------------------------------------------------------------- |
|
773 // |
|
774 // ----------------------------------------------------------------------------- |
|
775 // |
|
776 TBool WlanMacState::OnKeepAliveTimerTimeout( WlanContextImpl& /*aCtxImpl*/ ) |
|
777 { |
|
778 // a timeout occurred when we weren't expecting it. Because this can happen |
|
779 // if a timeout callback had already been registered when we tried to cancel |
|
780 // the timer, we need to ignore this event |
|
781 |
|
782 OsTracePrint( KWarningLevel, (TUint8*) |
|
783 ("UMAC: WlanMacState::OnKeepAliveTimerTimeout: unexpected timeout; ignored") ); |
|
784 |
|
785 return EFalse; |
|
786 } |
|
787 |
|
788 // ----------------------------------------------------------------------------- |
|
789 // |
|
790 // ----------------------------------------------------------------------------- |
|
791 // |
|
792 TBool WlanMacState::OnActiveToLightPsTimerTimeout( |
|
793 WlanContextImpl& /*aCtxImpl*/ ) |
|
794 { |
|
795 // a timeout occurred when we weren't expecting it. Because this can happen |
|
796 // if a timeout callback had already been registered when we tried to cancel |
|
797 // the timer, we need to ignore this event |
|
798 |
|
799 OsTracePrint( KWarningLevel, (TUint8*) |
|
800 ("UMAC: WlanMacState::OnActiveToLightPsTimerTimeout: unexpected timeout; ignored") ); |
|
801 |
|
802 return EFalse; |
|
803 } |
|
804 |
|
805 // ----------------------------------------------------------------------------- |
|
806 // |
|
807 // ----------------------------------------------------------------------------- |
|
808 // |
|
809 TBool WlanMacState::OnLightPsToActiveTimerTimeout( WlanContextImpl& /*aCtxImpl*/ ) |
|
810 { |
|
811 // a timeout occurred when we weren't expecting it. Because this can happen |
|
812 // if a timeout callback had already been registered when we tried to cancel |
|
813 // the timer, we need to ignore this event |
|
814 |
|
815 OsTracePrint( KWarningLevel, (TUint8*) |
|
816 ("UMAC: WlanMacState::OnLightPsToActiveTimerTimeout: unexpected timeout; ignored") ); |
|
817 |
|
818 return EFalse; |
|
819 } |
|
820 |
|
821 // ----------------------------------------------------------------------------- |
|
822 // |
|
823 // ----------------------------------------------------------------------------- |
|
824 // |
|
825 TBool WlanMacState::OnLightPsToDeepPsTimerTimeout( WlanContextImpl& /*aCtxImpl*/ ) |
|
826 { |
|
827 // a timeout occurred when we weren't expecting it. Because this can happen |
|
828 // if a timeout callback had already been registered when we tried to cancel |
|
829 // the timer, we need to ignore this event |
|
830 |
|
831 OsTracePrint( KWarningLevel, (TUint8*) |
|
832 ("UMAC: WlanMacState::OnLightPsToDeepPsTimerTimeout: unexpected timeout; ignored") ); |
|
833 |
|
834 return EFalse; |
|
835 } |
|
836 |
|
837 // ----------------------------------------------------------------------------- |
|
838 // |
|
839 // ----------------------------------------------------------------------------- |
|
840 // |
|
841 void WlanMacState::OnDfc( TAny* /*aCtx*/ ) |
|
842 { |
|
843 OsAssert( (TUint8*)("UMAC: panic"),(TUint8*)(WLAN_FILE), __LINE__ ); |
|
844 } |
|
845 |
|
846 // ----------------------------------------------------------------------------- |
|
847 // |
|
848 // ----------------------------------------------------------------------------- |
|
849 // |
|
850 TBool WlanMacState::TxNullDataFrame( |
|
851 WlanContextImpl& /*aCtxImpl*/, |
|
852 TBool /*aQosNull*/ ) |
|
853 { |
|
854 // not supported in default handler |
|
855 OsAssert( (TUint8*)("UMAC: panic"),(TUint8*)(WLAN_FILE), __LINE__ ); |
|
856 return EFalse; |
|
857 } |
|
858 |
|
859 // ----------------------------------------------------------------------------- |
|
860 // |
|
861 // ----------------------------------------------------------------------------- |
|
862 // |
|
863 void WlanMacState::OnPacketTransferComplete( |
|
864 WlanContextImpl& /*aCtxImpl*/, |
|
865 TUint32 /*aPacketId*/, |
|
866 TDataBuffer* /*aMetaHeader*/ ) |
|
867 { |
|
868 OsAssert( (TUint8*)("UMAC: panic"),(TUint8*)(WLAN_FILE), __LINE__ ); |
|
869 } |
|
870 |
|
871 // ----------------------------------------------------------------------------- |
|
872 // |
|
873 // ----------------------------------------------------------------------------- |
|
874 // |
|
875 void WlanMacState::OnPacketSendComplete( |
|
876 WlanContextImpl& /*aCtxImpl*/, |
|
877 WHA::TStatus /*aStatus*/, |
|
878 TUint32 /*aPacketId*/, |
|
879 WHA::TRate /*aRate*/, |
|
880 TUint32 /*aPacketQueueDelay*/, |
|
881 TUint32 /*aMediaDelay*/, |
|
882 TUint /*aTotalTxDelay*/, |
|
883 TUint8 /*aAckFailures*/, |
|
884 WHA::TQueueId /*aQueueId*/, |
|
885 WHA::TRate /*aRequestedRate*/, |
|
886 TBool /*aMulticastData*/ ) |
|
887 { |
|
888 OsAssert( (TUint8*)("UMAC: panic"),(TUint8*)(WLAN_FILE), __LINE__ ); |
|
889 } |
|
890 |
|
891 // ----------------------------------------------------------------------------- |
|
892 // |
|
893 // ----------------------------------------------------------------------------- |
|
894 // |
|
895 void WlanMacState::CallPacketSchedule( |
|
896 WlanContextImpl& /*aCtxImpl*/, |
|
897 TBool /*aMore*/ ) |
|
898 { |
|
899 OsAssert( (TUint8*)("UMAC: panic"),(TUint8*)(WLAN_FILE), __LINE__ ); |
|
900 } |
|
901 |
|
902 // ----------------------------------------------------------------------------- |
|
903 // |
|
904 // ----------------------------------------------------------------------------- |
|
905 // |
|
906 void WlanMacState::OnPacketFlushEvent( |
|
907 WlanContextImpl& /*aCtxImpl*/, |
|
908 TUint32 /*aPacketId*/, |
|
909 TDataBuffer* /*aMetaHeader*/ ) |
|
910 { |
|
911 OsAssert( (TUint8*)("UMAC: panic"),(TUint8*)(WLAN_FILE), __LINE__ ); |
|
912 } |
|
913 |
|
914 // ----------------------------------------------------------------------------- |
|
915 // |
|
916 // ----------------------------------------------------------------------------- |
|
917 // |
|
918 void WlanMacState::OnPacketPushPossible( |
|
919 WlanContextImpl& /*aCtxImpl*/ ) |
|
920 { |
|
921 OsAssert( (TUint8*)("UMAC: panic"),(TUint8*)(WLAN_FILE), __LINE__ ); |
|
922 } |
|
923 |
|
924 // ----------------------------------------------------------------------------- |
|
925 // |
|
926 // ----------------------------------------------------------------------------- |
|
927 // |
|
928 TBool WlanMacState::IsRequestedFrameType( |
|
929 TUint8 aLhs, |
|
930 TUint8 aRhs, |
|
931 TBool& aTypeMatch) |
|
932 { |
|
933 // do the type fields match? |
|
934 aTypeMatch = |
|
935 static_cast<TBool>(( ( aLhs & E802Dot11FrameControlTypeMask ) |
|
936 == ( aRhs & E802Dot11FrameControlTypeMask ) )); |
|
937 |
|
938 // we don't have to care about possible protocol version bits mismatch |
|
939 |
|
940 return static_cast<TBool>(( aLhs == aRhs )); |
|
941 } |
|
942 |
|
943 // ----------------------------------------------------------------------------- |
|
944 // |
|
945 // ----------------------------------------------------------------------------- |
|
946 // |
|
947 void WlanMacState::CommandResponse( |
|
948 WlanContextImpl& /*aCtxImpl*/, |
|
949 WHA::TCommandId aCommandId, |
|
950 WHA::TStatus /*aStatus*/, |
|
951 const WHA::UCommandResponseParams& /*aCommandResponseParams*/ ) |
|
952 { |
|
953 // only supported by whacommand state |
|
954 // anywhere else is a programming error |
|
955 // in the underlying adaptation software |
|
956 OsTracePrint( KErrorLevel, |
|
957 (TUint8*)("UMAC: aCommandId: %d"), aCommandId ); |
|
958 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
959 } |
|
960 |
|
961 // ----------------------------------------------------------------------------- |
|
962 // |
|
963 // ----------------------------------------------------------------------------- |
|
964 // |
|
965 TBool WlanMacState::CommandComplete( |
|
966 WlanContextImpl& /*aCtxImpl*/, |
|
967 WHA::TCompleteCommandId aCompleteCommandId, |
|
968 WHA::TStatus /*aStatus*/, |
|
969 const WHA::UCommandCompletionParams& /*aCommandCompletionParams*/ ) |
|
970 { |
|
971 // not supported in default handler |
|
972 OsTracePrint( KErrorLevel, |
|
973 (TUint8*)("UMAC: aCompleteCommandId: %d"), aCompleteCommandId ); |
|
974 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
975 |
|
976 return EFalse; |
|
977 } |
|
978 |
|
979 // ----------------------------------------------------------------------------- |
|
980 // |
|
981 // ----------------------------------------------------------------------------- |
|
982 // |
|
983 void WlanMacState::Indication( |
|
984 WlanContextImpl& /*aCtxImpl*/, |
|
985 WHA::TIndicationId aIndicationId, |
|
986 const WHA::UIndicationParams& /*aIndicationParams*/ ) |
|
987 { |
|
988 // not supported in default handler |
|
989 OsTracePrint( KErrorLevel, |
|
990 (TUint8*)("UMAC: WlanMacState::Indication: aIndicationId: %d"), |
|
991 aIndicationId ); |
|
992 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
993 } |
|
994 |
|
995 // ----------------------------------------------------------------------------- |
|
996 // |
|
997 // ----------------------------------------------------------------------------- |
|
998 // |
|
999 TAny* WlanMacState::RequestForBuffer ( |
|
1000 WlanContextImpl& /*aCtxImpl*/, |
|
1001 TUint16 /*aLength*/ ) |
|
1002 { |
|
1003 // not supported in default handler |
|
1004 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
1005 return NULL; |
|
1006 } |
|
1007 |
|
1008 // ----------------------------------------------------------------------------- |
|
1009 // |
|
1010 // ----------------------------------------------------------------------------- |
|
1011 // |
|
1012 void WlanMacState::ReceivePacket( |
|
1013 WlanContextImpl& /*aCtxImpl*/, |
|
1014 WHA::TStatus /*aStatus*/, |
|
1015 const void* /*aFrame*/, |
|
1016 TUint16 /*aLength*/, |
|
1017 WHA::TRate /*aRate*/, |
|
1018 WHA::TRcpi /*aRcpi*/, |
|
1019 WHA::TChannelNumber /*aChannel*/, |
|
1020 TUint8* /*aBuffer*/, |
|
1021 TUint32 /*aFlags*/ ) |
|
1022 { |
|
1023 // not supported in default handler |
|
1024 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
1025 } |
|
1026 |
|
1027 // ----------------------------------------------------------------------------- |
|
1028 // |
|
1029 // ----------------------------------------------------------------------------- |
|
1030 // |
|
1031 TBool WlanMacState::DoErrorIndication( |
|
1032 WlanContextImpl& /*aCtxImpl*/, |
|
1033 WHA::TStatus /*aStatus*/ ) |
|
1034 { |
|
1035 // not supported in default handler |
|
1036 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
1037 return EFalse; |
|
1038 } |
|
1039 |
|
1040 // ----------------------------------------------------------------------------- |
|
1041 // |
|
1042 // ----------------------------------------------------------------------------- |
|
1043 // |
|
1044 void WlanMacState::DoConsecutiveBeaconsLostIndication( |
|
1045 WlanContextImpl& /*aCtxImpl*/ ) |
|
1046 { |
|
1047 // not supported in default handler |
|
1048 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
1049 } |
|
1050 |
|
1051 // ----------------------------------------------------------------------------- |
|
1052 // |
|
1053 // ----------------------------------------------------------------------------- |
|
1054 // |
|
1055 void WlanMacState::DoConsecutiveTxFailuresIndication( |
|
1056 WlanContextImpl& /*aCtxImpl*/ ) |
|
1057 { |
|
1058 // not supported in default handler |
|
1059 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
1060 } |
|
1061 |
|
1062 // ----------------------------------------------------------------------------- |
|
1063 // |
|
1064 // ----------------------------------------------------------------------------- |
|
1065 // |
|
1066 void WlanMacState::DoConsecutivePwrModeSetFailuresIndication( |
|
1067 WlanContextImpl& /*aCtxImpl*/ ) |
|
1068 { |
|
1069 // not supported in default handler |
|
1070 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
1071 } |
|
1072 |
|
1073 // ----------------------------------------------------------------------------- |
|
1074 // |
|
1075 // ----------------------------------------------------------------------------- |
|
1076 // |
|
1077 void WlanMacState::DoRegainedBSSIndication( WlanContextImpl& /*aCtxImpl*/ ) |
|
1078 { |
|
1079 // not supported in default handler |
|
1080 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
1081 } |
|
1082 |
|
1083 // ----------------------------------------------------------------------------- |
|
1084 // |
|
1085 // ----------------------------------------------------------------------------- |
|
1086 // |
|
1087 void WlanMacState::DoRadarIndication( WlanContextImpl& /*aCtxImpl*/ ) |
|
1088 { |
|
1089 // not supported in default handler |
|
1090 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
1091 } |
|
1092 |
|
1093 // ----------------------------------------------------------------------------- |
|
1094 // |
|
1095 // ----------------------------------------------------------------------------- |
|
1096 // |
|
1097 void WlanMacState::DoRcpiIndication( |
|
1098 WlanContextImpl& /*aCtxImpl*/, |
|
1099 WHA::TRcpi /*aRcpi*/ ) |
|
1100 { |
|
1101 // not supported in default handler |
|
1102 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
1103 } |
|
1104 |
|
1105 // --------------------------------------------------------------------------- |
|
1106 // |
|
1107 // --------------------------------------------------------------------------- |
|
1108 // |
|
1109 void WlanMacState::DoPsModeErrorIndication( |
|
1110 WlanContextImpl& /*aCtxImpl*/ ) |
|
1111 { |
|
1112 // not supported in default handler |
|
1113 OsAssert( (TUint8*)("UMAC: panic"), (TUint8*)(WLAN_FILE), __LINE__ ); |
|
1114 } |
|
1115 |
|
1116 // ----------------------------------------------------------------------------- |
|
1117 // |
|
1118 // ----------------------------------------------------------------------------- |
|
1119 // |
|
1120 void WlanMacState::OnOidComplete( |
|
1121 WlanContextImpl& aCtxImpl, |
|
1122 TInt aReason, |
|
1123 const TAny* aData, |
|
1124 TUint32 aLengthInBytes ) |
|
1125 { |
|
1126 OsTracePrint( KWlmCmd, (TUint8*) |
|
1127 ("UMAC: WlanMacState::OnOidComplete: WLM-request complete: status: %d"), |
|
1128 aReason ); |
|
1129 |
|
1130 aCtxImpl.iUmac.CompleteManagementCommand( |
|
1131 aReason, |
|
1132 aData, |
|
1133 aLengthInBytes ); |
|
1134 } |
|
1135 |
|
1136 // ----------------------------------------------------------------------------- |
|
1137 // |
|
1138 // ----------------------------------------------------------------------------- |
|
1139 // |
|
1140 void WlanMacState::OnTxProtocolStackDataComplete( |
|
1141 WlanContextImpl& aCtxImpl, |
|
1142 TDataBuffer* aMetaHeader, |
|
1143 TInt aCompletionCode ) |
|
1144 { |
|
1145 OsTracePrint( KWlmCmd, (TUint8*) |
|
1146 ("UMAC: WlanMacState::OnTxProtocolStackDataComplete: WLM-request complete: status: %d"), |
|
1147 aCompletionCode ); |
|
1148 aCtxImpl.iUmac.OnTxProtocolStackDataComplete( |
|
1149 aCompletionCode, |
|
1150 aMetaHeader ); |
|
1151 } |
|
1152 |
|
1153 // ----------------------------------------------------------------------------- |
|
1154 // |
|
1155 // ----------------------------------------------------------------------------- |
|
1156 // |
|
1157 void WlanMacState::OnMgmtPathWriteComplete( |
|
1158 WlanContextImpl& aCtxImpl, |
|
1159 TInt aCompletionCode ) |
|
1160 { |
|
1161 OsTracePrint( KWlmCmd, (TUint8*) |
|
1162 ("UMAC: WlanMacState::OnMgmtPathWriteComplete: WLM-request complete: status: %d"), |
|
1163 aCompletionCode ); |
|
1164 aCtxImpl.iUmac.MgmtPathWriteComplete( |
|
1165 aCompletionCode ); |
|
1166 } |
|
1167 |
|
1168 // ----------------------------------------------------------------------------- |
|
1169 // |
|
1170 // ----------------------------------------------------------------------------- |
|
1171 // |
|
1172 void WlanMacState::OnInDicationEvent( |
|
1173 WlanContextImpl& aCtxImpl, |
|
1174 TIndication aIndication ) |
|
1175 { |
|
1176 OsTracePrint( KWlmIndication, (TUint8*) |
|
1177 ("UMAC: WlanMacState::OnInDicationEvent: WLM-indication: %d"), |
|
1178 static_cast<TUint32>(aIndication) ); |
|
1179 |
|
1180 aCtxImpl.iUmac.OnInDicationEvent( aIndication ); |
|
1181 } |
|
1182 |
|
1183 // --------------------------------------------------------------------------- |
|
1184 // |
|
1185 // --------------------------------------------------------------------------- |
|
1186 // |
|
1187 void WlanMacState::DetermineTxOffsets( |
|
1188 WlanContextImpl& aCtxImpl, |
|
1189 TUint32& aEthernetFrameTxOffset, |
|
1190 TUint32& aDot11FrameTxOffset, |
|
1191 TUint32& aSnapFrameTxOffset ) const |
|
1192 { |
|
1193 const TUint32 KVendorTxOffset ( |
|
1194 aCtxImpl.WHASettings().iTxFrameHeaderSpace ); |
|
1195 |
|
1196 const TUint32 KMacHdrLen ( aCtxImpl.QosEnabled() ? |
|
1197 sizeof( SHtQosDataFrameHeader ) : |
|
1198 sizeof( SDataFrameHeader ) ); |
|
1199 |
|
1200 // regarding the security header we simplify things by assuming the worst |
|
1201 // case (i.e. the longest security header). Doing this means that we don't |
|
1202 // need to update the frame Tx offsets every time a cipher key is taken |
|
1203 // into use |
|
1204 const TUint32 KMaxSecurityHdrLen ( Align4( KMaxDot11SecurityHeaderLength ) ); |
|
1205 |
|
1206 const TUint32 KSnapHdrLen ( sizeof( SSnapHeader ) ); |
|
1207 |
|
1208 const TUint32 KMacAddrLen ( sizeof( TMacAddress ) ); |
|
1209 |
|
1210 OsTracePrint( KWsaTxDetails, (TUint8*) |
|
1211 ("UMAC: WlanMacState::DetermineTxOffsets: KVendorTxOffset: %d"), |
|
1212 KVendorTxOffset ); |
|
1213 |
|
1214 OsTracePrint( KWsaTxDetails, (TUint8*) |
|
1215 ("UMAC: WlanMacState::DetermineTxOffsets: KMacHdrLen: %d"), |
|
1216 KMacHdrLen ); |
|
1217 |
|
1218 OsTracePrint( KWsaTxDetails, (TUint8*) |
|
1219 ("UMAC: WlanMacState::DetermineTxOffsets: KMaxSecurityHdrLen: %d"), |
|
1220 KMaxSecurityHdrLen ); |
|
1221 |
|
1222 OsTracePrint( KWsaTxDetails, (TUint8*) |
|
1223 ("UMAC: WlanMacState::DetermineTxOffsets: KSnapHdrLen: %d"), |
|
1224 KSnapHdrLen ); |
|
1225 |
|
1226 OsTracePrint( KWsaTxDetails, (TUint8*) |
|
1227 ("UMAC: WlanMacState::DetermineTxOffsets: KMacAddrLen: %d"), |
|
1228 KMacAddrLen ); |
|
1229 |
|
1230 aEthernetFrameTxOffset = |
|
1231 KVendorTxOffset + |
|
1232 KMacHdrLen + |
|
1233 KMaxSecurityHdrLen + |
|
1234 KSnapHdrLen - |
|
1235 ( 2 * KMacAddrLen ); // destination and source address |
|
1236 |
|
1237 aDot11FrameTxOffset = KVendorTxOffset; |
|
1238 |
|
1239 aSnapFrameTxOffset = |
|
1240 KVendorTxOffset + |
|
1241 KMacHdrLen + |
|
1242 KMaxSecurityHdrLen; |
|
1243 |
|
1244 OsTracePrint( KUmacDetails, (TUint8*) |
|
1245 ("UMAC: WlanMacState::DetermineTxOffsets: aEthernetFrameTxOffset: %d"), |
|
1246 aEthernetFrameTxOffset ); |
|
1247 OsTracePrint( KUmacDetails, (TUint8*) |
|
1248 ("UMAC: WlanMacState::DetermineTxOffsets: aDot11FrameTxOffset: %d"), |
|
1249 aDot11FrameTxOffset ); |
|
1250 OsTracePrint( KUmacDetails, (TUint8*) |
|
1251 ("UMAC: WlanMacState::DetermineTxOffsets: aSnapFrameTxOffset: %d"), |
|
1252 aSnapFrameTxOffset ); |
|
1253 } |