mac80211: Let userspace enable and configure vendor specific path selection.
Userspace will now be allowed to toggle between the default path selection algorithm (HWMP, implemented in the kernel), and a vendor specific alternative. Also in the same patch, allow userspace to add information elements to mesh beacons. This is accordance with the Extensible Path Selection Framework specified in version 7.0 of the 802.11s draft. Signed-off-by: Javier Cardona <javier@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
24bdd9f4c9
commit
c80d545da3
12 changed files with 214 additions and 36 deletions
|
@ -789,13 +789,23 @@ static int cfg80211_netdev_notifier_call(struct notifier_block * nb,
|
|||
cfg80211_mgd_wext_connect(rdev, wdev);
|
||||
break;
|
||||
#endif
|
||||
#ifdef CONFIG_MAC80211_MESH
|
||||
case NL80211_IFTYPE_MESH_POINT:
|
||||
/* backward compat code ... */
|
||||
if (wdev->mesh_id_up_len)
|
||||
__cfg80211_join_mesh(rdev, dev, wdev->ssid,
|
||||
wdev->mesh_id_up_len,
|
||||
&default_mesh_config);
|
||||
break;
|
||||
{
|
||||
/* backward compat code... */
|
||||
struct mesh_setup setup;
|
||||
memcpy(&setup, &default_mesh_setup,
|
||||
sizeof(setup));
|
||||
/* back compat only needed for mesh_id */
|
||||
setup.mesh_id = wdev->ssid;
|
||||
setup.mesh_id_len = wdev->mesh_id_up_len;
|
||||
if (wdev->mesh_id_up_len)
|
||||
__cfg80211_join_mesh(rdev, dev,
|
||||
&setup,
|
||||
&default_mesh_config);
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue