-
Notifications
You must be signed in to change notification settings - Fork 92
[Deepin-Kernel-SIG] [Upstream] [linux 6.6-y] Sync some mac80211 bugfix from mainline v6.7 #614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
opsiff
merged 11 commits into
deepin-community:linux-6.6.y
from
opsiff:linux-6.6.y-2025-02-21-80211-6.7
Feb 21, 2025
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
9bd5049
wifi: mac80211: remove RX_DROP_UNUSABLE
jmberg-intel 138ca1c
wifi: mac80211: split ieee80211_drop_unencrypted_mgmt() return value
jmberg-intel 083e458
wifi: mac80211: cleanup auth_data only if association continues
benzea 10a7aa2
wifi: mac80211: handle debugfs when switching to/from MLO
Miriam-Rachel 60a846d
wifi: cfg80211: Include operating class 137 in 6GHz band
ilanpeer2 d19216e
wifi: mac80211: mesh: fix some kdoc warnings
benzea 96adb18
wifi: mac80211: fix a expired vs. cancel race in roc
egrumbach ba0f305
wifi: mac80211: purge TX queues in flush_queues flow
Miriam-Rachel 63ba6e4
wifi: mac80211: drop robust action frames before assoc
jmberg-intel 3d14dab
wifi: mac80211: do not re-add debugfs entries during resume
benzea 62c6a6d
wifi: mac80211: add/remove driver debugfs entries as appropriate
benzea File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
/* | ||
* Copyright (c) 2008, 2009 open80211s Ltd. | ||
* Copyright (C) 2023 Intel Corporation | ||
* Author: Luis Carlos Cobo <[email protected]> | ||
*/ | ||
|
||
|
@@ -173,6 +174,11 @@ static void prepare_for_gate(struct sk_buff *skb, char *dst_addr, | |
/** | ||
* mesh_path_move_to_queue - Move or copy frames from one mpath queue to another | ||
* | ||
* @gate_mpath: An active mpath the frames will be sent to (i.e. the gate) | ||
* @from_mpath: The failed mpath | ||
* @copy: When true, copy all the frames to the new mpath queue. When false, | ||
* move them. | ||
* | ||
* This function is used to transfer or copy frames from an unresolved mpath to | ||
* a gate mpath. The function also adds the Address Extension field and | ||
* updates the next hop. | ||
|
@@ -181,11 +187,6 @@ static void prepare_for_gate(struct sk_buff *skb, char *dst_addr, | |
* destination addresses are updated. | ||
* | ||
* The gate mpath must be an active mpath with a valid mpath->next_hop. | ||
* | ||
* @gate_mpath: An active mpath the frames will be sent to (i.e. the gate) | ||
* @from_mpath: The failed mpath | ||
* @copy: When true, copy all the frames to the new mpath queue. When false, | ||
* move them. | ||
*/ | ||
static void mesh_path_move_to_queue(struct mesh_path *gate_mpath, | ||
struct mesh_path *from_mpath, | ||
|
@@ -330,6 +331,8 @@ mpp_path_lookup_by_idx(struct ieee80211_sub_if_data *sdata, int idx) | |
/** | ||
* mesh_path_add_gate - add the given mpath to a mesh gate to our path table | ||
* @mpath: gate path to add to table | ||
* | ||
* Returns: 0 on success, -EEXIST | ||
*/ | ||
int mesh_path_add_gate(struct mesh_path *mpath) | ||
{ | ||
|
@@ -388,6 +391,8 @@ static void mesh_gate_del(struct mesh_table *tbl, struct mesh_path *mpath) | |
/** | ||
* mesh_gate_num - number of gates known to this interface | ||
* @sdata: subif data | ||
* | ||
* Returns: The number of gates | ||
*/ | ||
int mesh_gate_num(struct ieee80211_sub_if_data *sdata) | ||
{ | ||
|
@@ -870,10 +875,9 @@ static void table_flush_by_iface(struct mesh_table *tbl) | |
/** | ||
* mesh_path_flush_by_iface - Deletes all mesh paths associated with a given iface | ||
* | ||
* This function deletes both mesh paths as well as mesh portal paths. | ||
* | ||
* @sdata: interface data to match | ||
* | ||
* This function deletes both mesh paths as well as mesh portal paths. | ||
*/ | ||
void mesh_path_flush_by_iface(struct ieee80211_sub_if_data *sdata) | ||
{ | ||
|
@@ -953,6 +957,8 @@ void mesh_path_tx_pending(struct mesh_path *mpath) | |
* queue to that gate's queue. If there are more than one gates, the frames | ||
* are copied from each gate to the next. After frames are copied, the | ||
* mpath queues are emptied onto the transmission queue. | ||
* | ||
* Returns: 0 on success, -EHOSTUNREACH | ||
*/ | ||
int mesh_path_send_to_gates(struct mesh_path *mpath) | ||
{ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue (complexity): Consider using early returns/guard clauses to reduce nesting and improve readability in functions like
ieee80211_debugfs_recreate_netdev
andieee80211_link_debugfs_add
.--- After ---
Similarly, in
ieee80211_link_debugfs_add
, instead of combining multiple WARN_ON checks in one compound condition, separate them:--- Before ---
--- After ---
These small changes improve readability by reducing nested branches while keeping the functionality intact.