{nl,cfg,mac}80211: let userspace make meshif mesh gate
Allow userspace to set NL80211_MESHCONF_GATE_ANNOUNCEMENTS attribute, which will advertise this mesh node as being a mesh gate. NL80211_HWMP_ROOTMODE must be set or this will do nothing. Signed-off-by: Javier Cardona <javier@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
0507e159a2
commit
16dd7267f4
@@ -1137,6 +1137,10 @@ static int ieee80211_update_mesh_config(struct wiphy *wiphy,
|
||||
conf->dot11MeshHWMPRootMode = nconf->dot11MeshHWMPRootMode;
|
||||
ieee80211_mesh_root_setup(ifmsh);
|
||||
}
|
||||
if (_chg_mesh_attr(NL80211_MESHCONF_GATE_ANNOUNCEMENTS, mask)) {
|
||||
conf->dot11MeshGateAnnouncementProtocol =
|
||||
nconf->dot11MeshGateAnnouncementProtocol;
|
||||
}
|
||||
if (_chg_mesh_attr(NL80211_MESHCONF_HWMP_RANN_INTERVAL, mask)) {
|
||||
conf->dot11MeshHWMPRannInterval =
|
||||
nconf->dot11MeshHWMPRannInterval;
|
||||
|
Reference in New Issue
Block a user