Skip to content

Commit

Permalink
Added: Add capabilities field to termux-wifi-scaninfo output
Browse files Browse the repository at this point in the history
Closes #676
  • Loading branch information
agnostic-apollo committed Apr 26, 2024
1 parent 4c6a519 commit cff225e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/java/com/termux/api/apis/WifiAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ public void writeJson(JsonWriter out) throws Exception {
// centerFreq0 says "Not used if the AP bandwidth is 20 MHz".
out.name("center_frequency_mhz").value(scan.centerFreq0);
}
if (!TextUtils.isEmpty(scan.capabilities)) {
out.name("capabilities").value(scan.capabilities);
}
if (!TextUtils.isEmpty(scan.operatorFriendlyName)) {
out.name("operator_name").value(scan.operatorFriendlyName.toString());
}
Expand Down

0 comments on commit cff225e

Please sign in to comment.