• Jouni Malinen's avatar
    mac80211: Fix mesh estab_plinks counting in STA removal case · 126e7557
    Jouni Malinen authored
    If a user space program (e.g., wpa_supplicant) deletes a STA entry that
    is currently in NL80211_PLINK_ESTAB state, the number of established
    plinks counter was not decremented and this could result in rejecting
    new plink establishment before really hitting the real maximum plink
    limit. For !user_mpm case, this decrementation is handled by
    mesh_plink_deactive().
    
    Fix this by decrementing estab_plinks on STA deletion
    (mesh_sta_cleanup() gets called from there) so that the counter has a
    correct value and the Beacon frame advertisement in Mesh Configuration
    element shows the proper value for capability to accept additional
    peers.
    
    Cc: stable@vger.kernel.org
    Signed-off-by: default avatarJouni Malinen <j@w1.fi>
    Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
    126e7557
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
aes_ccm.c Loading commit data...
aes_ccm.h Loading commit data...
aes_cmac.c Loading commit data...
aes_cmac.h Loading commit data...
aes_gcm.c Loading commit data...
aes_gcm.h Loading commit data...
aes_gmac.c Loading commit data...
aes_gmac.h Loading commit data...
agg-rx.c Loading commit data...
agg-tx.c Loading commit data...
cfg.c Loading commit data...
chan.c Loading commit data...
debug.h Loading commit data...
debugfs.c Loading commit data...
debugfs.h Loading commit data...
debugfs_key.c Loading commit data...
debugfs_key.h Loading commit data...
debugfs_netdev.c Loading commit data...
debugfs_netdev.h Loading commit data...
debugfs_sta.c Loading commit data...
debugfs_sta.h Loading commit data...
driver-ops.c Loading commit data...
driver-ops.h Loading commit data...
ethtool.c Loading commit data...
ht.c Loading commit data...
ibss.c Loading commit data...
ieee80211_i.h Loading commit data...
iface.c Loading commit data...
key.c Loading commit data...
key.h Loading commit data...
led.c Loading commit data...
led.h Loading commit data...
main.c Loading commit data...
mesh.c Loading commit data...
mesh.h Loading commit data...
mesh_hwmp.c Loading commit data...
mesh_pathtbl.c Loading commit data...
mesh_plink.c Loading commit data...
mesh_ps.c Loading commit data...
mesh_sync.c Loading commit data...
michael.c Loading commit data...
michael.h Loading commit data...
mlme.c Loading commit data...
ocb.c Loading commit data...
offchannel.c Loading commit data...
pm.c Loading commit data...
rate.c Loading commit data...
rate.h Loading commit data...
rc80211_minstrel.c Loading commit data...
rc80211_minstrel.h Loading commit data...
rc80211_minstrel_debugfs.c Loading commit data...
rc80211_minstrel_ht.c Loading commit data...
rc80211_minstrel_ht.h Loading commit data...
rc80211_minstrel_ht_debugfs.c Loading commit data...
rx.c Loading commit data...
scan.c Loading commit data...
spectmgmt.c Loading commit data...
sta_info.c Loading commit data...
sta_info.h Loading commit data...
status.c Loading commit data...
tdls.c Loading commit data...
tkip.c Loading commit data...
tkip.h Loading commit data...
trace.c Loading commit data...
trace.h Loading commit data...
trace_msg.h Loading commit data...
tx.c Loading commit data...
util.c Loading commit data...
vht.c Loading commit data...
wep.c Loading commit data...
wep.h Loading commit data...
wme.c Loading commit data...
wme.h Loading commit data...
wpa.c Loading commit data...
wpa.h Loading commit data...