66 const TInt KWlanLastSocketActivityTimeout = -1; |
66 const TInt KWlanLastSocketActivityTimeout = -1; |
67 const TInt KWlanLastSessionClosedTimeout = 1; |
67 const TInt KWlanLastSessionClosedTimeout = 1; |
68 const TInt KWlanLastSocketClosedTimeout = -1; |
68 const TInt KWlanLastSocketClosedTimeout = -1; |
69 const TUint32 KEndOfArray = KMaxTUint; |
69 const TUint32 KEndOfArray = KMaxTUint; |
70 |
70 |
71 /// Modem bearer names for WLAN connection methods |
71 // Daemon manager name for Easy WLAN IAP |
|
72 _LIT( KHotspotDaemonManagerName, "NetCfgExtnHotSpot" ); |
|
73 _LIT( KEasyWlanName, "Easy WLAN" ); |
|
74 |
|
75 // Modem bearer names for WLAN connection methods |
72 _LIT( KModemBearerWLAN, "WLANBearer" ); |
76 _LIT( KModemBearerWLAN, "WLANBearer" ); |
73 |
77 |
74 _LIT( KWlanFileIcons, "z:cmpluginwlan.mbm" ); |
78 _LIT( KWlanFileIcons, "z:cmpluginwlan.mbm" ); |
75 _LIT( KWlanBearerName, "WLANBearer" ); |
79 _LIT( KWlanBearerName, "WLANBearer" ); |
76 _LIT( KWlanBearerAgent, "wlanagt.agt" ); |
80 _LIT( KWlanBearerAgent, "wlanagt.agt" ); |
2739 delete daemonName; |
2743 delete daemonName; |
2740 return; |
2744 return; |
2741 } |
2745 } |
2742 delete daemonName; |
2746 delete daemonName; |
2743 } |
2747 } |
|
2748 |
|
2749 // check if Easy WLAN IAP since it has different config daemon |
|
2750 // manager name |
|
2751 HBufC* iapName = GetStringAttributeL( ECmName ); |
|
2752 if ( iapName ) |
|
2753 { |
|
2754 CleanupStack::PushL( iapName ); |
|
2755 if ( iapName->Compare( KEasyWlanName ) == 0 ) |
|
2756 { |
|
2757 SetStringAttributeL( ECmConfigDaemonManagerName, |
|
2758 KHotspotDaemonManagerName ); |
|
2759 SetStringAttributeL( ECmConfigDaemonName, |
|
2760 KConfigDaemonName ); |
|
2761 CleanupStack::PopAndDestroy( iapName ); |
|
2762 return; |
|
2763 } |
|
2764 CleanupStack::PopAndDestroy( iapName ); |
|
2765 } |
2744 |
2766 |
2745 // use DHCP if we can |
2767 // use DHCP if we can |
2746 TBool ipfromSrv = GetBoolAttributeL( ECmIPAddFromServer ); |
2768 TBool ipfromSrv = GetBoolAttributeL( ECmIPAddFromServer ); |
2747 if ( ipfromSrv ) |
2769 if ( ipfromSrv ) |
2748 { |
2770 { |