Skip to content

Commit 1a6da4f

Browse files
committed
Merge tag 'mac80211-for-net-2020-05-25' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211
Johannes Berg says: ==================== A few changes: * fix a debugfs vs. wiphy rename crash * fix an invalid HE spec definition * fix a mesh timer crash ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 15c9738 + 0bbab5f commit 1a6da4f

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

include/linux/ieee80211.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2047,7 +2047,7 @@ ieee80211_he_ppe_size(u8 ppe_thres_hdr, const u8 *phy_cap_info)
20472047
}
20482048

20492049
/* HE Operation defines */
2050-
#define IEEE80211_HE_OPERATION_DFLT_PE_DURATION_MASK 0x00000003
2050+
#define IEEE80211_HE_OPERATION_DFLT_PE_DURATION_MASK 0x00000007
20512051
#define IEEE80211_HE_OPERATION_TWT_REQUIRED 0x00000008
20522052
#define IEEE80211_HE_OPERATION_RTS_THRESHOLD_MASK 0x00003ff0
20532053
#define IEEE80211_HE_OPERATION_RTS_THRESHOLD_OFFSET 4

net/mac80211/mesh_hwmp.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,14 @@ void mesh_path_start_discovery(struct ieee80211_sub_if_data *sdata)
11031103
mesh_path_sel_frame_tx(MPATH_PREQ, 0, sdata->vif.addr, ifmsh->sn,
11041104
target_flags, mpath->dst, mpath->sn, da, 0,
11051105
ttl, lifetime, 0, ifmsh->preq_id++, sdata);
1106+
1107+
spin_lock_bh(&mpath->state_lock);
1108+
if (mpath->flags & MESH_PATH_DELETED) {
1109+
spin_unlock_bh(&mpath->state_lock);
1110+
goto enddiscovery;
1111+
}
11061112
mod_timer(&mpath->timer, jiffies + mpath->discovery_timeout);
1113+
spin_unlock_bh(&mpath->state_lock);
11071114

11081115
enddiscovery:
11091116
rcu_read_unlock();

net/wireless/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ int cfg80211_dev_rename(struct cfg80211_registered_device *rdev,
142142
if (result)
143143
return result;
144144

145-
if (rdev->wiphy.debugfsdir)
145+
if (!IS_ERR_OR_NULL(rdev->wiphy.debugfsdir))
146146
debugfs_rename(rdev->wiphy.debugfsdir->d_parent,
147147
rdev->wiphy.debugfsdir,
148148
rdev->wiphy.debugfsdir->d_parent, newname);

0 commit comments

Comments
 (0)