Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openwrt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Freifunk Luebeck
openwrt
Commits
a1c5adc1
Commit
a1c5adc1
authored
12 years ago
by
Felix Fietkau
Browse files
Options
Downloads
Patches
Plain Diff
ath5k: add a spur mitigation fix
SVN-Revision: 33572
parent
e3bcbeb4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
package/mac80211/patches/300-pending_work.patch
+25
-9
25 additions, 9 deletions
package/mac80211/patches/300-pending_work.patch
with
25 additions
and
9 deletions
package/mac80211/patches/300-pending_work.patch
+
25
−
9
View file @
a1c5adc1
...
@@ -180,7 +180,7 @@
...
@@ -180,7 +180,7 @@
static void ieee80211_iface_work(struct work_struct *work)
static void ieee80211_iface_work(struct work_struct *work)
{
{
struct ieee80211_sub_if_data *sdata =
struct ieee80211_sub_if_data *sdata =
@@ -1101,6 +1144,9 @@
static void ieee80211_iface_work(struct
@@ -1101,6 +1144,9 @@
static void ieee80211_iface_work(struct
break;
break;
ieee80211_mesh_rx_queued_mgmt(sdata, skb);
ieee80211_mesh_rx_queued_mgmt(sdata, skb);
break;
break;
...
@@ -281,13 +281,6 @@
...
@@ -281,13 +281,6 @@
+ list_for_each_entry_rcu(sdata, &local->interfaces, list) {
+ list_for_each_entry_rcu(sdata, &local->interfaces, list) {
+ if (!sdata->dev)
+ if (!sdata->dev)
+ continue;
+ continue;
+
+ if (skb->dev != sdata->dev)
+ continue;
+
+ found = true;
+ break;
+ }
- p2p_sdata = rcu_dereference(local->p2p_sdata);
- p2p_sdata = rcu_dereference(local->p2p_sdata);
- if (p2p_sdata) {
- if (p2p_sdata) {
...
@@ -296,11 +289,18 @@
...
@@ -296,11 +289,18 @@
- skb->len, acked, GFP_ATOMIC);
- skb->len, acked, GFP_ATOMIC);
- }
- }
- rcu_read_unlock();
- rcu_read_unlock();
+ if (skb->dev != sdata->dev)
+ continue;
+
+ found = true;
+ break;
}
+
+ if (!skb->dev) {
+ if (!skb->dev) {
+ sdata = rcu_dereference(local->p2p_sdata);
+ sdata = rcu_dereference(local->p2p_sdata);
+ if (sdata)
+ if (sdata)
+ found = true;
+ found = true;
}
+
}
+
+
+ if (!found)
+ if (!found)
+ skb->dev = NULL;
+ skb->dev = NULL;
...
@@ -406,3 +406,19 @@
...
@@ -406,3 +406,19 @@
ret = sta_info_hash_del(local, sta);
ret = sta_info_hash_del(local, sta);
if (ret)
if (ret)
--- a/drivers/net/wireless/ath/ath5k/phy.c
+++ b/drivers/net/wireless/ath/ath5k/phy.c
@@ -1977,11 +1977,13 @@
ath5k_hw_set_spur_mitigation_filter(stru
spur_delta_phase = (spur_offset << 18) / 25;
spur_freq_sigma_delta = (spur_delta_phase >> 10);
symbol_width = AR5K_SPUR_SYMBOL_WIDTH_BASE_100Hz / 2;
+ break;
case AR5K_BWMODE_5MHZ:
/* Both sample_freq and chip_freq are 10MHz (?) */
spur_delta_phase = (spur_offset << 19) / 25;
spur_freq_sigma_delta = (spur_delta_phase >> 10);
symbol_width = AR5K_SPUR_SYMBOL_WIDTH_BASE_100Hz / 4;
+ break;
default:
if (channel->band == IEEE80211_BAND_5GHZ) {
/* Both sample_freq and chip_freq are 40MHz */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment