Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Ticket #2136 (new enhancement)

Opened 13 years ago

Drive HAL in HOSTAP mode for an IBSS VAP

Reported by: Assigned to:
Priority: major Milestone:
Component: madwifi: HAL Version: trunk
Keywords: Cc:
Patch is attached: 1 Pending: 0


As discussed on madwifi-devel, here's an enhancement for IBSS mode in large mesh networks. To be careful, this adds the hostap_for_ibss kernel module parameter which defaults to DISBABLED. Because it's not clear whether the madwifi project continues on the OpenWrt/Kamikaze? level or by using current trunk, I provide two different patches for both. Please also include #2128, which otherwise triggers an oops in trunk.

signed-off-by: sven-ola <>

Driving the HAL in IBSS sometimes adapts the TSF and other timing registers from received beacons/probes. If that happens, expected TX interrupts may not occur until next reset. Which triggers the "lost beacon" tasklet. Resulting effectively in not sending packets for minutes. Because that only happens in large mesh networks, this mode needs to be activated by a kernel module parameter: hostap_for_ibss=1. Note that using this mode has side effects. Such as not supressing beacons/probe answers randomly when receiving other node beacons. It's recommended to lower the beacon interval then. When using an IBSS-VAP together with an HOSTAP-VAP, you may also need to re-trigger IBSS beacon generation after creating the HOSTAP-VAP by issueing "iwpriv athX bintval 1000".


use-hostapmode-for-ibss-trunk.patch (5.3 kB) - added by on 09/19/08 07:13:12.
use-hostapmode-for-ibss-openwrt.patch (4.8 kB) - added by on 09/19/08 07:13:44.

Change History

09/19/08 07:13:12 changed by

  • attachment use-hostapmode-for-ibss-trunk.patch added.

09/19/08 07:13:44 changed by

  • attachment use-hostapmode-for-ibss-openwrt.patch added.