diff options
Diffstat (limited to 'net/mac80211/mesh.c')
-rw-r--r-- | net/mac80211/mesh.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index 19205c821dee..4869280a6413 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c | |||
@@ -255,7 +255,8 @@ int mesh_add_meshconf_ie(struct ieee80211_sub_if_data *sdata, | |||
255 | u8 *pos, neighbors; | 255 | u8 *pos, neighbors; |
256 | u8 meshconf_len = sizeof(struct ieee80211_meshconf_ie); | 256 | u8 meshconf_len = sizeof(struct ieee80211_meshconf_ie); |
257 | bool is_connected_to_gate = ifmsh->num_gates > 0 || | 257 | bool is_connected_to_gate = ifmsh->num_gates > 0 || |
258 | ifmsh->mshcfg.dot11MeshGateAnnouncementProtocol; | 258 | ifmsh->mshcfg.dot11MeshGateAnnouncementProtocol || |
259 | ifmsh->mshcfg.dot11MeshConnectedToMeshGate; | ||
259 | 260 | ||
260 | if (skb_tailroom(skb) < 2 + meshconf_len) | 261 | if (skb_tailroom(skb) < 2 + meshconf_len) |
261 | return -ENOMEM; | 262 | return -ENOMEM; |