Before explaining the idea behind the patch let’s have a glance on few wireless networking basics.
Wireless networks are based on IEEE 802.11 standards and the wireless devices either operate in 2.4 or 5 Ghz bands. The 802.11 networks are operated in two modes BSS and IBSS.
In BSS all traffic passes through a master station known as Access Point (AP). If one station wants to communicate with other station the communication must first pass through the Access Point.
In IBSS there is no master station i.e. Access Point. The different wireless stations in the network communicate directly. This form of network is commonly known as Ad-Hoc network.
So in the patch file provided in the previous post modifies wpa_supplicant code to make ad-hoc networks appear as regular APs with a (*) prefix. It performs the following
-Removes the [IBSS] flag from wifi scan results.
-pretends ad-hoc ssid with (*) prefix.
-sets mode 1 (ad-hoc) if the ssid is for IBSS
For more information on the modified source please check the following link