標籤:
一,WifiManager
新增:
1 public void setTdlsEnabled (InetAddress remoteIPAddress, boolean enable) 2 3 Enable/Disable TDLS on a specific local route. 4 5 TDLS enables two wireless endpoints to talk to each other directly without going through the access point that is managing the local network. It saves bandwidth and improves quality of the link. 6 7 This API enables/disables the option of using TDLS. If enabled, the underlying hardware is free to use TDLS or a hop through the access point. If disabled, existing TDLS session is torn down and hardware is restricted to use access point for transferring wireless packets. Default value for all routes is ‘disabled‘, meaning restricted to use access point for transferring packets. 8 9 Parameters10 remoteIPAddress IP address of the endpoint to setup TDLS with11 enable true = setup and false = tear down TDLS
public void setTdlsEnabledWithMacAddress (String remoteMacAddress, boolean enable)Similar to setTdlsEnabled(InetAddress, boolean), except this version allows you to specify remote endpoint with a MAC address.ParametersremoteMacAddress MAC address of the remote endpoint such as 00:00:0c:9f:f2:abenable true = setup and false = tear down TDLS
變更:
public DhcpInfo getDhcpInfo ()Return the DHCP-assigned addresses from the last successful DHCP request, if any.Returnsthe DHCP information/*Change from deprecated to undeprecated.*/
TDLS簡介
日前WiFi聯盟推出了名為TDLS(Tunneled Direct Link Setup,通道直接鏈路建立)的無線標準,這項標準允許兩款裝置通過WiFi網路進行點對點直連,與早起提倡的WiFi Direct相似,不過功能則更加完善。
前後版源碼版本差異查看:frameworks\base\docs\html\sdk\api_diff\19\changes
轉載請註明出處:http://www.cnblogs.com/Miami/p/4380381.html
Android4.4版本源碼變化