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 (revisione 555)
- +++ src/com/googlecode/android/wifi/tether/system/Configuration.java (copia locale)
- @@ -234,12 +234,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
- @@ -269,6 +268,10 @@
- device.equals(DEVICE_UMTSSPYDER)) {
- this.setupHostapMotOMAP4();
- }
- + // Samsung Galaxy SL
- + else if (device.equals(DEVICE_GALAXYSL)) {
- + this.setupHostapGalaxysl();
- + }
- // Generic WiLink
- else if (device.equals(DEVICE_RUBY)) {
- this.setupHostapGenWiLink7();
- @@ -1003,6 +1006,51 @@
- }
- /**
- + * Samsung Galaxy SL
- + */
- + private void setupHostapGalaxysl() {
- + this.wextSupported = false;
- + this.softapSupported = false;
- + this.softapSamsungSupported = false;
- + this.netdSupported = false;
- + this.tiadhocSupported = false;
- + this.frameworkTetherSupported = true;
- +
- + this.wextInterface = "tiwlan0";
- +
- + // hostapd support
- + if (((new File("/system/bin/hostapd")).exists() == true ||
- + (new File("/system/bin/hostap")).exists() == true) &&
- + (new File("/system/bin/tiap_loader")).exists() == true &&
- + (new File("/system/etc/wifi/softap/ap_firmware.bin")).exists() == true &&
- + (new File("/system/etc/wifi/softap/tiwlan_ap.ini")).exists() == true) {
- + this.hostapdSupported = true;
- + this.hostapdPath = "/system/bin/hostap";
- + 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";
- + }
- + else {
- + this.hostapdSupported = false;
- + this.autoSetupMethod = "wext";
- + }
- +
- + this.netdInterface = "tiap0";
- + this.encryptionIdentifier = "wpa";
- + this.opennetworkIdentifier = "open";
- +
- + // Kernel-Module
- + if ((new File("/system/lib/modules/tiap_drv.ko")).exists() == true) //Cyanogenmod
- + this.hostapdKernelModulePath = "/system/lib/modules/tiap_drv.ko";
- + else
- + this.hostapdKernelModulePath = "/system/etc/wifi/softap/tiap_drv.ko";
- + this.hostapdKernelModuleName = "tiap_drv";
- +
- + this.genericSetupSection = true;
- + }
- +
- + /**
- * GENERIC
- */
- private void setupGeneric() {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement