Diffstat (limited to 'libopie2/opienet/onetwork.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opienet/onetwork.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libopie2/opienet/onetwork.cpp b/libopie2/opienet/onetwork.cpp index d918193..16fa8ae 100644 --- a/libopie2/opienet/onetwork.cpp +++ b/libopie2/opienet/onetwork.cpp | |||
@@ -955,24 +955,32 @@ OStationList* OWirelessNetworkInterface::scanNetwork() | |||
955 | 955 | ||
956 | return stations; | 956 | return stations; |
957 | 957 | ||
958 | } | 958 | } |
959 | else | 959 | else |
960 | { | 960 | { |
961 | odebug << " - no results (timeout) :(" << oendl; | 961 | odebug << " - no results (timeout) :(" << oendl; |
962 | return stations; | 962 | return stations; |
963 | } | 963 | } |
964 | } | 964 | } |
965 | 965 | ||
966 | 966 | ||
967 | int OWirelessNetworkInterface::signalStrength() const | ||
968 | { | ||
969 | int max = _range.max_qual.level; | ||
970 | odebug << "signalStrength(): max quality seems to be " << max << "dBM" << oendl; | ||
971 | return 50; | ||
972 | } | ||
973 | |||
974 | |||
967 | bool OWirelessNetworkInterface::wioctl( int call, struct iwreq& iwreq ) const | 975 | bool OWirelessNetworkInterface::wioctl( int call, struct iwreq& iwreq ) const |
968 | { | 976 | { |
969 | #ifndef NODEBUG | 977 | #ifndef NODEBUG |
970 | int result = ::ioctl( _sfd, call, &iwreq ); | 978 | int result = ::ioctl( _sfd, call, &iwreq ); |
971 | 979 | ||
972 | if ( result == -1 ) | 980 | if ( result == -1 ) |
973 | odebug << "ONetworkInterface::wioctl (" << name() << ") call '" | 981 | odebug << "ONetworkInterface::wioctl (" << name() << ") call '" |
974 | << debugmapper->map( call ) << "' FAILED! " << result << " (" << strerror( errno ) << ")" << oendl; | 982 | << debugmapper->map( call ) << "' FAILED! " << result << " (" << strerror( errno ) << ")" << oendl; |
975 | else | 983 | else |
976 | odebug << "ONetworkInterface::wioctl (" << name() << ") call '" | 984 | odebug << "ONetworkInterface::wioctl (" << name() << ") call '" |
977 | << debugmapper->map( call ) << "' - Status: Ok." << oendl; | 985 | << debugmapper->map( call ) << "' - Status: Ok." << oendl; |
978 | 986 | ||