diff --git a/satellites/hostapd.sat b/satellites/hostapd.sat index 4e13801..e2e0778 100644 --- a/satellites/hostapd.sat +++ b/satellites/hostapd.sat @@ -1,12 +1,21 @@ name=hostapd version=2.6 +define_option '!rtlxdrv: Build with support for RTL8188{C|CU|CUS} wifi chips' + dlextract "http://w1.fi/releases/$name-$version.tar.gz" \ 'eaa56dce9bd8f1d195eb62596eab34c7' + +if option rtlxdrv; then + dlfile 'https://raw.githubusercontent.com/pritambaral/hostapd-rtl871xdrv/601a3f19d78393018f39a2e38ad14bf2e3315a0a/rtlxdrv.patch' \ + 'fef4f428e4aae71f5202a61f656952da' +fi _ -cd "$name-$version/$name" +cd "$name-$version" +option rtlxdrv patch -p1 -i ../rtlxdrv.patch +cd "$name" cp defconfig .config option rtlxdrv echo CONFIG_DRIVER_RTW=y >> .config make