The mac80211 kernel module implements the process of processing the 802.11 protocol. The content in the Mlme.c file implements the processing of the Deauth management frame. Considering the Deauth attack there is still no good defense method (supposedly 802.11w, but I have not seen the application of his device, why?) Solution), Aireplay-ng tools can still easily deauth customers offline, so want to modify the client's kernel source code to prevent Deauth to the client. (AP needs to be modified for AP)
The method précis-writers is as follows:
1. To compile kernel modules, you need to download the operating system source code and compile make;
2. Find/net/mac80211/mlme.c Modify the parts of the processing deauth such as:
There may be a problem with the modification here, cfg80211_rx_mlme_mgmt This function is not carefully read.
2. Go back to the main source directory of the kernel, make modules and make Modules_install
3.reboot
Attention:
Here the main record modification method, modify the kernel to be cautious.
When the kernel compiles make menuconfig, be careful to select the required driver installation. Compilation method reference 1, kernel source code download reference 2.
Reference documents:
1. Introduction and combat of Linux driver development
2. http://www.backtrack.org.cn/thread-12670-1-1.html