在Android的复热点 [英] Multiplexed hotspot in Android

查看:348
本文介绍了在Android的复热点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能使用wifi的API,它会像一个热点(因此授予无线客户端网络访问),同时仍允许在本地WiFi设备连接到另一个wifi网络?

Is it possible to write an app in Android using the wifi API which will act like a hotspot (so granting network access to wifi clients) while still allowing the local wifi device to connect to another wifi network ?

一个我测试过的禁用,以便创建一个热点本地WiFi连接。

The one I've tested are disabling local Wifi connection in order to create a hotspot.

推荐答案

我在这里张贴后几个月所以人们想,要实现这个Android设备上可能会有所帮助。

I post here after a few months so people that would like to implement this on an Android device might be helped.

有一种方法可以有一个无线芯片混合动力模式下工作,既站模式的(STA)和的 的(AP)功能的接入点模式。

There is a way to have one wireless chip working in hybrid mode, with both station mode (STA) and access point mode (AP) enabled.

要做到这一点,我代替我的芯片,带有多角色无线驱动程序的无线驱动程序。幸运的是,我的芯片支持此模式下,它是但不是每个无线芯片的情况。我是芯片基于TI芯片的(WL1271)的,多角色得到了支持,虽然它没有提供的previous驱动程序。

To do this, I replaced the wireless driver of my chip with a multi-role wireless driver. Luckily enough, my chip was supporting this mode, it is however not the case for every wireless chips. My chip being a TI based chip (wl1271), multi role was supported, though it was not available with the previous driver.

一旦我得到这个新的驱动程序,我才能有无线驱动程序的 .ko 及相关<$ C $和我的内核重新编译它一起C> mac80211 和 cfg80211 模块(通过提供新的驱动程序所需的API)的产生。最后一步就是升级的wpa_supplicant hostapd 由TI提供的自定义补丁版本。

Once I got this new driver, I had to recompile it along with my kernel in order to have the .ko of the wireless driver and the related mac80211 and cfg80211 modules (providing the APIs needed by the new driver) generated. The last step was to upgrade wpa_supplicant and hostapd with a custom patched version provided by TI.

此外,对于有兴趣 WL1271人只有的这里是我以前和报告的 Android 4.0的工作相应的驱动程序/工具。 4 ICS 的:

Again, for people interested in wl1271 only here are the corresponding drivers/tools I used and reported working on Android 4.0.4 ICS :

https://github.com/TI-OpenLink/hostap/树/ ol_R5.SP3.01

https://github.com/TI-OpenLink/iw/树/ ol_R5.SP3.01

https://github.com/TI-OpenLink/ TI-utils的/树/ ol_R5.SP3.01

https://github.com/TI-OpenLink/ wl12xx_target_scripts /树/ ol_R5.SP3.01 / STA

https://github.com/TI-OpenLink/compat /tree/ol_R5.SP3.01/

https://github.com/TI-OpenLink /compat-wireless/tree/ol_R5.SP3.01/

如果有您的无线芯片多角色的驱动程序,它可能是值得的,找出什么版本或参考wpa_supplicant和hostapd你要使用的补丁和编译/试戴。

If there is a multi role driver for your wireless chip, it might be worth it finding out what version or patches of wpa_supplicant and hostapd you shall use, and compile/try them.

在该过程结束后,我公司已获得两个网络接口(为wlan0和WLAN1),并可能推出的wpa_supplicant上为wlan0和hostapd在WLAN1。

At the end of the process, I had access to two network interfaces (wlan0 and wlan1), and could launch wpa_supplicant on wlan0 and hostapd on wlan1.

这篇关于在Android的复热点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆