Allow hostapd driver configuration

Introduce BOARD_HOSTAPD_DRIVER_NAME that allows overriding hostapd driver
written in hostapd.conf.

Change-Id: I3ca7062603446ee3bd0e8c45a19dab7da1694768
Clamp MSS when tethering to fix broken fragmentation.

Adds a netfilter rule to allow tethering with ISPs that don't support
fragmented packets, but do advertise an appropraite path MTU.

Background: some ISPs don't support IP fragmentation, either because
they're afraid of IP fragmentation attacks, or their routers are braindead.
Usually this isn't an issue for connecting clients because their DHCP
responses include an interface MTU equal to the path MTU.  In response, the
client ensures during TCP handshakes that connections use an MSS that
results in TCP/IP packets never being fragmented.

However, problems occur when the connecting "client" is a NAT router (such
as a tethering phone).  Often the phone-tethered host interface (e.g., USB
RNDIS, 802.11, etc.) uses a preset MTU (usually 1500) that exceeds the path
MTU advertised by the ISP.  The host will open TCP connections with
too-large of an MSS, and inevitably large packets will become fragmented
and lost.  The fix is to have the router (phone) mangle TCP handshakes to
clamp the MSS such that generated TCP/IP packets never exceed the path MTU.
This implements such a fix as described in the iptables(8) man page.
Support LGE's version of the bcm4329 SoftAP

LGE has a number of SDIO and power-management patches on top of
bcm4329, which include separate pairs of functions to start/stop
the driver in STA or AP mode. Use LGE's SOFTAP priv functions if
WIFI_DRIVER_HAS_LGE_SOFTAP is true

Change-Id: Id90a679794f12bfd3a35f9e0608288ae72cefd5f
Allow removing hostapd entropy parameter (-e)

Do not pass "-e WIFI_ENTROPY_FILE" to hostapd when
BOARD_HOSTAPD_NO_ENTROPY is set.

Change-Id: I219637d11b56650ff41e4b6f64b032b679eb673d
NatController: Raise the max length of an interface name

"rmnet_sdioX" has more than 10 characters, so devices using qcom's
SDIO_AL stuff were unable to use rmnet as an upstream tethering
iface

Change-Id: If4ae0060a135294583f38fc2d88c94675abccd79
Allow different lease time in tether start command

Make "tether start" recognize an optional argument for the lease time in
seconds. Defaults to 1 hour.

Change-Id: Ic65818fdb472a49c72fb56b1ad3ac33e4136a9a4
netd: TI softap for wl12xx devices
Fix merge error. Logging macros were renamed from LOG to ALOG in jellybean.

Change-Id: I5f35c059ef25c9678ef476f585092286e2fe1758
TISoftap: LOG to ALOG change
netd: Insert Android iptables rules on top

Avoid a mix of rules with iptables scripts at boot (init.d)

Change-Id: Id4a3ad7a6fd86b4f106594258f4f4ebc69be19fa
system/netd TI mac80211: Hostapd updates from omapzoom JB

Change-Id: Ib7f1220dbc51684c1041167e855aa299ba408fe8
Changes:
http://omapzoom.org/?p=platform/system/netd.git;a=commitdiff;h=e55199d8d46ce7710563655123e2a86e06eaf278;hp=cef54c42c914900e17ec820054dbf85eca225063

Changes to SoftAPController for TI solution

(TI solution is based on hostapd)
Change-Id: I500dd743e83702701fcd1bed6916b8d8a62688f4

Signed-off-by: Vishal Mahaveer <a0271468@ti.com>
Merge branch 'jb-release' of https://android.googlesource.com/platform/system/netd into aosp
Merge "system/netd TI mac80211: Hostapd updates from omapzoom JB" into jellybean
Revert "Support LGE's version of the bcm4329 SoftAP"

This reverts commit ff4ea7d2fc0d160f2ecf623f4c58588182734e44.
Revert "netd: Insert Android iptables rules on top"

This reverts commit f65e7047195b156193a60d2a13f258334c0b48a0.
Revert "Allow removing hostapd entropy parameter (-e)"

This reverts commit 227f8af75c9567109ee758e4449a70e370e7f541.
Merge branch 'jb-mr1-release' of https://android.googlesource.com/platform/system/netd into mr1

Change-Id: I2f93cf88173ad57402905773ddf97cdeccc31c54
SoftapController: fix broken WPA2 tethering

ieee80211n=1 (new in 4.2) was accidentally removed in the merge
causing WPA2 tethering to be broken.

Change-Id: I5402b6a851458f68bed7dc6b9912be4bc810bda4
Merge tag 'android-4.2.2_r1' of https://android.googlesource.com/platform/system/netd into 1.1

Android 4.2.2 release 1