#NEWLINE# def GetWifiInterface( ) : #NEWLINE# #INDENT# 'Gets the first Wi-Fi interface name.\n\n  Returns:\n    interface: str, the first Wi-Fi interface name (e.g. en0) or None if no\n      interface exists.\n  ' #NEWLINE# interfaces = systemconfig . GetNetworkInterfaces ( ) #NEWLINE# for interface in interfaces : #NEWLINE# #INDENT# if ( interface [ 'type' ] == 'IEEE80211' ) : #NEWLINE# #INDENT# return interface [ 'dev' ] #NEWLINE# #UNINDENT# #UNINDENT# return None