Permalink
Browse files

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
  • Loading branch information...
1 parent 4768c2f commit 32ab933950ccd369d1d690d7d5b6a365b140791f @rmcc rmcc committed Apr 19, 2011
Showing with 11 additions and 0 deletions.
  1. +3 −0 Android.mk
  2. +8 −0 SoftapController.cpp
View
@@ -64,6 +64,9 @@ endif
ifdef WIFI_DRIVER_FW_AP_PATH
LOCAL_CFLAGS += -DWIFI_DRIVER_FW_AP_PATH=\"$(WIFI_DRIVER_FW_AP_PATH)\"
endif
+ifdef WIFI_DRIVER_HAS_LGE_SOFTAP
+LOCAL_CFLAGS += -DLGE_SOFTAP
+endif
#ifdef OMAP_ENHANCEMENT
ifdef BOARD_SOFTAP_DEVICE
View
@@ -82,7 +82,11 @@ int SoftapController::startDriver(char *iface) {
LOGD("Softap driver start - wrong interface");
iface = mIface;
}
+#ifdef LGE_SOFTAP
+ fnum = getPrivFuncNum(iface, "START-SOFTAP");
+#else
fnum = getPrivFuncNum(iface, "START");
+#endif
if (fnum < 0) {
LOGE("Softap driver start - function not supported");
return -1;
@@ -109,7 +113,11 @@ int SoftapController::stopDriver(char *iface) {
LOGD("Softap driver stop - wrong interface");
iface = mIface;
}
+#ifdef LGE_SOFTAP
+ fnum = getPrivFuncNum(iface, "STOP-SOFTAP");
+#else
fnum = getPrivFuncNum(iface, "STOP");
+#endif
if (fnum < 0) {
LOGE("Softap driver stop - function not supported");
return -1;

0 comments on commit 32ab933

Please sign in to comment.