Skip to content

Commit 2fb967b

Browse files
authored
Update README.md
1 parent ef5722c commit 2fb967b

File tree

1 file changed

+30
-3
lines changed

1 file changed

+30
-3
lines changed

README.md

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,26 @@ Patch: for hostapd v2.10/2.11
1010

1111
## Instructions
1212

13+
You will require a few packeges in order to compile hostapd, you can build them yourself or install the binary
14+
15+
``` bash
16+
apt install pkgconf libnl-genl-3-dev
17+
```
18+
19+
For openssl it will be a bit more involving
20+
21+
``` bash
22+
git clone https://github.com/openssl/openssl.git
23+
cd openssl
24+
./Configure
25+
make -j8
26+
make install
27+
```
28+
1329
Download hostapd
1430
```
1531
git clone git://w1.fi/hostap.git
32+
cd hostap
1633
```
1734

1835
Apply patch
@@ -21,10 +38,20 @@ git checkout hostap_2_10
2138
git apply For_intel_Wi-Fi_cards_v2_10.patch
2239
```
2340

24-
Build
41+
``` bash
42+
cd ./hostapd
43+
cp defconfig .config
2544
```
26-
cd src
27-
make -j8
45+
46+
Edit .config file and add:
47+
``` bash
48+
CFLAGS += -I/usr/include/libnl3
49+
```
50+
51+
Finally build hostapd:
52+
53+
```bash
54+
make build
2855
```
2956

3057
After copying the modifyed version to your system, run the command bellow so that the file doesn't get replaced or delete in case of system updates:

0 commit comments

Comments
 (0)