Index: client/site_tests/network_WiFiCaps/network_WiFiCaps.py |
diff --git a/client/site_tests/network_WiFiCaps/network_WiFiCaps.py b/client/site_tests/network_WiFiCaps/network_WiFiCaps.py |
index b315c53c8a0ca83cfbf8c04c631c8bc1694b629b..0d3a9900dd47084b31114ae0b72714a786017f9a 100644 |
--- a/client/site_tests/network_WiFiCaps/network_WiFiCaps.py |
+++ b/client/site_tests/network_WiFiCaps/network_WiFiCaps.py |
@@ -38,10 +38,9 @@ class network_WiFiCaps(test.test): |
return self.__parse_iwcap(iwcap.stdout) |
def run_once(self): |
- phy = utils.system_output("iw list | grep Wiphy |" |
- " awk {'NR==1; print $2'}") |
+ phy = utils.system_output("iw list | awk '/^WiPhy/ {print $2}'") |
if not phy or 'phy' not in phy: |
- raise error.TestFail('Physical interface for wlan0 not found') |
+ raise error.TestFail('WiFi Physical interface not found') |
requiredCaps = { |
'sta' : 'true', # station mode |