tethering: Fix bridge module loading problem
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 5 Sep 2012 14:52:45 +0000 (17:52 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 7 Sep 2012 05:44:23 +0000 (08:44 +0300)
commit4fe07dfed4f720136ee142e56a9d43242c8c78dc
treedcbb8375d6b860e7b00cf2b5827b40b62ca5996d
parent1c2f7a9c8d7fdd9b68d19df1098b27909add2257
tethering: Fix bridge module loading problem

Connman tries to check if bridging is supported by the kernel by checking
whether "/proc/sys/net/bridge" is present. If the bridge is a kernel
module which is not already loaded, then tethering cannot be enabled.

Instead of checking for the file we invoke the "get bridge version" socket
ioctl and the kernel will handle module loading issues - if the bridge
module is not loaded, it will first load it, and then check the version.
src/tethering.c