MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _infer_frequency_band

Function _infer_frequency_band

wifi_interfaces.py:80–91  ·  view source on GitHub ↗
(freq_mhz: Optional[int])

Source from the content-addressed store, hash-verified

78
79
80def _infer_frequency_band(freq_mhz: Optional[int]) -> Optional[str]:
81 if freq_mhz is None:
82 return None
83 if freq_mhz >= 57000:
84 return '60GHz'
85 if freq_mhz >= 5925:
86 return '6GHz'
87 if freq_mhz >= 4900:
88 return '5GHz'
89 if freq_mhz >= 2400:
90 return '2.4GHz'
91 return None
92
93
94def _get_interface_link_details(interface_name: str) -> Dict[str, Optional[str]]:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected