Keven1988
Keven1988
采纳率0%
2016-07-19 01:01 阅读 5.3k

android用wifiManager.getScanResults()扫描wifi有同名的SSID

2

需要自己在项目中做一个wifi的设置页面。我用wifiManager.getScanResults()扫描后,集合中得到有同名的SSID,BSSID的后两位不同。但实际上用手机查看附近的wifi,重名SSID的wifi只有一个。
扫描的集合toString()后如下:
[SSID: CEM-Meterbox, BSSID: 20:e5:2a:4e:9f:00, capabilities: [WPA--CCMP+TKIP][WPA2-PSK-CCMP+TKIP][ESS], level: -64, frequency: 2412, timestamp: 608098041103, distance: ?(cm), distanceSd: ?(cm), SSID: CEM-Meterbox, BSSID: 20:e5:2a:4e:9e:e0, capabilities: [WPA--CCMP+TKIP][WPA2-PSK-CCMP+TKIP][ESS], level: -73, frequency: 2437, timestamp: 608098041091, distance: ?(cm), distanceSd: ?(cm), SSID: TP-LINK_A730, BSSID: 50:bd:5f:f8:a7:30, capabilities: [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS], level: -70, frequency: 2462, timestamp: 608042196856, distance: ?(cm), distanceSd: ?(cm), SSID: 月红超市, BSSID: b6:46:99:d2:ab:16, capabilities: [ESS], level: -89, frequency: 2462, timestamp: 608098040644, distance: ?(cm), distanceSd: ?(cm), SSID: CEM-Meterbox, BSSID: 20:e5:2a:4e:d9:e0, capabilities: [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][ESS], level: -86, frequency: 2412, timestamp: 608038942374, distance: ?(cm), distanceSd: ?(cm), SSID: ERD wifi Module, BSSID: 1c:fa:68:ef:82:12, capabilities: [WPA2-PSK-CCMP+TKIP][WPS][ESS], level: -91, frequency: 2442, timestamp: 608042196870, distance: ?(cm), distanceSd: ?(cm)]
其中SSID: CEM-Meterbox出现了几次。
求大神帮忙解决一下,不胜感激!http://ask.csdn.net/#

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

3条回答 默认 最新

  • OoODeng OoODeng 2017-06-03 09:14

    路由器的双频段的,2.4G和5G并存,导致扫描出来的两个SSID相同但是BSSID不同的结果

    点赞 2 评论 复制链接分享
  • mxsl_2012 猫啸山林 2016-07-19 07:08

    是不是没清空列表还多次扫描了啊?

    点赞 评论 复制链接分享
  • qq_24271643 qq_24271643 2017-09-19 08:19

相关推荐