airgorah: [is_5ghz_supported] function is not detectable in Kali Linux in M1 vmware

Hi,

I’m always using my usb that supports 5ghz for sure.

Actually, I’m using M1 with vmware to run kali linux but I think fn is_5ghz_supported(iface: &str) function (v 0.7.2) doesn’t work with the current code.

/// Check if an interface supports 5GHz
pub fn is_5ghz_supported(iface: &str) -> Result<bool, IfaceError> {
    let phy_path = format!("/sys/class/net/{}/phy80211", iface);
┌──(kali㉿kali)-[~]
└─$ iw list | grep 5200  
                        * 5200.0 MHz [40] (20.0 dBm)
                        * 5200.0 MHz [40] (20.0 dBm)
                        * 5200.0 MHz [40] (20.0 dBm)

I have 3 usb that support 5GHZ.

Please check it, or you can always turn on (check it by default 5ghz option like 2.4ghz, and try catch) to avoid some stucks.

Thanks @martin-olivier

About this issue

  • Original URL
  • State: closed
  • Created 2 months ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

I’ve change it in my local, it works well. Thanks @martin-olivier and @Romko666

It works!!! Now I can work with different frequencies!

image