|
|
@ -42,7 +42,7 @@ int main(int argc, char *argv[]) { |
|
|
|
|
|
|
|
//interface.deleteAddress("1.1.1.5/29");
|
|
|
|
|
|
|
|
Wireless wi("wlp0s11u1"); |
|
|
|
Wireless wi("wlp3s0"); |
|
|
|
|
|
|
|
QList<BandInfo> bands = wi.bandMap(); |
|
|
|
|
|
|
@ -81,12 +81,13 @@ int main(int argc, char *argv[]) { |
|
|
|
std::cout << "is channel 165 supported? " << (wi.channelSupported(165) ? "yes" : "no") << std::endl; |
|
|
|
std::cout << "is frequency 2.437GHz supported? " << (wi.frequencySupported(2437) ? "yes" : "no") << std::endl; |
|
|
|
std::cout << "is frequency 5.825GHz supported? " << (wi.frequencySupported(5825) ? "yes" : "no") << std::endl; |
|
|
|
std::cout << "all channels:"; |
|
|
|
}else{ |
|
|
|
std::cout << "no channels supported" << std::endl; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
std::cout << "all channels:"; |
|
|
|
|
|
|
|
foreach(int chan, wi.allChannels()) { |
|
|
|
std::cout << " " << chan; |
|
|
|
} |
|
|
|