Friday, 27 February 2015

Nice to know

If AP's IP address is unknown, connect the ethernet cable from AP to PC and send the command:
                                        ping -b

AP will respond back.

root@pb16lap01u:/home/priya/# ping -b
WARNING: pinging broadcast address
PING ( 56(84) bytes of data.
64 bytes from icmp_req=2 ttl=255 time=0.402 ms
64 bytes from icmp_req=3 ttl=255 time=0.444 ms
64 bytes from icmp_req=4 ttl=255 time=0.382 ms

DHCP setup sequence in Cisco AP:
To open command line interface: telnet <AP's IP address> 9000
ap> en
password: (generally Cisco)
ap#conf t
ap(config)#service dhcp
ap(config)#ip dhcp pool meghna
ap(dhcp-config)#lease infinite

How to unpatch a .patch file?
patch -p1 < hostapd_2.0_xxx.patch

How to set module parameter for kernel module during load time?

modprobe wil6210 rx_ring_order=8
This can be verified in /sys/module/wil6210/parameters/rx_ring_order

4 way handshake:

How to configure PTK and GTK rekeying? 
   For 30 mins timeout, in WLC configure the “Enable Session Timeout” in 1800


In hostpad.conf,
   wpa_group_rekey=600 (in seconds)

> show pmk-cache all shows lifetime of the timers.

while running hostapd, if you get the error : nl80211: Could not configure driver mode

sudo nmcli nm wifi off
sudo rfkill unblock wlan

Installing toolchain
Download tool chain
cd /dir/in/which/tar/file/is/saved && tar xjf gcc-arm-none-eabi-*-yyyymmdd-mac.tar.bz2

which arm-none-eabi-gcc
should show something like:

No comments:

Post a Comment