diff options
Diffstat (limited to 'net/mac80211/ieee80211_sta.c')
-rw-r--r-- | net/mac80211/ieee80211_sta.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/net/mac80211/ieee80211_sta.c b/net/mac80211/ieee80211_sta.c index 152682d4bb1a..927ffbfe8582 100644 --- a/net/mac80211/ieee80211_sta.c +++ b/net/mac80211/ieee80211_sta.c | |||
@@ -2150,11 +2150,14 @@ ieee80211_rx_mesh_bss_get(struct net_device *dev, u8 *mesh_id, int mesh_id_len, | |||
2150 | 2150 | ||
2151 | static struct ieee80211_sta_bss * | 2151 | static struct ieee80211_sta_bss * |
2152 | ieee80211_rx_mesh_bss_add(struct net_device *dev, u8 *mesh_id, int mesh_id_len, | 2152 | ieee80211_rx_mesh_bss_add(struct net_device *dev, u8 *mesh_id, int mesh_id_len, |
2153 | u8 *mesh_cfg, int freq) | 2153 | u8 *mesh_cfg, int mesh_config_len, int freq) |
2154 | { | 2154 | { |
2155 | struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); | 2155 | struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); |
2156 | struct ieee80211_sta_bss *bss; | 2156 | struct ieee80211_sta_bss *bss; |
2157 | 2157 | ||
2158 | if (mesh_config_len != MESH_CFG_LEN) | ||
2159 | return NULL; | ||
2160 | |||
2158 | bss = kzalloc(sizeof(*bss), GFP_ATOMIC); | 2161 | bss = kzalloc(sizeof(*bss), GFP_ATOMIC); |
2159 | if (!bss) | 2162 | if (!bss) |
2160 | return NULL; | 2163 | return NULL; |
@@ -2528,7 +2531,8 @@ static void ieee80211_rx_bss_info(struct net_device *dev, | |||
2528 | #ifdef CONFIG_MAC80211_MESH | 2531 | #ifdef CONFIG_MAC80211_MESH |
2529 | if (elems.mesh_config) | 2532 | if (elems.mesh_config) |
2530 | bss = ieee80211_rx_mesh_bss_add(dev, elems.mesh_id, | 2533 | bss = ieee80211_rx_mesh_bss_add(dev, elems.mesh_id, |
2531 | elems.mesh_id_len, elems.mesh_config, freq); | 2534 | elems.mesh_id_len, elems.mesh_config, |
2535 | elems.mesh_config_len, freq); | ||
2532 | else | 2536 | else |
2533 | #endif | 2537 | #endif |
2534 | bss = ieee80211_rx_bss_add(dev, mgmt->bssid, freq, | 2538 | bss = ieee80211_rx_bss_add(dev, mgmt->bssid, freq, |