networks: Prefill proper Wi-Fi device in add form

Add access points found on a particular Wi-Fi device only to that device
as it is not gauranteed that other Wi-Fi devices will be able to find
them.  For example, an access point operating in 5 GHz frequency will
only be found and used by Wi-Fi devices capable for 5 GHz communication.
This commit is contained in:
Sunil Mohan Adapa committed 2015-10-11 16:28:55 +05:30
1 parent 408aa8910a
commit 682e5d7c2d
4 files changed
+6 -5

No files matched your search

+1
View File
@@ -624,6 +624,7 @@ def wifi_scan():
ssid = access_point.get_ssid()
ssid_string = ssid.get_data() if ssid else ''
access_points.append({
'interface_name': device.get_iface(),
'ssid': ssid_string,
'strength': access_point.get_strength()})