Skip to contentSkip to conversation

Mesh not working, opmode incorrect

ath9k-devel Fabrice 3 participants 4 messages Apr 21, 2011 – Apr 24, 2011

lore
Share & tools
lore

Fabrice

author
#0 lore raw

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

author
#1 lore raw
Quoted 3 lines · Fabrice <fabricedeyber <at> agilemesh.com> writes:

The mesh has not been working in the last builds. Problem started with build 3-31-2011.

I should have specified that the problem was observed with the ath9k driver. We use an AR9280 chipset.

#2 lore raw
Quoted 5 lines · Fabrice
Quoted 3 lines · Fabrice <fabricedeyber <at> agilemesh.com> writes:

The mesh has not been working ?in the last builds. Problem started with build 3-31-2011.

this thread has some more information "[ath9k-devel] Mesh broken", may be a regression?

Quoted 12 lines

I should have specified that the problem was observed with the ath9k driver. We use an AR9280 chipset.

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

#3 lore raw
In reply to Fabrice
Quoted 21 lines · Fabrice

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:

Quoted 4 lines

? ? ? ?if (iter_data.nwds + iter_data.nmeshes)
? ? ? ? ? ?ah->opmode = NL80211_IFTYPE_AP;

This seems to work, for now...

... and in the long run, can't we just get rid of this "opmode" construct? It's obvious (to me at least) that the state space is more complex than what can be represented as a singe enum value.

/Bj?rn