Emulation Platform for Software-Defined Wireless Networks
Main Page Get Started Part 1: Mininet-WiFi Usage Part 2: Advanced Options Part 3: Mininet-WiFi Commands Containernet Manet Routing Protocols Mobility Propagation Models SixLoWPAN IEEE 802.11p mac80211_hwsim P4 SUMO Publications Use Case Catalogue Video Demos FAQ The Mininet-WiFi Book
Please follow the steps below if you want to modify mac80211_hwsim:
~$ uname -a
Linux alpha-Inspiron-5480 4.15.0-65-generic #74-Ubuntu SMP Tue Sep 17 17:06:04 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
https://github.com/torvalds/linux/blob/master/drivers/net/wireless/mac80211_hwsim.c
Then you need to select the branch which matches with the kernel version you have - in my case v4.15.
Now you need to save both mac80211_hwsim.c and mac80211_hwsim.h and proceed with the changes in mac80211_hwsim.c on locally.
obj-m += mac80211_hwsim.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
make
net.setModule('./mac80211_hwsim.ko')
info("*** Configuring wifi nodes\n")
net.configureWifiNodes()