From: Fabrice Date: Thu, 21 Apr 2011 21:01:58 +0000 (UTC) Subject: [ath9k-devel] Mesh not working, opmode incorrect Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org The mesh has not been working in the last builds. Problem started with build 3-31-2011. The symptoms are quiet obvious, nodes will not establish peer links. After some debugging I noticed that no beacons were being sent. In build 4-18-2011, a check for the opmode has been added to configure the beacons(ath9k_allow_beacon_config()). The opmode is not set to "NL80211_IFTYPE_MESH_POINT" which is the correct value for a mesh config. Instead it's set to "NL80211_IFTYPE_AP". As a result no beacons are being configured (debug msg: STA vif's beacon not allowed on AP mode) and no plink can be established. The opmode needs to be set correctly in main.c (in ath9k_calculate_summary_state()). Something like: if (iter_data.nmeshes) ah->opmode = NL80211_IFTYPE_MESH_POINT; else if (iter_data.naps) ah->opmode = NL80211_IFTYPE_AP; instead of: if (iter_data.nwds + iter_data.nmeshes) ah->opmode = NL80211_IFTYPE_AP; This seems to work, for now...