All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2][PULL] Fix Bug 603
@ 2011-02-14  7:49 Dongxiao Xu
  2011-02-14  7:49 ` [PATCH 1/2] wpa-supplicant: change dbus interface Dongxiao Xu
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Dongxiao Xu @ 2011-02-14  7:49 UTC (permalink / raw)
  To: poky

From: Dongxiao Xu <dongxiao.xu@intel.com>

Hi Saul,

This pull request fixes [BUGID #603], please help to review and pull.

Actually there are two bugs inside:

1) wpa_supplicant is not launched by default.
2) Even if manually launch wpa_supplicant, wifi interface still couldn't be enabled.

Some points to fix this issue:

1) Using new dbus interface in wpa_supplicant: "fi.w1.wpa_supplicant1"
2) Enable nl802.11 support in wpa_supplicant.
3) Fix the dbus-daemon-launch-helper permission issue.

Changes from v1:
Set both CONFIG_CTRL_IFACE_DBUS and CONFIG_CTRL_IFACE_DBUS_NEW to 'y' in wpa_supplicant's configuration file.

Pull URL: git://git.pokylinux.org/poky-contrib.git
  Branch: dxu4/bugfix
  Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dxu4/bugfix

Thanks,
    Dongxiao Xu <dongxiao.xu@intel.com>
---


Dongxiao Xu (2):
  wpa-supplicant: change dbus interface
  dbus: change owner and mode for dbus-daemon-launch-helper in postinst

 .../wpa-supplicant-0.7.3/defconfig-gnutls          |    4 +++-
 .../wpa-supplicant/wpa-supplicant-0.7.inc          |    2 +-
 .../wpa-supplicant/wpa-supplicant_0.7.3.bb         |    2 +-
 meta/recipes-core/dbus/dbus.inc                    |    4 +++-
 meta/recipes-core/dbus/dbus_1.4.1.bb               |    2 +-
 5 files changed, 9 insertions(+), 5 deletions(-)



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] wpa-supplicant: change dbus interface
  2011-02-14  7:49 [PATCH v2 0/2][PULL] Fix Bug 603 Dongxiao Xu
@ 2011-02-14  7:49 ` Dongxiao Xu
  2011-02-14  7:49 ` [PATCH 2/2] dbus: change owner and mode for dbus-daemon-launch-helper in postinst Dongxiao Xu
  2011-02-14 12:21 ` [PATCH v2 0/2][PULL] Fix Bug 603 Richard Purdie
  2 siblings, 0 replies; 5+ messages in thread
From: Dongxiao Xu @ 2011-02-14  7:49 UTC (permalink / raw)
  To: poky

From: Dongxiao Xu <dongxiao.xu@intel.com>

The new interface "fi.w1.wpa_supplicant1" is used in latest connman,
thus add it in the wpa_supplicant default configuration.

Besides, enable netlink support with libnl 2.0 mode.

[BUGID #603]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 .../wpa-supplicant-0.7.3/defconfig-gnutls          |    4 +++-
 .../wpa-supplicant/wpa-supplicant-0.7.inc          |    2 +-
 .../wpa-supplicant/wpa-supplicant_0.7.3.bb         |    2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.3/defconfig-gnutls b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.3/defconfig-gnutls
index e325bb8..c679e00 100644
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.3/defconfig-gnutls
+++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.3/defconfig-gnutls
@@ -81,7 +81,8 @@ CONFIG_DRIVER_HOSTAP=y
 CONFIG_DRIVER_WEXT=y
 
 # Driver interface for Linux drivers using the nl80211 kernel interface
-#CONFIG_DRIVER_NL80211=y
+CONFIG_LIBNL20=y
+CONFIG_DRIVER_NL80211=y
 
 # Driver interface for FreeBSD net80211 layer (e.g., Atheros driver)
 #CONFIG_DRIVER_BSD=y
@@ -405,3 +406,4 @@ CONFIG_PEERKEY=y
 CONFIG_TLS = gnutls
 CONFIG_GNUTLS_EXTRA=y
 CONFIG_CTRL_IFACE_DBUS=y
+CONFIG_CTRL_IFACE_DBUS_NEW=y
diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc
index 7865b8f..cd62d8f 100644
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc
+++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc
@@ -6,7 +6,7 @@ LICENSE = "GPLv2 | BSD"
 LIC_FILES_CHKSUM = "file://../COPYING;md5=c54ce9345727175ff66d17b67ff51f58 \
                     file://../README;md5=54cfc88015d3ce83f7156e63c6bb1738 \
                     file://wpa_supplicant.c;beginline=1;endline=17;md5=acdc5a4b0d6345f21f136eace747260e"
-DEPENDS = "gnutls dbus"
+DEPENDS = "gnutls dbus libnl"
 RRECOMMENDS_${PN} = "wpa-supplicant-passphrase wpa-supplicant-cli"
 
 SRC_URI = "http://hostap.epitest.fi/releases/wpa_supplicant-${PV}.tar.gz \
diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_0.7.3.bb b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_0.7.3.bb
index 87baf33..03bd937 100644
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_0.7.3.bb
+++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_0.7.3.bb
@@ -1,6 +1,6 @@
 require wpa-supplicant-0.7.inc
 
-PR = "r3"
+PR = "r4"
 
 SRC_URI[md5sum] = "f516f191384a9a546e3f5145c08addda"
 SRC_URI[sha256sum] = "d0cd50caa85346ccc376dcda5ed3c258eef19a93b3cade39d25760118ad59443"
-- 
1.6.3.3



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] dbus: change owner and mode for dbus-daemon-launch-helper in postinst
  2011-02-14  7:49 [PATCH v2 0/2][PULL] Fix Bug 603 Dongxiao Xu
  2011-02-14  7:49 ` [PATCH 1/2] wpa-supplicant: change dbus interface Dongxiao Xu
@ 2011-02-14  7:49 ` Dongxiao Xu
  2011-02-14 12:21 ` [PATCH v2 0/2][PULL] Fix Bug 603 Richard Purdie
  2 siblings, 0 replies; 5+ messages in thread
From: Dongxiao Xu @ 2011-02-14  7:49 UTC (permalink / raw)
  To: poky

From: Dongxiao Xu <dongxiao.xu@intel.com>

Add code in dbus postinst to change owner and mode for
dbus-daemon-launch-helper.

[BUGID #603]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 meta/recipes-core/dbus/dbus.inc      |    4 +++-
 meta/recipes-core/dbus/dbus_1.4.1.bb |    2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/dbus/dbus.inc b/meta/recipes-core/dbus/dbus.inc
index da77819..1ef0d8f 100644
--- a/meta/recipes-core/dbus/dbus.inc
+++ b/meta/recipes-core/dbus/dbus.inc
@@ -53,7 +53,9 @@ pkg_postinst_dbus() {
 			--ingroup "$MESSAGEUSER" "$MESSAGEUSER"
 
 	grep -q netdev: /etc/group || addgroup netdev
-	chmod u+s /usr/libexec/dbus-daemon-launch-helper
+
+	chown root:"$MESSAGEUSER" /usr/libexec/dbus-daemon-launch-helper
+	chmod 4754 /usr/libexec/dbus-daemon-launch-helper
 
 	# add volatile after new user/grp are created
 	echo "d messagebus messagebus 0755 /var/run/dbus none" > /etc/default/volatiles/99_dbus
diff --git a/meta/recipes-core/dbus/dbus_1.4.1.bb b/meta/recipes-core/dbus/dbus_1.4.1.bb
index 7c5627b..f16d9f2 100644
--- a/meta/recipes-core/dbus/dbus_1.4.1.bb
+++ b/meta/recipes-core/dbus/dbus_1.4.1.bb
@@ -1,6 +1,6 @@
 include dbus.inc
 
-PR = "r0"
+PR = "r1"
 
 SRC_URI[md5sum] = "99cb057700c0455fb68f8d57902f77ac"
 SRC_URI[sha256sum] = "caa1a0ded2d0f2e95c1d4ec7e3c8bd44834928c5b0ed41a7189963f3593983bd"
-- 
1.6.3.3



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 0/2][PULL] Fix Bug 603
  2011-02-14  7:49 [PATCH v2 0/2][PULL] Fix Bug 603 Dongxiao Xu
  2011-02-14  7:49 ` [PATCH 1/2] wpa-supplicant: change dbus interface Dongxiao Xu
  2011-02-14  7:49 ` [PATCH 2/2] dbus: change owner and mode for dbus-daemon-launch-helper in postinst Dongxiao Xu
@ 2011-02-14 12:21 ` Richard Purdie
  2 siblings, 0 replies; 5+ messages in thread
From: Richard Purdie @ 2011-02-14 12:21 UTC (permalink / raw)
  To: Dongxiao Xu; +Cc: poky

On Mon, 2011-02-14 at 15:49 +0800, Dongxiao Xu wrote:
> From: Dongxiao Xu <dongxiao.xu@intel.com>
> 
> Hi Saul,
> 
> This pull request fixes [BUGID #603], please help to review and pull.
> 
> Actually there are two bugs inside:
> 
> 1) wpa_supplicant is not launched by default.
> 2) Even if manually launch wpa_supplicant, wifi interface still couldn't be enabled.
> 
> Some points to fix this issue:
> 
> 1) Using new dbus interface in wpa_supplicant: "fi.w1.wpa_supplicant1"
> 2) Enable nl802.11 support in wpa_supplicant.
> 3) Fix the dbus-daemon-launch-helper permission issue.
> 
> Changes from v1:
> Set both CONFIG_CTRL_IFACE_DBUS and CONFIG_CTRL_IFACE_DBUS_NEW to 'y' in wpa_supplicant's configuration file.
> 
> Pull URL: git://git.pokylinux.org/poky-contrib.git
>   Branch: dxu4/bugfix
>   Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dxu4/bugfix
> 
> Thanks,
>     Dongxiao Xu <dongxiao.xu@intel.com>

Merged to master.

Thanks,

Richard



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 2/2] dbus: change owner and mode for dbus-daemon-launch-helper in postinst
  2011-02-11  9:11 [PATCH " Dongxiao Xu
@ 2011-02-11  9:11 ` Dongxiao Xu
  0 siblings, 0 replies; 5+ messages in thread
From: Dongxiao Xu @ 2011-02-11  9:11 UTC (permalink / raw)
  To: poky

From: Dongxiao Xu <dongxiao.xu@intel.com>

Add code in dbus postinst to change owner and mode for
dbus-daemon-launch-helper.

[BUGID #603]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 meta/recipes-core/dbus/dbus.inc      |    4 +++-
 meta/recipes-core/dbus/dbus_1.4.1.bb |    2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/dbus/dbus.inc b/meta/recipes-core/dbus/dbus.inc
index da77819..1ef0d8f 100644
--- a/meta/recipes-core/dbus/dbus.inc
+++ b/meta/recipes-core/dbus/dbus.inc
@@ -53,7 +53,9 @@ pkg_postinst_dbus() {
 			--ingroup "$MESSAGEUSER" "$MESSAGEUSER"
 
 	grep -q netdev: /etc/group || addgroup netdev
-	chmod u+s /usr/libexec/dbus-daemon-launch-helper
+
+	chown root:"$MESSAGEUSER" /usr/libexec/dbus-daemon-launch-helper
+	chmod 4754 /usr/libexec/dbus-daemon-launch-helper
 
 	# add volatile after new user/grp are created
 	echo "d messagebus messagebus 0755 /var/run/dbus none" > /etc/default/volatiles/99_dbus
diff --git a/meta/recipes-core/dbus/dbus_1.4.1.bb b/meta/recipes-core/dbus/dbus_1.4.1.bb
index 7c5627b..f16d9f2 100644
--- a/meta/recipes-core/dbus/dbus_1.4.1.bb
+++ b/meta/recipes-core/dbus/dbus_1.4.1.bb
@@ -1,6 +1,6 @@
 include dbus.inc
 
-PR = "r0"
+PR = "r1"
 
 SRC_URI[md5sum] = "99cb057700c0455fb68f8d57902f77ac"
 SRC_URI[sha256sum] = "caa1a0ded2d0f2e95c1d4ec7e3c8bd44834928c5b0ed41a7189963f3593983bd"
-- 
1.6.3.3



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-02-14 12:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-14  7:49 [PATCH v2 0/2][PULL] Fix Bug 603 Dongxiao Xu
2011-02-14  7:49 ` [PATCH 1/2] wpa-supplicant: change dbus interface Dongxiao Xu
2011-02-14  7:49 ` [PATCH 2/2] dbus: change owner and mode for dbus-daemon-launch-helper in postinst Dongxiao Xu
2011-02-14 12:21 ` [PATCH v2 0/2][PULL] Fix Bug 603 Richard Purdie
  -- strict thread matches above, loose matches on Subject: below --
2011-02-11  9:11 [PATCH " Dongxiao Xu
2011-02-11  9:11 ` [PATCH 2/2] dbus: change owner and mode for dbus-daemon-launch-helper in postinst Dongxiao Xu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.