330 MPMLOGSTRING( "CMPMWlanQueryDialog::RunL WPS cancelled" ) |
330 MPMLOGSTRING( "CMPMWlanQueryDialog::RunL WPS cancelled" ) |
331 iStatus = KErrCancel; |
331 iStatus = KErrCancel; |
332 } |
332 } |
333 else // WiFiProt::EWiFiNoAuto |
333 else // WiFiProt::EWiFiNoAuto |
334 { |
334 { |
335 MPMLOGSTRING( "CMPMWlanQueryDialog::RunL No Auto, starting WPA key query" ) |
335 if( iNetworkPrefs().iSecMode == EWlanConnectionSecurityWep ) |
336 iWlanQueryState = EWpaSettings; |
336 { |
337 iNotifier.StartNotifierAndGetResponse( iStatus, |
337 MPMLOGSTRING( "CMPMWlanQueryDialog::RunL: No WPS, starting WEP key query" ); |
338 KUidEasyWpaDlg, |
338 iWlanQueryState = EWepSettings; |
339 iNotifWpaKey, |
339 iNotifier.StartNotifierAndGetResponse( iStatus, |
340 iNotifWpaKey ); |
340 KUidEasyWepDlg, |
341 SetActive(); |
341 iNotifWep, |
342 return; |
342 iNotifWep ); |
|
343 SetActive(); |
|
344 return; |
|
345 } |
|
346 else if ( iNetworkPrefs().iSecMode == EWlanConnectionSecurityWpaPsk ) |
|
347 { |
|
348 MPMLOGSTRING( "CMPMWlanQueryDialog::RunL: No WPS, starting WPA key query" ); |
|
349 iWlanQueryState = EWpaSettings; |
|
350 iNotifier.StartNotifierAndGetResponse( iStatus, |
|
351 KUidEasyWpaDlg, |
|
352 iNotifWpaKey, |
|
353 iNotifWpaKey ); |
|
354 SetActive(); |
|
355 return; |
|
356 } |
|
357 else if ( iNetworkPrefs().iSecMode == EWlanConnectionSecurityOpen ) |
|
358 { |
|
359 MPMLOGSTRING( "CMPMWlanQueryDialog::RunL: No WPS, sec mode open" ); |
|
360 iStatus = KErrNone; |
|
361 } |
|
362 else |
|
363 { |
|
364 MPMLOGSTRING2( "CMPMWlanQueryDialog::RunL: No WPS, unsupported sec mode %d", |
|
365 iNetworkPrefs().iSecMode ); |
|
366 iStatus = KErrNotSupported; |
|
367 } |
343 } |
368 } |
344 } |
369 } |
345 } |
370 } |
346 else if ( iWlanQueryState == ERetrySettingsStorage ) |
371 else if ( iWlanQueryState == ERetrySettingsStorage ) |
347 { |
372 { |