Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: src/com/googlecode/android/wifi/tether/system/Configuration.java
- ===================================================================
- --- src/com/googlecode/android/wifi/tether/system/Configuration.java (revision 575)
- +++ src/com/googlecode/android/wifi/tether/system/Configuration.java (working copy)
- @@ -229,6 +229,10 @@
- device.equals(DEVICE_JFLTEUSC)) {
- this.setupGS4();
- }
- + // Samsung Galaxy SL
- + else if (device.equals(DEVICE_GALAXYSL)) {
- + this.setupGTI9003();
- + }
- // LG Optimus S
- else if (device.equals(DEVICE_THUNDERC)) {
- @@ -256,12 +260,11 @@
- device.equals(DEVICE_SCHR910)) {
- this.setupSoftapSamsung();
- }
- - // LG OMAP3 WiLink6 w/Samsung Galaxy SL
- + // LG OMAP3 WiLink6
- else if (device.equals(DEVICE_LS855) ||
- device.equals(DEVICE_LU3000) ||
- device.equals(DEVICE_P970) ||
- - device.equals(DEVICE_P970G) ||
- - device.equals(DEVICE_GALAXYSL)) {
- + device.equals(DEVICE_P970G)) {
- this.setupHostapLGomap3();
- }
- // LG OMAP4 WiLink7
- @@ -953,6 +956,83 @@
- }
- /**
- + * Samsung Galaxy SL - GT-I9003
- + */
- + private void setupGTI9003() {
- + if (new File("/system/lib/modules/wl12xx_sdio.ko").exists()) {
- + // Kernel 3.0
- + this.wextSupported = true;
- + this.softapSupported = true;
- + this.softapSamsungSupported = false;
- + this.netdSupported = true;
- + this.hostapdSupported = false;
- + this.tiadhocSupported = false;
- + this.netdNdcSupported = false;
- + this.frameworkTetherSupported = true;
- +
- + this.wextInterface = "wlan0";
- +
- + this.netdInterface = "wlan0";
- + this.softapInterface = "wlan0";
- + this.encryptionIdentifier = "wpa2-psk";
- + this.opennetworkIdentifier = "open";
- +
- + this.softapFirmwarePath = "/system/etc/firmware/ti-connectivity/wl1271-nvs.bin";
- +
- + Configuration.wifiLoadCmd = "/system/bin/insmod /system/lib/modules/wl12xx_sdio.ko";
- + Configuration.wifiUnloadCmd = "/system/bin/rmmod wl12xx_sdio";
- +
- + this.autoSetupMethod = "softap";
- + this.genericSetupSection = true;
- +
- + if (new File("/system/bin/ndc").exists()) {
- + if (android.os.Build.VERSION.SDK_INT >= SDK_JB) {
- + this.autoSetupMethod = "netdndc";
- + }
- + this.netdNdcSupported = true;
- + }
- + } else if ((new File("/system/lib/modules/tiap_drv.ko").exists() ||
- + new File("/system/etc/wifi/softap/tiap_drv.ko").exists()) &&
- + (new File("/system/lib/modules/tiap_drv.ko").exists() ||
- + new File("/system/lib/modules/tiap_drv.ko").exists())) {
- + // Kernel 2.6.35
- + this.wextSupported = false;
- + this.softapSupported = false;
- + this.softapSamsungSupported = false;
- + this.netdSupported = false;
- + this.hostapdSupported = false;
- + this.tiadhocSupported = true;
- + this.netdNdcSupported = false;
- +
- + if (new File("/system/bin/hostap").exists() &&
- + new File("/system/lib/modules/tiap_drv.ko").exists()) {
- + // CyanogenMod
- + this.hostapdPath = "/system/bin/hostap";
- + this.hostapdKernelModulePath = "/system/lib/modules/tiap_drv.ko";
- + this.frameworkTetherSupported = false;
- + } else if (new File("/system/bin/hostapd").exists() &&
- + new File("/system/etc/wifi/softap/tiap_drv.ko").exists()) {
- + // Stock
- + this.hostapdPath = "/system/bin/hostapd";
- + this.hostapdKernelModulePath = "/system/etc/wifi/softap/tiap_drv.ko";
- + this.frameworkTetherSupported = true;
- + }
- +
- + this.hostapdKernelModuleName = "tiap_drv";
- + this.hostapdInterface = "tiap0";
- + this.hostapdTemplate = "droi";
- + this.autoSetupMethod = "hostapd";
- + this.hostapdLoaderCmd = "/system/bin/tiap_loader " +
- + "-f /system/etc/wifi/softap/ap_firmware.bin " +
- + "-i /system/etc/wifi/softap/tiwlan_ap.ini " +
- + "-e /data/misc/wifi/nvs_map.bin";
- + this.encryptionIdentifier = "wpa";
- + this.opennetworkIdentifier = "open";
- + this.genericSetupSection = true;
- + }
- + }
- +
- + /**
- * LG Optimus S - thunderc
- */
- private void setupThunderc() {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement