wpa_gui-qt4: do not show WPS AP available event tray messages
Do not show WPS event tray messages as they can happen too frequently. Signed-off-by: Kel Modderman <kel@otaku42.de>
This commit is contained in:
parent
0c6bdf91ea
commit
aff5e54d4a
1 changed files with 0 additions and 12 deletions
|
@ -870,9 +870,6 @@ void WpaGui::processMsg(char *msg)
|
||||||
QTimer::singleShot(5 * 1000, this, SLOT(showTrayStatus()));
|
QTimer::singleShot(5 * 1000, this, SLOT(showTrayStatus()));
|
||||||
stopWpsRun(true);
|
stopWpsRun(true);
|
||||||
} else if (str_match(pos, WPS_EVENT_AP_AVAILABLE_PBC)) {
|
} else if (str_match(pos, WPS_EVENT_AP_AVAILABLE_PBC)) {
|
||||||
showTrayMessage(QSystemTrayIcon::Information, 3,
|
|
||||||
"Wi-Fi Protected Setup (WPS) AP\n"
|
|
||||||
"in active PBC mode found.");
|
|
||||||
wpsStatusText->setText("WPS AP in active PBC mode found");
|
wpsStatusText->setText("WPS AP in active PBC mode found");
|
||||||
if (textStatus->text() == "INACTIVE" ||
|
if (textStatus->text() == "INACTIVE" ||
|
||||||
textStatus->text() == "DISCONNECTED")
|
textStatus->text() == "DISCONNECTED")
|
||||||
|
@ -880,23 +877,14 @@ void WpaGui::processMsg(char *msg)
|
||||||
wpsInstructions->setText("Press the PBC button on the screen "
|
wpsInstructions->setText("Press the PBC button on the screen "
|
||||||
"to start registration");
|
"to start registration");
|
||||||
} else if (str_match(pos, WPS_EVENT_AP_AVAILABLE_PIN)) {
|
} else if (str_match(pos, WPS_EVENT_AP_AVAILABLE_PIN)) {
|
||||||
showTrayMessage(QSystemTrayIcon::Information, 3,
|
|
||||||
"Wi-Fi Protected Setup (WPS) AP\n"
|
|
||||||
" in active PIN mode found.");
|
|
||||||
wpsStatusText->setText("WPS AP with recently selected "
|
wpsStatusText->setText("WPS AP with recently selected "
|
||||||
"registrar");
|
"registrar");
|
||||||
if (textStatus->text() == "INACTIVE" ||
|
if (textStatus->text() == "INACTIVE" ||
|
||||||
textStatus->text() == "DISCONNECTED")
|
textStatus->text() == "DISCONNECTED")
|
||||||
wpaguiTab->setCurrentWidget(wpsTab);
|
wpaguiTab->setCurrentWidget(wpsTab);
|
||||||
} else if (str_match(pos, WPS_EVENT_AP_AVAILABLE)) {
|
} else if (str_match(pos, WPS_EVENT_AP_AVAILABLE)) {
|
||||||
showTrayMessage(QSystemTrayIcon::Information, 3,
|
|
||||||
"Wi-Fi Protected Setup (WPS)\n"
|
|
||||||
"AP detected.");
|
|
||||||
wpsStatusText->setText("WPS AP detected");
|
wpsStatusText->setText("WPS AP detected");
|
||||||
} else if (str_match(pos, WPS_EVENT_OVERLAP)) {
|
} else if (str_match(pos, WPS_EVENT_OVERLAP)) {
|
||||||
showTrayMessage(QSystemTrayIcon::Information, 3,
|
|
||||||
"Wi-Fi Protected Setup (WPS)\n"
|
|
||||||
"PBC mode overlap detected.");
|
|
||||||
wpsStatusText->setText("PBC mode overlap detected");
|
wpsStatusText->setText("PBC mode overlap detected");
|
||||||
wpsInstructions->setText("More than one AP is currently in "
|
wpsInstructions->setText("More than one AP is currently in "
|
||||||
"active WPS PBC mode. Wait couple of "
|
"active WPS PBC mode. Wait couple of "
|
||||||
|
|
Loading…
Reference in a new issue