--- a/wlanutilities/wlanqtutilities/tsrc/stubs/stub_wlanscaninfo.cpp Fri Aug 06 18:38:57 2010 +0300
+++ b/wlanutilities/wlanqtutilities/tsrc/stubs/stub_wlanscaninfo.cpp Mon Aug 23 13:30:09 2010 +0300
@@ -83,7 +83,7 @@
// Iterating is complete when iterator is one past the last item
if (testContext.mScan.mScanResultIterator >=
- testContext.mScan.mWlanScanResultList.count()) {
+ testContext.mScan.mWlanScanApResultList.count()) {
result = ETrue;
}
@@ -159,11 +159,12 @@
(void)aIE;
// Cypy the SSID
+ ssidBuffer.SetLength(0);
QString ssid = ap->value(WlanQtUtilsAp::ConfIdSsid).toString();
- QByteArray ssidData(ssid.toUtf8());
- ssidBuffer.Copy(
- (TUint8*)ssidData.data(),
- ssidData.length());
+ for (int i = 0; i < ssid.length(); i++) {
+ QChar character = ssid[i];
+ ssidBuffer.Append((TUint8)(character.unicode() & 0x000000FF));
+ }
// Give reference to the buffer to the caller
*aData = ssidBuffer.Ptr();
@@ -279,7 +280,7 @@
// Get the currently iterated AP
QSharedPointer<WlanQtUtilsAp> ap(
- testContext.mScan.mWlanScanResultList[
+ testContext.mScan.mWlanScanApResultList[
testContext.mScan.mScanResultIterator]);
return ap;