forked from diederikdehaas/rtl8812AU
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
16 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
#!/bin/sh | ||
|
||
insmod 8812au.ko | ||
echo 1 > /proc/sys/net/ipv4/ip_forward | ||
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE | ||
iptables -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT | ||
iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT | ||
/etc/init.d/net.wlan0 start | ||
busybox udhcpd | ||
if [[ "$1" == "bridge" ]] | ||
then | ||
ip link add br0 type bridge | ||
ip link set dev eth0 master br0 | ||
ip link set dev wlan0 master br0 | ||
else | ||
echo 1 > /proc/sys/net/ipv4/ip_forward | ||
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE | ||
iptables -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT | ||
iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT | ||
# /etc/init.d/net.wlan0 start | ||
busybox udhcpd | ||
fi | ||
hostapd -dd /etc/hostapd/hostapd.conf |
370f83b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a new version available, the v5.2.20 may be found here
370f83b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
Realtek changed again too many things. I've created a branch with a preliminary merge, but some functions are missing and not easy to reconstruct. Seeing the release note from realtek, this may not the worth the effort, seeing how little the number or fixes (only Master DFS mode...) and the number of changes! They are working like pigs
370f83b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree! These are very dirty drivers, but easy to add frame injection too, what is why I work on it. Great job anyway, may be using some of your patches at our repo. Personalet, i disabled DFS.