From 0d48ba39224582c83d68c2938e6cbedc4c77ec7d Mon Sep 17 00:00:00 2001 From: mickeyl Date: Tue, 08 Apr 2003 14:17:38 +0000 Subject: - fix entries bug caused by interpretating not-yet-handled 802.11 management frames This thing gets complicated... I really should implement a state machine for the beta. --- (limited to 'noncore/net/wellenreiter/gui/scanlist.cpp') diff --git a/noncore/net/wellenreiter/gui/scanlist.cpp b/noncore/net/wellenreiter/gui/scanlist.cpp index 1525934..1ef24d2 100644 --- a/noncore/net/wellenreiter/gui/scanlist.cpp +++ b/noncore/net/wellenreiter/gui/scanlist.cpp @@ -274,7 +274,7 @@ void MScanListItem::serializeTo( QDataStream& s ) const OListViewItem::serializeTo( s ); s << _type; - s << (Q_UINT8) _wep; + s << (Q_UINT8) ( _wep ? 'y' : 'n' ); } void MScanListItem::serializeFrom( QDataStream& s ) @@ -282,8 +282,10 @@ void MScanListItem::serializeFrom( QDataStream& s ) qDebug( "serializing MScanListItem" ); OListViewItem::serializeFrom( s ); + char wep; s >> _type; - s >> (Q_UINT8) _wep; + s >> (Q_UINT8) wep; + _wep = (wep == 'y'); QString name; name.sprintf( "wellenreiter/%s", (const char*) _type ); -- cgit v0.9.0.2