mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
{nl,cfg,mac}80211: implement dot11MeshHWMProotInterval and dot11MeshHWMPactivePathToRootTimeout
Add the mesh configuration parameters dot11MeshHWMProotInterval and dot11MeshHWMPactivePathToRootTimeout to be used by proactive PREQ mechanism. Signed-off-by: Chun-Yeow Yeoh <[email protected]> [line-break commit log] Signed-off-by: Johannes Berg <[email protected]>
This commit is contained in:
parent
73c3df3ba3
commit
ac1073a61d
6 changed files with 48 additions and 1 deletions
|
|
@ -1590,6 +1590,12 @@ static int ieee80211_update_mesh_config(struct wiphy *wiphy,
|
|||
sdata->vif.bss_conf.ht_operation_mode = nconf->ht_opmode;
|
||||
ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_HT);
|
||||
}
|
||||
if (_chg_mesh_attr(NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT, mask))
|
||||
conf->dot11MeshHWMPactivePathToRootTimeout =
|
||||
nconf->dot11MeshHWMPactivePathToRootTimeout;
|
||||
if (_chg_mesh_attr(NL80211_MESHCONF_HWMP_ROOT_INTERVAL, mask))
|
||||
conf->dot11MeshHWMProotInterval =
|
||||
nconf->dot11MeshHWMProotInterval;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -510,6 +510,10 @@ IEEE80211_IF_FILE(dot11MeshHWMPRannInterval,
|
|||
IEEE80211_IF_FILE(dot11MeshForwarding, u.mesh.mshcfg.dot11MeshForwarding, DEC);
|
||||
IEEE80211_IF_FILE(rssi_threshold, u.mesh.mshcfg.rssi_threshold, DEC);
|
||||
IEEE80211_IF_FILE(ht_opmode, u.mesh.mshcfg.ht_opmode, DEC);
|
||||
IEEE80211_IF_FILE(dot11MeshHWMPactivePathToRootTimeout,
|
||||
u.mesh.mshcfg.dot11MeshHWMPactivePathToRootTimeout, DEC);
|
||||
IEEE80211_IF_FILE(dot11MeshHWMProotInterval,
|
||||
u.mesh.mshcfg.dot11MeshHWMProotInterval, DEC);
|
||||
#endif
|
||||
|
||||
#define DEBUGFS_ADD_MODE(name, mode) \
|
||||
|
|
@ -611,6 +615,8 @@ static void add_mesh_config(struct ieee80211_sub_if_data *sdata)
|
|||
MESHPARAMS_ADD(dot11MeshGateAnnouncementProtocol);
|
||||
MESHPARAMS_ADD(rssi_threshold);
|
||||
MESHPARAMS_ADD(ht_opmode);
|
||||
MESHPARAMS_ADD(dot11MeshHWMPactivePathToRootTimeout);
|
||||
MESHPARAMS_ADD(dot11MeshHWMProotInterval);
|
||||
#undef MESHPARAMS_ADD
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue