diff options
author | Martin Xu <martin.xu@intel.com> | 2011-03-09 16:16:49 +0800 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-03-11 02:10:48 +0100 |
commit | 660fe70ab835371028143bfee391eed941620fc3 (patch) | |
tree | 27e6fb8050d863c63c982c853e47cc585cea3c09 /src/tethering.c | |
parent | ddd10ac1696e84ebf9bb7eaa0d39e05483a413dd (diff) | |
download | connman-660fe70ab835371028143bfee391eed941620fc3.tar.gz connman-660fe70ab835371028143bfee391eed941620fc3.tar.bz2 connman-660fe70ab835371028143bfee391eed941620fc3.zip |
tethering: Using /proc/sys/net/bridge to detect the support of bridge
If bridge is built in kernel, /sys/module/bridge can not be used to detect
the support of bridge.
Diffstat (limited to 'src/tethering.c')
-rw-r--r-- | src/tethering.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tethering.c b/src/tethering.c index 705f5ee5..27f4b0da 100644 --- a/src/tethering.c +++ b/src/tethering.c @@ -35,7 +35,7 @@ #include <gdhcp/gdhcp.h> -#define BRIDGE_SYSFS_DIR "/sys/module/bridge" +#define BRIDGE_PROC_DIR "/proc/sys/net/bridge" #define BRIDGE_NAME "tether" #define BRIDGE_IP "192.168.218.1" @@ -53,7 +53,7 @@ const char *__connman_tethering_get_bridge(void) { struct stat st; - if (stat(BRIDGE_SYSFS_DIR, &st) < 0) { + if (stat(BRIDGE_PROC_DIR, &st) < 0) { connman_error("Missing support for 802.1d ethernet bridging"); return NULL; } |