open-sdr / openwifi

open-source IEEE 802.11 WiFi baseband FPGA (chip) design: driver, software
GNU Affero General Public License v3.0
3.68k stars 627 forks source link

Client can't get IP from AP #316

Open Fei8686 opened 1 year ago

Fei8686 commented 1 year ago

Hi, Thank you very much for providing this project, it helps a lot during my study. I am experimenting with a zc706_fmcs2 board.The image file I use is “openwifi-1.4.0-notter.img”.The version of VIVADO I use is 2021.1.

In the notter.md,I noticed that you have proposed a solution for client not being able to get IP from the openwifi AP.I also encountered this issue during the debugging process. I used the method you provided, but still can not get the IP. Could you help me to solve this problem?

First of all,I connected the TX and RX of the board through the RF cable with 30dB attenuation.Then,I connected two boards according to the operation steps in ap-client-two-sdr.md.The information printed after the authentication and association between AP and Client is also the same as what you posted in ap-client-two-sdr.md.

dhclient sdr0
ifconfig sdr0

The information printed by the terminal is as follows:

tony@tony-B360M-D3V:~$ ssh root@192.168.10.122
root@192.168.10.122's password: 
Linux analog 5.10.0-98248-g1bbe32fa5182-dirty #6 SMP PREEMPT Tue Mar 14 12:13:23 CET 2023 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Feb  9 11:17:55 2023 from 192.168.10.1
root@analog:~# dhclient sdr0
PING 192.168.13.1 (192.168.13.1) 56(84) bytes of data.

--- 192.168.13.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

root@analog:~# ifconfig sdr0
sdr0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::6455:44ff:fe33:2288  prefixlen 64  scopeid 0x20<link>
        ether 66:55:44:33:22:88  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 60  bytes 11777 (11.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Could you help me to solve the problem of how to get IP address in AP-STA mode?

Thanks, The shy