wifi_scan: fix utils.BinWifiException
Change-Id: Ic2c40a603f28efaa8a792a027e8b3ba4217366b7
diff --git a/wifi/wifi.py b/wifi/wifi.py
index 1f81458..c4fde30 100755
--- a/wifi/wifi.py
+++ b/wifi/wifi.py
@@ -501,12 +501,15 @@
Returns:
True.
+
+ Raises:
+ BinWifiException: If an expected interface is not found.
"""
band = opt.band.split()[0]
interface = iw.find_interface_from_band(
band, iw.INTERFACE_TYPE.ap, opt.interface_suffix)
if interface is None:
- raise BinWifiException('No client interface for band %s', band)
+ raise utils.BinWifiException('No client interface for band %s', band)
print(iw.scan(interface))