How to get Wifi -BSSID information on linux side

Hi,

How to get wifi BSSID and Mac Address of the router in Linux side.
pretty-wifi-info.lua gives the following but not BSSID

root@Arduino:~# pretty-wifi-info.lua
Current WiFi configuration
SSID: AIRTEL_MF29_3C8D03
Mode: Client
Signal: 100%
Encryption method: WPA2 PSK (NONE)
Interface name: wlan0
Active for: 14 minutes
IP address: 192.168.0.102/255.255.255.0
MAC address: 90:A2:DA:F2:15:F7
RX/TX: 279/520 KBs
root@Arduino:~#

What other way I can get the BASSID info.

Thanking you all in advance

Regards

BREL

Locate pretty-wifi-info (it's /usr/bin/pretty...)
Add line

accumulator["bssid"] = net:active_bssid()

below line 31. Then add

if info.bssid then
print("BSSID: " .. info.bssid)
end

below line 52

I may have mistyped something, so double check everything. IF it's working, please consider submitting a pull request on GitHub - arduino/openwrt-packages-yun

Hi Federico Fissore,

Thank you Thank you Sir

Yes- It worked. It worked.

I am truly grateful

I have attached the picture for your reference.

As advised, Will do the Pull request thing @ GitHub - arduino/openwrt-packages-yun - ( If not clear , will get back to you for clarification. Never done that before. Thanks)

Again, Thank you & Thank very much Sir.

Regards

BREL

Hi Federico Fissore & all,

As advised,

to do Pull request thing @ GitHub - arduino/openwrt-packages-yun -

I am not clear on how to do this - ( never done this before)

Can somebody give me some starting pointers on how to do Pull requests.

This will be very useful and I want to do this correctly

Thank you very much

Regards

BREL

For this change it is fairly simple:

  1. If you don't already have a github account, sign up for one (it's free).
  2. Fork arduino/openwrt-packages-yun (upper right corner of the page)
  3. Work in your copy of the repository, perhaps "brel/openwrt-packages-yun". Since the changes are very small, just change the file in the web interface. It is in arduino/yun-scripts/files/usr/bin, the pencil icon opens a editing window.
  4. Generate a pull request Creating a pull request - GitHub Docs

Hi Federico and Noblepepper,

Thank you very much for all the inputs.

I was away, Will learn this and do the pull request as advised.

Just that, I have never done this before

Regards

Srini