客户端如何在单个 SSID 内识别其连接到的特定接入点?
问题如下 - 有一个大学校园范围内的 wifi 连接,具有单个 SSID,例如“campus-wifi”。用户在校园内自由漫游,并在接入点之间进行通常的切换。我的问题是,网络堆栈的任何层是否有任何信息允许客户端识别(任何唯一标识符都可以)它们连接到的特定接入点,而不仅仅是事实他们连接到“校园wifi”?
如果相关的话,我希望能够从移动设备(主要是 Android/iOS)执行此操作。
The problem is as follows - there's a university campus wide wifi connection with a single SSID, say "campus-wifi". The user freely roams around campus, and the usual hand-off between access points occurs. My question is, is there any information at any layer of the network stack that allows the client to identify (any unique identifier is fine) the specific access point they're connected to, rather than simply the fact that they are connected to "campus-wifi"?
If it's relevant, I'd like to be able to do this from mobile devices (android/iOS primarily).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以获得所连接的接入点的 BSSID。类似的东西:
BSSID 并不是 100% 你会得到什么,因为我从来没有使用过它——但它应该唯一地标识基站——维基百科似乎表明你会得到 AP 的 MAC(靠近底部):
http://en.wikipedia.org/wiki /Service_set_(802.11_network)#Basic_service_set_identifier_.28BSSID.29
-- Dan
编辑:
根据 Android 文档,它是 MAC 地址:
http://developer.android.com/reference/android/net/wifi/WifiInfo.html
You can get the BSSID of the access point you are connected to. Something like:
Not 100% what you'll get back with the BSSID since I've never used it -- but it should uniquely ID the base station -- Wikipedia seems to indicate that you'll get the MAC of the AP (near the bottom):
http://en.wikipedia.org/wiki/Service_set_(802.11_network)#Basic_service_set_identifier_.28BSSID.29
-- Dan
EDIT:
According to the Android docs, it is the MAC address:
http://developer.android.com/reference/android/net/wifi/WifiInfo.html