I will re-send this message to ML because of delivery error. ---------- Forwarded message ---------- From: Masashi Honma <masashi.honma@xxxxxxxxx> Date: 2015-02-24 19:00 GMT+09:00 Subject: Re: [PATCH v4] mac80211: Allow 0 for NL80211_MESHCONF_PLINK_TIMEOUT to disable STA expiration To: Johannes Berg <johannes@xxxxxxxxxxxxxxxx> Cc: "linux-wireless@xxxxxxxxxxxxxxx" <linux-wireless@xxxxxxxxxxxxxxx>, Bob Copeland <me@xxxxxxxxxxxxxxx> 2015-02-24 18:46 GMT+09:00 Johannes Berg <johannes@xxxxxxxxxxxxxxxx>: > > Hi, > > Sorry about the late reply! I'm getting back to merging now and taking a > closer look at this issue. Thank you for your review. > > > > +++ b/net/wireless/nl80211.c > > @@ -5261,7 +5261,7 @@ do { \ > > FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshAwakeWindowDuration, > > 0, 65535, mask, > > NL80211_MESHCONF_AWAKE_WINDOW, nla_get_u16); > > - FILL_IN_MESH_PARAM_IF_SET(tb, cfg, plink_timeout, 1, 0xffffffff, > > + FILL_IN_MESH_PARAM_IF_SET(tb, cfg, plink_timeout, 0, 0xffffffff, > > mask, NL80211_MESHCONF_PLINK_TIMEOUT, > > I think you should document this new behaviour also in nl80211.h. Yes. I will modify and re-send this patch. > > > Additionally - what's the plan on how to discover this? Should userspace > just try to set with 0 value and then drop back to some big number if it > gets an error? I already modified wpa_supplicant by commit 0cb5f8d94536e097af7a11273f79239001a602d6. The way is same as you. It tries to set with 0, if failed it re-try with 60sec future of wpa_supplicant timeout value. -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html