From 01bc2ce6172c19f72a065fc4cc6eb95f158f67a3 Mon Sep 17 00:00:00 2001 From: HappyZ Date: Tue, 30 Jan 2018 17:16:32 -0600 Subject: [PATCH] Updated Enable 802.11mc FTM on Intel 8260 (markdown) --- Enable-802.11mc-FTM-on-Intel-8260.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Enable-802.11mc-FTM-on-Intel-8260.md b/Enable-802.11mc-FTM-on-Intel-8260.md index 7e092ec..1a8f6ef 100644 --- a/Enable-802.11mc-FTM-on-Intel-8260.md +++ b/Enable-802.11mc-FTM-on-Intel-8260.md @@ -24,6 +24,22 @@ $ git clone https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/backport-iwl $ cd backport-iwlwifi $ make defconfig-iwlwifi-public $ sed -i 's/CPTCFG_IWLMVM_VENDOR_CMDS=y/# CPTCFG_IWLMVM_VENDOR_CMDS is not set/' .config +``` +Before make, we need to change the code so that FTM responder mode is enabled (thanks to Mohamed Ibrahim). Locate `nl80211_start_ap` function in `net/wireless/nl80211.c`, and make the following change: +``` + static int nl80211_start_ap(struct sk_buff *skb, struct genl_info *info) + { +... + kfree(params.acl); + ++ nl80211_start_ftm_responder(skb, info); ++ + return err; + } +``` +Also move the entire `static int nl80211_start_ftm_responder(struct sk_buff *skb, struct genl_info *info)` function above `nl80211_start_ap`. +We are now ready to make & install: +``` $ make -j4 $ sudo make install ```