Q8-Add SSID IE

  • In this section, you are going to learn

  • How to add multiple SSID IE elements in Beacons

#

Version

Ubuntu

Ubuntu 22.04 64 bit

Linux Kernel

6.9.2

Supplicant

wpa_supplicant 2.10

Hostapd

hostapd 2.10

  • Add multiple SSID IE elements in Beacons

  • Callflow for add multiple SSID IE elements in Beacons

ieee80211_beacon_get_tim
    __ieee80211_beacon_get
	ieee80211_beacon_get_ap
           drv_add_multiple_ssid_ie
  • Download the below patch file

add_multiple_ssid_ie_in_beacons.patch

test:~$ pwd
/home/test/
test:~$ cd linux-6.9.2/
  • Note : Your present working directory should be linux-6.9.2

test:~$ pwd
/home/test/linux-6.9.2/
  • Remove mac80211 module

test:~$ sudo systemctl stop NetworkManager.service

test:~$ sudo rmmod mac80211
  • Run the below command to apply patch

test:~$ sudo patch -p1 < add_multiple_ssid_ie_in_beacons.patch
patching file net/mac80211/ieee80211_i.h
patching file net/mac80211/link.c
patching file net/mac80211/mac80211.mod.c
patching file net/mac80211/tx.c
patching file net/mac80211/util.c
  • Compile mac80211 folder

test:~$ sudo make -C . M=net/mac80211/
  • Insert mac80211 module

test:~$ sudo insmod ./net/mac80211/mac80211.ko
  • Download file to check wireshark output

add_multiple_ssid_ie_in_beacons.pcapng

  • Check for beacon packet

  • Click on packet No.2 as shown in the image below

Diagram
  • Click on IEEE 802.11 Wireless Management

  • Click on Tagged parameters

  • Click on Tag: SSID parameter set: Undecoded

Diagram