equal
deleted
inserted
replaced
81 { |
81 { |
82 TBool result = EFalse; |
82 TBool result = EFalse; |
83 |
83 |
84 // Iterating is complete when iterator is one past the last item |
84 // Iterating is complete when iterator is one past the last item |
85 if (testContext.mScan.mScanResultIterator >= |
85 if (testContext.mScan.mScanResultIterator >= |
86 testContext.mScan.mWlanScanResultList.count()) { |
86 testContext.mScan.mWlanScanApResultList.count()) { |
87 result = ETrue; |
87 result = ETrue; |
88 } |
88 } |
89 |
89 |
90 return result; |
90 return result; |
91 } |
91 } |
157 // Only SSID IE is supported |
157 // Only SSID IE is supported |
158 Q_ASSERT(aIE == KWlan802Dot11SsidIE); |
158 Q_ASSERT(aIE == KWlan802Dot11SsidIE); |
159 (void)aIE; |
159 (void)aIE; |
160 |
160 |
161 // Cypy the SSID |
161 // Cypy the SSID |
|
162 ssidBuffer.SetLength(0); |
162 QString ssid = ap->value(WlanQtUtilsAp::ConfIdSsid).toString(); |
163 QString ssid = ap->value(WlanQtUtilsAp::ConfIdSsid).toString(); |
163 QByteArray ssidData(ssid.toUtf8()); |
164 for (int i = 0; i < ssid.length(); i++) { |
164 ssidBuffer.Copy( |
165 QChar character = ssid[i]; |
165 (TUint8*)ssidData.data(), |
166 ssidBuffer.Append((TUint8)(character.unicode() & 0x000000FF)); |
166 ssidData.length()); |
167 } |
167 |
168 |
168 // Give reference to the buffer to the caller |
169 // Give reference to the buffer to the caller |
169 *aData = ssidBuffer.Ptr(); |
170 *aData = ssidBuffer.Ptr(); |
170 aLength = (TUint8)ssidBuffer.Length(); |
171 aLength = (TUint8)ssidBuffer.Length(); |
171 |
172 |
277 // If this fails, client iterates erroneously |
278 // If this fails, client iterates erroneously |
278 Q_ASSERT(!IsDone()); |
279 Q_ASSERT(!IsDone()); |
279 |
280 |
280 // Get the currently iterated AP |
281 // Get the currently iterated AP |
281 QSharedPointer<WlanQtUtilsAp> ap( |
282 QSharedPointer<WlanQtUtilsAp> ap( |
282 testContext.mScan.mWlanScanResultList[ |
283 testContext.mScan.mWlanScanApResultList[ |
283 testContext.mScan.mScanResultIterator]); |
284 testContext.mScan.mScanResultIterator]); |
284 |
285 |
285 return ap; |
286 return ap; |
286 } |
287 } |