Return-Path: Received: from mail-oa0-f51.google.com (mail-oa0-f51.google.com [209.85.219.51]) by arago-project.org (Postfix) with ESMTPS id BA9FD529A4 for ; Tue, 2 Oct 2012 00:35:18 +0000 (UTC) Received: by oagn12 with SMTP id n12so5944671oag.38 for ; Mon, 01 Oct 2012 17:35:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=/BLOl+uqsQ2LHXFMzhlURVCNrYvjJaInHSucK1vCUrU=; b=yjuelx7Om0t/bo6M4MG/qcEqDOMkO+88ME3eqH8461zWgMNoMtK7L65O3B9X32vd3i n9sBIuAvIqC6sBhaYGUGncGRt74rCjKys4usKPsYKO/2VWxbtuEMaOwe13wNeOjNPWxm oVA3hjrQJvh0J9LYX3Yuq1ajbDtUQJ28iA7kELxijtK/BDIEy96D/48QhD/DuXZ/oP91 /RQisLudbRW5ZggZIAM51dig5PbF9vRetXNjzDEfwnKLXPb7Tyzy9E6pZVbQRAhYwDKZ HNw3UUDnwVUmHpmP0YQ6nO8MAT+7DDEtsnNcIQpKiFKxsocenl8BVah9OzfVTjJilcxo 5jcw== Received: by 10.60.30.168 with SMTP id t8mr13321050oeh.89.1349138118214; Mon, 01 Oct 2012 17:35:18 -0700 (PDT) Received: from localhost.localdomain (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id 4sm13647395oew.10.2012.10.01.17.35.17 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 01 Oct 2012 17:35:17 -0700 (PDT) From: "Franklin S. Cooper Jr" To: meta-arago@arago-project.org Date: Mon, 1 Oct 2012 20:02:27 -0500 Message-Id: <1349139747-7157-1-git-send-email-fcooper@ti.com> X-Mailer: git-send-email 1.7.0.4 Subject: [PATCH] wpa-gui-e: Add arago specific tweaks X-BeenThere: meta-arago@arago-project.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Arago metadata layer for TI SDKs - OE-Core/Yocto compatible List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Oct 2012 00:35:19 -0000 * Add two patches to support lower resolution screens * Add patch that runs a script when establishing a connection with an access point. Signed-off-by: Franklin S. Cooper Jr --- ...-make-the-networkconfig-dialog-scrollable.patch | 863 ++++++++++++++++++++ ...a-gui-e-fix-display-issue-on-small-screen.patch | 845 +++++++++++++++++++ ...gger-udhcpc-on-connection-to-new-access-p.patch | 72 ++ .../wpa-supplicant/wpa-gui-e/connection_script.sh | 6 + .../wpa-supplicant/wpa-gui-e_git.bbappend | 16 + 5 files changed, 1802 insertions(+), 0 deletions(-) create mode 100644 meta-arago-distro/recipes-connectivity/wpa-supplicant/wpa-gui-e/0001-wpa_gui-make-the-networkconfig-dialog-scrollable.patch create mode 100644 meta-arago-distro/recipes-connectivity/wpa-supplicant/wpa-gui-e/0002-wpa-gui-e-fix-display-issue-on-small-screen.patch create mode 100644 meta-arago-distro/recipes-connectivity/wpa-supplicant/wpa-gui-e/0003-wpa-gui-trigger-udhcpc-on-connection-to-new-access-p.patch create mode 100644 meta-arago-distro/recipes-connectivity/wpa-supplicant/wpa-gui-e/connection_script.sh create mode 100755 meta-arago-distro/recipes-connectivity/wpa-supplicant/wpa-gui-e_git.bbappend diff --git a/meta-arago-distro/recipes-connectivity/wpa-supplicant/wpa-gui-e/0001-wpa_gui-make-the-networkconfig-dialog-scrollable.patch b/meta-arago-distro/recipes-connectivity/wpa-supplicant/wpa-gui-e/0001-wpa_gui-make-the-networkconfig-dialog-scrollable.patch new file mode 100644 index 0000000..944a0e1 --- /dev/null +++ b/meta-arago-distro/recipes-connectivity/wpa-supplicant/wpa-gui-e/0001-wpa_gui-make-the-networkconfig-dialog-scrollable.patch @@ -0,0 +1,863 @@ +From 0a5df8cc725f6781bf0d8b9478af22357e5f10b4 Mon Sep 17 00:00:00 2001 +From: Eyal Reizer +Date: Tue, 21 Jun 2011 17:03:53 +0300 +Subject: [PATCH] wpa_gui: make the networkconfig dialog scrollable + +Makes the networkconfig dialog scrollable to allow using it on screens +with low resolution in the "y" axis + +Signed-off-by: Eyal Reizer +--- + networkconfig.ui | 817 ++++++++++++++------------- + 1 files changed, 409 insertions(+), 408 deletions(-) + +diff --git a/networkconfig.ui b/networkconfig.ui +index 217a8ff..d90bd64 100644 +--- a/networkconfig.ui ++++ b/networkconfig.ui +@@ -1,434 +1,435 @@ +- ++ ++ + NetworkConfig +- +- ++ ++ + + 0 + 0 +- 410 +- 534 ++ 430 ++ 613 + + +- ++ + NetworkConfig + +- +- +- +- +- Cancel ++ ++ ++ ++ ++ true + +- +- +- +- +- +- QFrame::NoFrame +- +- +- QFrame::Plain +- +- +- +- +- +- SSID +- +- +- +- +- +- +- Network name (Service Set IDentifier) +- +- +- +- +- +- +- +- +- +- Authentication +- +- +- +- +- +- +- +- Plaintext (open / no authentication) +- +- +- +- +- Static WEP (no authentication) +- +- +- +- +- Static WEP (Shared Key authentication) ++ ++ ++ ++ 0 ++ 0 ++ 430 ++ 613 ++ ++ ++ ++ ++ ++ ++ QFrame::NoFrame + +- +- +- +- IEEE 802.1X ++ ++ QFrame::Plain + +- +- +- +- WPA-Personal (PSK) ++ ++ ++ ++ ++ SSID ++ ++ ++ ++ ++ ++ ++ Network name (Service Set IDentifier) ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ Authentication ++ ++ ++ ++ ++ ++ ++ ++ Plaintext (open / no authentication) ++ ++ ++ ++ ++ Static WEP (no authentication) ++ ++ ++ ++ ++ Static WEP (Shared Key authentication) ++ ++ ++ ++ ++ IEEE 802.1X ++ ++ ++ ++ ++ WPA-Personal (PSK) ++ ++ ++ ++ ++ WPA-Enterprise (EAP) ++ ++ ++ ++ ++ WPA2-Personal (PSK) ++ ++ ++ ++ ++ WPA2-Enterprise (EAP) ++ ++ ++ ++ ++ ++ ++ ++ Encryption ++ ++ ++ ++ ++ ++ ++ ++ None ++ ++ ++ ++ ++ WEP ++ ++ ++ ++ ++ TKIP ++ ++ ++ ++ ++ CCMP ++ ++ ++ ++ ++ ++ ++ ++ PSK ++ ++ ++ ++ ++ ++ ++ false ++ ++ ++ WPA/WPA2 pre-shared key or passphrase ++ ++ ++ ++ ++ ++ QLineEdit::Password ++ ++ ++ ++ ++ ++ ++ EAP method ++ ++ ++ ++ ++ ++ ++ false ++ ++ ++ ++ ++ ++ ++ Identity ++ ++ ++ ++ ++ ++ ++ false ++ ++ ++ Username/Identity for EAP methods ++ ++ ++ ++ ++ ++ ++ Password ++ ++ ++ ++ ++ ++ ++ false ++ ++ ++ Password for EAP methods ++ ++ ++ QLineEdit::Password ++ ++ ++ ++ ++ ++ ++ CA certificate ++ ++ ++ ++ ++ ++ ++ false ++ ++ ++ ++ ++ ++ ++ true ++ ++ ++ WEP keys ++ ++ ++ ++ ++ ++ false ++ ++ ++ key 0 ++ ++ ++ ++ ++ ++ ++ false ++ ++ ++ key 1 ++ ++ ++ ++ ++ ++ ++ false ++ ++ ++ key 3 ++ ++ ++ ++ ++ ++ ++ false ++ ++ ++ key 2 ++ ++ ++ ++ ++ ++ ++ false ++ ++ ++ ++ ++ ++ ++ false ++ ++ ++ ++ ++ ++ ++ false ++ ++ ++ ++ ++ ++ ++ false ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ true ++ ++ ++ Optional Settings ++ ++ ++ ++ ++ ++ Network Identification String ++ ++ ++ ++ ++ ++ ++ Network Priority ++ ++ ++ 10000 ++ ++ ++ 10 ++ ++ ++ ++ ++ ++ ++ IDString ++ ++ ++ ++ ++ ++ ++ Priority ++ ++ ++ ++ ++ ++ ++ Inner auth ++ ++ ++ ++ ++ ++ ++ false ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ Qt::Vertical + +- +- +- +- WPA-Enterprise (EAP) ++ ++ ++ 20 ++ 24 ++ + +- +- +- +- WPA2-Personal (PSK) ++ ++ ++ ++ ++ ++ false + +- +- +- +- WPA2-Enterprise (EAP) ++ ++ WPS + +- +- +- +- +- +- +- Encryption +- +- +- +- +- +- +- +- None ++ ++ ++ ++ ++ ++ Add + +- +- +- +- WEP ++ ++ ++ ++ ++ ++ false + +- +- +- +- TKIP ++ ++ Remove + +- +- +- +- CCMP +- +- +- +- +- +- +- +- PSK +- +- +- +- +- +- +- false +- +- +- WPA/WPA2 pre-shared key or passphrase +- +- +- +- +- +- QLineEdit::Password +- +- +- +- +- +- +- EAP method +- +- +- +- +- +- +- false +- +- +- +- +- +- +- Identity +- +- +- +- +- +- +- false +- +- +- Username/Identity for EAP methods +- +- +- +- +- +- +- Password +- +- +- +- +- +- +- false +- +- +- Password for EAP methods +- +- +- QLineEdit::Password +- +- +- +- +- +- +- CA certificate +- +- +- +- +- +- +- false +- +- +- +- +- +- +- true +- +- +- WEP keys +- +- +- +- +- +- false +- +- +- key 0 +- +- +- +- +- +- +- false +- +- +- key 1 +- +- +- +- +- +- +- false +- +- +- key 3 +- +- +- +- +- +- +- false +- +- +- key 2 +- +- +- +- +- +- +- false +- +- +- +- +- +- +- false +- +- +- +- +- +- +- false +- +- +- +- +- +- +- false +- +- +- +- +- +- +- +- +- +- true +- +- +- Optional Settings +- +- +- +- +- +- Network Identification String +- +- +- +- +- +- +- Network Priority +- +- +- 10000 +- +- +- 10 +- +- +- +- +- +- +- IDString +- +- +- +- +- +- +- Priority +- +- +- +- +- +- +- Inner auth +- +- +- +- +- +- +- false +- +- +- +- +- +- +- +- +- +- +- +- +- Add +- +- +- +- +- +- +- false +- +- +- Remove +- +- +- +- +- +- +- Qt::Vertical +- +- +- +- 20 +- 40 +- +- +- +- +- +- +- +- false +- +- +- WPS +- ++ ++ ++ ++ ++ ++ ++ 454 ++ 798 ++ 98 ++ 27 ++ ++ ++ ++ Cancel ++ ++ ++ + + + + +- +- +- +- ssidEdit +- authSelect +- encrSelect +- pskEdit +- eapSelect +- identityEdit +- passwordEdit +- cacertEdit +- wep0Radio +- wep0Edit +- wep1Radio +- wep1Edit +- wep2Radio +- wep2Edit +- wep3Radio +- wep3Edit +- idstrEdit +- prioritySpinBox +- phase2Select +- addButton +- removeButton +- cancelButton +- ++ + +- qtreewidget.h ++ qtreewidget.h + + + +-- +1.7.0.4 diff --git a/meta-arago-distro/recipes-connectivity/wpa-supplicant/wpa-gui-e/0002-wpa-gui-e-fix-display-issue-on-small-screen.patch b/meta-arago-distro/recipes-connectivity/wpa-supplicant/wpa-gui-e/0002-wpa-gui-e-fix-display-issue-on-small-screen.patch new file mode 100644 index 0000000..d7d3916 --- /dev/null +++ b/meta-arago-distro/recipes-connectivity/wpa-supplicant/wpa-gui-e/0002-wpa-gui-e-fix-display-issue-on-small-screen.patch @@ -0,0 +1,845 @@ +From b17bacb507c040893913e955c12d044b7cdab2a1 Mon Sep 17 00:00:00 2001 +From: Moosa +Date: Mon, 27 Jun 2011 15:31:17 +0300 +Subject: [PATCH] wpa-gui-e: fix display issue on small screen + +Makes the main wpa-gui screen scrollable to allow using it on screens +with low resolution in the "y" axis + +Upstream status: pending + +Signed-off-by: Moosa Baransi + +--- + wpa_supplicant/wpa_gui-qt4/wpagui.ui | 609 +++++++++++++++++----------------- + 1 files changed, 301 insertions(+), 308 deletions(-) + +diff --git a/wpagui.ui b/wpagui.ui +index 9f9039f..9175971 100644 +--- a/wpagui.ui ++++ b/wpagui.ui +@@ -1,230 +1,224 @@ +- ++ ++ + WpaGui +- +- ++ ++ + + 0 + 0 +- 345 +- 330 ++ 365 ++ 373 + + +- ++ + wpa_gui + +- +- ++ ++ + :/icons/wpa_gui.svg:/icons/wpa_gui.svg + +- +- +- +- +- ++ ++ ++ ++ ++ + Adapter: + + + +- +- ++ ++ + +- +- +- ++ ++ ++ + Network: + + + +- +- ++ ++ + +- +- +- ++ ++ ++ + 0 + +- +- ++ ++ + Current Status + +- +- +- +- +- QFrame::NoFrame +- +- +- QFrame::Plain ++ ++ ++ ++ ++ Disconnect + +- +- +- +- +- Status: +- +- +- +- +- +- +- Last message: +- +- +- +- +- +- +- Authentication: +- +- +- +- +- +- +- Encryption: +- +- +- +- +- +- +- SSID: +- +- +- +- +- +- +- BSSID: +- +- +- +- +- +- +- IP address: +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- + + +- +- +- +- Qt::Vertical +- +- +- +- 20 +- 40 +- +- +- +- +- +- +- +- Connect ++ ++ ++ ++ Scan + + + +- +- +- +- Disconnect ++ ++ ++ ++ Connect + + + +- +- +- +- Scan ++ ++ ++ ++ true + ++ ++ ++ ++ 0 ++ 0 ++ 307 ++ 191 ++ ++ ++ ++ ++ ++ ++ QFrame::NoFrame ++ ++ ++ QFrame::Plain ++ ++ ++ ++ ++ ++ Status: ++ ++ ++ ++ ++ ++ ++ Last message: ++ ++ ++ ++ ++ ++ ++ Authentication: ++ ++ ++ ++ ++ ++ ++ Encryption: ++ ++ ++ ++ ++ ++ ++ SSID: ++ ++ ++ ++ ++ ++ ++ BSSID: ++ ++ ++ ++ ++ ++ ++ IP address: ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + +- +- +- +- Qt::Vertical +- +- +- +- 20 +- 40 +- +- +- +- + + +- +- ++ ++ + Manage Networks + +- +- +- +- ++ ++ ++ ++ + true + + + +- ++ + +- ++ + Qt::Vertical + +- ++ + + 20 + 61 +@@ -232,33 +226,33 @@ + + + +- +- +- ++ ++ ++ + Enabled + + + +- +- +- ++ ++ ++ + Edit + + + +- +- +- ++ ++ ++ + Remove + + + +- ++ + +- ++ + Qt::Vertical + +- ++ + + 20 + 61 +@@ -266,106 +260,106 @@ + + + +- +- +- ++ ++ ++ + Disabled + + + +- +- +- ++ ++ ++ + Add + + + +- +- +- ++ ++ ++ + Scan + + + + + +- +- ++ ++ + WPS + +- +- +- +- ++ ++ ++ ++ + Status: + + + +- +- +- ++ ++ ++ + + + + +- +- +- ++ ++ ++ + PBC - push button + + + +- +- +- ++ ++ ++ + Generate PIN + + + +- +- +- ++ ++ ++ + PIN: + + + +- +- +- ++ ++ ++ + false + +- ++ + true + + + +- +- +- ++ ++ ++ + false + +- ++ + Use AP PIN + + + +- +- +- ++ ++ ++ + AP PIN: + + + +- +- +- ++ ++ ++ + false + + + +- +- +- ++ ++ ++ + true + + +@@ -376,149 +370,148 @@ + + + +- +- ++ ++ + + 0 + 0 +- 345 +- 24 ++ 365 ++ 23 + + +- +- ++ ++ + &File + +- +- +- +- +- +- ++ ++ ++ ++ ++ ++ + +- +- ++ ++ + &Network + +- +- +- +- +- +- +- ++ ++ ++ ++ ++ ++ ++ + +- +- ++ ++ + &Help + +- +- +- +- ++ ++ ++ ++ + +- +- +- ++ ++ ++ + +- +- ++ ++ + Event &History + + +- +- ++ ++ + &Save Configuration + +- ++ + Ctrl+S + + +- +- ++ ++ + E&xit + +- ++ + Ctrl+Q + + +- +- ++ ++ + &Add + + +- +- ++ ++ + &Edit + + +- +- ++ ++ + &Remove + + +- +- ++ ++ + E&nable All + + +- +- ++ ++ + &Disable All + + +- +- ++ ++ + Re&move All + + +- +- ++ ++ + false + +- ++ + &Contents... + + +- +- ++ ++ + false + +- ++ + &Index... + + +- +- ++ ++ + &About + + +- +- ++ ++ + false + +- ++ + &Wi-Fi Protected Setup + + +- +- ++ ++ + &Peers + + + +- +- ++ + +- qtimer.h +- qsocketnotifier.h +- wpamsg.h +- eventhistory.h +- scanresults.h +- peers.h ++ qtimer.h ++ qsocketnotifier.h ++ wpamsg.h ++ eventhistory.h ++ scanresults.h ++ peers.h + + +- ++ + + + +-- +1.7.0.4 diff --git a/meta-arago-distro/recipes-connectivity/wpa-supplicant/wpa-gui-e/0003-wpa-gui-trigger-udhcpc-on-connection-to-new-access-p.patch b/meta-arago-distro/recipes-connectivity/wpa-supplicant/wpa-gui-e/0003-wpa-gui-trigger-udhcpc-on-connection-to-new-access-p.patch new file mode 100644 index 0000000..acd2477 --- /dev/null +++ b/meta-arago-distro/recipes-connectivity/wpa-supplicant/wpa-gui-e/0003-wpa-gui-trigger-udhcpc-on-connection-to-new-access-p.patch @@ -0,0 +1,72 @@ +From 1043f0e3138a92ff76b13fcc9d15025e9f046938 Mon Sep 17 00:00:00 2001 +From: Eyal Reizer +Date: Wed, 29 Jun 2011 14:33:56 +0300 +Subject: [PATCH] wpa-gui:trigger udhcpc on connection to new access point + +When establishing a connection with an access point run a shell script +that is used for triggering a dhcp request + +upstream-status: pending + +Signed-off-by: Eyal Reizer wpa +--- + wpagui.cpp | 11 ++++++++++- + wpagui.h | 1 + + 2 files changed, 11 insertions(+), 1 deletions(-) + mode change 100644 => 100755 wpagui.cpp + mode change 100644 => 100755 wpagui.h + +diff --git awpagui.cpp b/wpagui.cpp +old mode 100644 +new mode 100755 +index 97bf5ac..e9b0701 +--- a/wpagui.cpp ++++ b/wpagui.cpp +@@ -26,6 +26,7 @@ + #include + #include + #include ++#include + + #include "wpagui.h" + #include "dirent.h" +@@ -174,7 +175,7 @@ WpaGui::WpaGui(QApplication *_app, QWidget *parent, const char *, Qt::WFlags) + printf("Failed to open control connection to " + "wpa_supplicant.\n"); + } +- ++ isConnectionEstablished = false; + updateStatus(); + networkMayHaveChanged = true; + updateNetworks(); +@@ -554,6 +555,14 @@ void WpaGui::updateStatus() + } else if (strcmp(start, "wpa_state") == 0) { + status_updated = true; + textStatus->setText(wpaStateTranslate(pos)); ++ if (textStatus->text() == "Completed") { ++ if (!isConnectionEstablished) { ++ QProcess::execute(QString("/usr/share/wpa_gui/connection_script.sh")); ++ isConnectionEstablished = true; ++ } ++ } ++ else ++ isConnectionEstablished = false; + } else if (strcmp(start, "key_mgmt") == 0) { + auth_updated = true; + textAuthentication->setText(pos); +diff --git a/wpa_supplicant/wpa_gui-qt4/wpagui.h b/wpa_supplicant/wpa_gui-qt4/wpagui.h +old mode 100644 +new mode 100755 +index 2e1af8e..b93fcb1 +--- a/wpagui.h ++++ b/wpagui.h +@@ -122,6 +122,7 @@ private: + void createTrayIcon(bool); + bool ackTrayIcon; + bool startInTray; ++ bool isConnectionEstablished; + + int openCtrlConnection(const char *ifname); + +-- +1.7.0.4 diff --git a/meta-arago-distro/recipes-connectivity/wpa-supplicant/wpa-gui-e/connection_script.sh b/meta-arago-distro/recipes-connectivity/wpa-supplicant/wpa-gui-e/connection_script.sh new file mode 100644 index 0000000..d22bc31 --- /dev/null +++ b/meta-arago-distro/recipes-connectivity/wpa-supplicant/wpa-gui-e/connection_script.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +# on first connection to a new AP we need to trigger the dhcp client for +# getting an ip address + +cat /var/run/udhcpc.wlan0.pid | xargs /bin/kill -SIGUSR1 diff --git a/meta-arago-distro/recipes-connectivity/wpa-supplicant/wpa-gui-e_git.bbappend b/meta-arago-distro/recipes-connectivity/wpa-supplicant/wpa-gui-e_git.bbappend new file mode 100755 index 0000000..3596b4d --- /dev/null +++ b/meta-arago-distro/recipes-connectivity/wpa-supplicant/wpa-gui-e_git.bbappend @@ -0,0 +1,16 @@ +# look for files in this layer first +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +PR_append = "-arago0" + +SRC_URI += "file://0001-wpa_gui-make-the-networkconfig-dialog-scrollable.patch \ + file://0002-wpa-gui-e-fix-display-issue-on-small-screen.patch \ + file://0003-wpa-gui-trigger-udhcpc-on-connection-to-new-access-p.patch \ + file://connection_script.sh" + +do_install_append () { + install -d ${D}${datadir}/wpa_gui + install -m 0755 ${WORKDIR}/connection_script.sh ${D}${datadir}/wpa_gui +} + +FILES_${PN} += "${datadir}/wpa_gui/connection_script.sh" -- 1.7.0.4