Skip to content

Commit

Permalink
rm .cache.mk when make clean
Browse files Browse the repository at this point in the history
  • Loading branch information
fariouche committed Jun 30, 2018
1 parent 196df8d commit 370f83b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,8 @@ EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
SUBARCH := $(shell uname -m | sed -e s/i.86/i386/)
ARCH ?= $(SUBARCH)
CROSS_COMPILE ?=
KVER := $(shell uname -r)
#KVER := $(shell uname -r)
KVER := $(shell make -C /usr/src/linux -s kernelversion)
KSRC := /lib/modules/$(KVER)/build
MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/
INSTALL_PREFIX :=
Expand Down Expand Up @@ -1855,7 +1856,7 @@ clean:
cd hal ; rm -fr */*/*/*.mod.c */*/*/*.mod */*/*/*.o */*/*/.*.cmd */*/*/*.ko
cd hal ; rm -fr */*/*.mod.c */*/*.mod */*/*.o */*/.*.cmd */*/*.ko
cd hal ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko .cache.mk
cd core/efuse ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
Expand Down
18 changes: 13 additions & 5 deletions load_wifi.sh
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

3 comments on commit 370f83b

@kimocoder
Copy link

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

@fariouche
Copy link
Owner Author

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

@kimocoder
Copy link

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.

Please sign in to comment.