예제 #1
0
 def gen_accesspoint_msg(iface):
     msg = AccessPoint()
     msg.essid = iface.essid
     msg.macaddr = iface.bssid
     msg.signal = iface.wifi_signal 
     msg.noise = iface.wifi_noise
     msg.snr = msg.signal - msg.noise
     msg.quality = iface.wifi_quality
     msg.rate = iface.wifi_rate
     msg.tx_power = iface.wifi_txpower
     msg.channel = MultiInterfaceDiagPublisher.frequency_to_channel(iface.wifi_frequency)
     return msg
예제 #2
0
 def gen_accesspoint_msg(iface):
     msg = AccessPoint()
     msg.essid = iface.essid
     msg.macaddr = iface.bssid
     msg.signal = iface.wifi_signal 
     msg.noise = iface.wifi_noise
     msg.snr = msg.signal - msg.noise
     msg.quality = iface.wifi_quality
     msg.rate = iface.wifi_rate
     msg.tx_power = iface.wifi_txpower
     msg.channel = IEEE80211_Channels.get_channel(iface.wifi_frequency * 1e6)
     return msg
예제 #3
0
 def gen_accesspoint_msg(iface):
     msg = AccessPoint()
     msg.essid = iface.essid
     msg.macaddr = iface.bssid
     msg.signal = iface.wifi_signal
     msg.noise = iface.wifi_noise
     msg.snr = msg.signal - msg.noise
     msg.quality = iface.wifi_quality
     msg.rate = iface.wifi_rate
     msg.tx_power = iface.wifi_txpower
     msg.channel = MultiInterfaceDiagPublisher.frequency_to_channel(
         iface.wifi_frequency)
     return msg