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...



_______________________________________________
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Reply via email to