wifi

How nl80211 library & cfg80211 work?

你。 提交于 2019-11-29 18:48:44
I want to learn about how nl80211 and cfg80211 works in detail. Function flow, how nl80211 interact with network tools like wpa_supplicant , iw . Plz suggest me some useful links or books to refer. To be able to control wireless drivers from userspace, some IPC communication processes between kernel and userspace are used. At first ioctl with vendor dependent APIs was used. In 1996, Jean Tourrilhes creates wireless extensions (WE or WEXT). The Wireless Extension (WE) is a generic API allowing a driver to expose to the user space configuration and statistics specific to common Wireless LANs. In

how the new Mac OS AirDrop works

自作多情 提交于 2019-11-29 18:14:02
问题 I am wondering what technologies are used by the new Mac OS AirDrop and if there is a way to use it on windows. 回答1: You know that AirDrop is a feature that will be introduced as part of Mac OS X Lion (version 10.7), right? That version of the OS is not even out yet, and it won't be until later this summer. Furthermore, I assume that the handful of lucky developers who have a pre-release copy are under a strict non-disclosure agreement (this is Apple, and that's pretty standard policy in the

wifi on iphone simulator

梦想与她 提交于 2019-11-29 16:48:42
can i disable wifi in iphone simultaor to test my app? I disconnect pc from network, but the icon of wifi on iphone simulator is always on. After disabling your network connection, the icon is still present showing it as enabled, but the connection is of course dead. If you are using the Reachability class or just attempting to ping a URL to verify a connection, the simulator will respond the same way a device with disabled Wifi would, which makes testing on the simulator under these conditions pretty accurate. 来源: https://stackoverflow.com/questions/6001253/wifi-on-iphone-simulator

How to call HTTP URL using wifi in J2ME code for BlackBerry 5.0 and above?

爱⌒轻易说出口 提交于 2019-11-29 16:23:22
I am calling a web service from BlackBerry using J2ME code. When I try to open a connection using HttpConnection , it is checking only the GPRS connection. Now, I want to check the Wi-Fi connection and call a webservice through Wi-Fi. The following code is my connection section. How to change the code for a Wi-Fi connection? public boolean HttpUrl() { HttpConnection conn = null; OutputStream out = null; String url = "http://www.google.com"; try { conn = (HttpConnection) new ConnectionFactory().getConnection(url).getConnection(); if (conn != null) { conn.setRequestMethod(HttpConnection.POST);

How do I force an iOS app to use 3G instead of WiFi?

蹲街弑〆低调 提交于 2019-11-29 15:56:28
问题 I want to use a messaging protocol that works fine over 3G, but not over some corporate firewalls. How can my app force the use of the cellular network when it fails to connect over WiFi even in the case that the WiFi network is reachable? EDIT: After reading through the implementation of the Reachability class I remain unsure whether the two are indeed mutually exclusive. It could well be possible to discover both interfaces via gethostbyname() , which I might try just to see what comes out.

wifiLock and wakeLock not working correctly on Android

故事扮演 提交于 2019-11-29 15:14:42
I am developing an app that needs to use both wifiLock and wakeLock so the audio streaming when the screen is off does not get disturbed. I have tried my app on Android 2.3 and wakeLock and looks like wifiLock work as expected so there is no difference between when the screen is on or off, but the same app on Android 4.2 (Jelly-bean) when the screen goes off is not working as well and the audio gets choppy which shows either wakeLock or wifiLock are not working correctly. Is there any reason for this? Here is how I acquire and release the locks, in my main activity I have: @Override public

On the iPhone, is it possible to find out which WIFI network we are connected to?

99封情书 提交于 2019-11-29 14:50:22
问题 If yes, can we also get additional information about the network configuration? One useful way to do this could be getting the SSID of the current network. Is there an API to do that? Update: I found a similar question here: Can the iPhone SDK obtain the Wi-Fi SSID currently connected to? 回答1: (Separate answer to preserve history etc.) It looks like you might not be able to determine the SSID of the WLAN to which you're connected, at least in an app that will go into the App Store. These

解决ubuntu 15.04 无法开启wifi问题

懵懂的女人 提交于 2019-11-29 14:46:40
在安装玩ubuntu 15.04之后,发现不能识别笔记本的无线网卡。点击 系统设置->软件和更新->附加驱动。安装里面推荐的无线网卡驱动时,发现点击com 802.11 Linux STA 无线驱动源代码。在应用更改后,还是跳到了不适用设备选项上。 于是采用下面步骤开始解决问题: lspci -vvnn | grep 14e4 查看无线网卡信息。 03:00.0 Network controller [0280]: Broadcom Corporation BCM4312 802.11b/g LP-PHY [ 14e4:4315 ] (rev 01) 卡型号 BCM4312 BCI ID 14e4:4315 无线网络设备型号4315 然后依次执行以下指令。 ~$ sudo apt-get update ~$ sudo apt-get install bcmwl-kernel-source 第一个命令时更新系统,无法更新也没关系。 主要是第二个命令,添加一个源。 ~$ sudo modprobe -r b43 ssb wl ~$ sudo modprobe wl 接着安装驱动,驱动安装完毕后,重启电脑。 重启后发现 系统设置->软件和更新->附加驱动 中无线网卡已经选中了 com 802.11 Linux STA 无线驱动源代码。 系统设置->网络 里面也有无线的按钮

Android - Why ConnectivityManager.isActiveNetworkMetered always returning true (even when on Wifi)

江枫思渺然 提交于 2019-11-29 14:41:01
问题 In my music streaming app for Android, the code path below helps decides between a high bitrate stream vs. a lower bitrate based on values returned by the ConnectivityManager class instance. I am trying to understand why ConnectivityManager.isActiveNetworkMetered() would return "true", when it's evident I'm on a local Wifi network. Take the following Android/Java code: boolean isMetered = false; boolean isWifi = false; boolean isEthernet = false; boolean isRoaming = false; boolean isConnected

Connect WiFi Network via App

我与影子孤独终老i 提交于 2019-11-29 12:40:55
问题 I actually create an app where the access to content should be restricted by the WiFi-network the user is connected to. So is it possible to automatically login to a secured WiFi via App? I don't want to force the user to do it manually. It should be as simple as possible for the user. Maybe there is a way to install a network profile for the device or something like that? Any ideas about this? THX 回答1: You may be able to do this with the functions from the CaptiveNetwork framework... Also