这是indexloc提供的服务,不要输入任何密码
Skip to content

Add capabilities to the output of termux-wifi-scaninfo #676

@37eex9

Description

@37eex9

Feature description

For the termux-wifi-scaninfo command I'd like to get the capabilities string. This should include information about the wifi security. E.g., whether this AP does support WPA2, WPA3, WEP or no encryption.

Reference implementation

Have you checked if the feature is accessible through the Android API?
The Android API documentation states, that there is a capabilities field in the ScanResult object.

Do you know of other open-source apps that has a similar feature as the one you want? (Provide links)
WifiAnalyzer show those capabilities I'm interested in. Unfortunately, I could not find the exact implementation within their repository.

I think it should be done by adding the line

                        out.name("capabilities").value(scan.capabilities);

to the WifiAPI in the brackets between line 76 and 115.

Up to now, I did not have the time to test it by myself. If I did, I'll open a pull request, but maybe someone else is faster ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions