mesh: Skip STA expiration on user_mpm mode
PATCH 1/1 mesh: Skip STA expiration on user_mpm mode
The mesh STA expiration processing works even if user_mpm mode. This causes unexpected STA disconnection.
This patch skips STA expiration processing on user_mpm mode.
--- net/mac80211/mesh.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
net/mac80211/mesh.c +2 -1
@@ -574,7 +574,8 @@ static void ieee80211_mesh_housekeeping(struct ieee80211_sub_if_data *sdata)struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh;u32 changed; -ieee80211_sta_expire (sdata, ifmsh->mshcfg.plink_timeout *HZ ); +if (!ifmsh->user_mpm) +ieee80211_sta_expire (sdata, ifmsh->mshcfg.plink_timeout *HZ );mesh_path_expire (sdata); changed =mesh_accept_plinks_update (sdata);
Signature · 1 line
2.1.0
net/mac80211/mesh.c static void ieee80211_mesh_housekeeping(struct ieee80211_sub_if_data *sdata) · line 578
Quoted 11 lines · Masashi Honma
The mesh STA expiration processing works even if
user_mpmmode. This causes unexpected STA disconnection.This patch skips STA expiration processing on
user_mpmmode.Signed-off-by Masashi Honma <[email protected]>net/mac80211/mesh.c +2
-1-ieee80211_sta_expire (sdata, ifmsh->mshcfg.plink_timeout *HZ ); +if (!ifmsh->user_mpm) +ieee80211_sta_expire (sdata, ifmsh->mshcfg.plink_timeout *HZ );
I took a look at what authsae is doing, and it looks like it's just prepared to handle the NL80211_CMD_DEL_STATION events generated from cfg80211_del_sta() -- is there a reason that couldn't work for wpa_s too? Then you'd only need the patch to configure that timeout on the client, and you can simplify it by not caring about user_mpm.
Signature · 1 line
Bob Copeland %% www.bobcopeland.com
2015-01-15 12:14 GMT+09:00 Bob Copeland <[email protected]>:
Quoted 5 lines
I took a look at what authsae is doing, and it looks like it's just prepared to handle the
NL80211_CMD_DEL_STATIONevents generated fromcfg80211_del_sta()-- is there a reason that couldn't work forwpa_stoo? Then you'd only need the patch to configure that timeout on the client, and you can simplify it by not caring aboutuser_mpm.
Thank you for your review.
Indeed wpa_supplicant do nothing even if it receivced NL80211_CMD_DEL_STATION. But the mismatch (wpa_supplicant recognizes STA is alive, mac80211 recognizes STA leaved) is not so good.
Anyway I have not considered authsae user land application. Does authsae have it's own inactivity timer ?
If not, I will drop this patch.
Quoted 7 lines · Masashi Honma
2015-01-15 12:14 GMT+09:00 Bob Copeland <[email protected]>:
Quoted 5 lines
I took a look at what authsae is doing, and it looks like it's just prepared to handle the
NL80211_CMD_DEL_STATIONevents generated fromcfg80211_del_sta()-- is there a reason that couldn't work forwpa_stoo? Then you'd only need the patch to configure that timeout on the client, and you can simplify it by not caring aboutuser_mpm.
Quoted 5 lines
Thank you for your review.
Indeed
wpa_supplicantdo nothing even if it receivcedNL80211_CMD_DEL_STATION. But the mismatch (wpa_supplicantrecognizes STA is alive, mac80211 recognizes STA leaved) is not so good.
Right - so wpa_s could be changed to handle this event (for mesh), I think.
Quoted 3 lines
Anyway I have not considered authsae user land application. Does authsae have it's own inactivity timer ?
If not, I will drop this patch.
No, it relies on mac80211's inactivity timer. So, yeah, I think this patch would break authsae, in the sense that stations would never get removed.
Signature · 1 line
Bob Copeland %% http://bobcopeland.com/
2015-01-16 21:59 GMT+09:00 Bob Copeland <[email protected]>:
Quoted 3 lines
No, it relies on mac80211's inactivity timer. So, yeah, I think this patch would break authsae, in the sense that stations would never get removed.
I see. I will drop this patch.