Skip to content

Commit d69242b

Browse files
committed
Merge tag 'mac80211-for-davem-2018-03-02' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211
Johannes Berg says: ==================== Three more patches: * fix for a regression in 4-addr mode with fast-RX * fix for a Kconfig problem with the new regdb * fix for the long-standing TCP performance issue in wifi using the new sk_pacing_shift_update() ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents 84eef2b + a788723 commit d69242b

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

net/mac80211/rx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3921,7 +3921,7 @@ static bool ieee80211_invoke_fast_rx(struct ieee80211_rx_data *rx,
39213921
if ((hdr->frame_control & cpu_to_le16(IEEE80211_FCTL_FROMDS |
39223922
IEEE80211_FCTL_TODS)) !=
39233923
fast_rx->expected_ds_bits)
3924-
goto drop;
3924+
return false;
39253925

39263926
/* assign the key to drop unencrypted frames (later)
39273927
* and strip the IV/MIC if necessary

net/mac80211/tx.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3574,6 +3574,14 @@ void __ieee80211_subif_start_xmit(struct sk_buff *skb,
35743574
if (!IS_ERR_OR_NULL(sta)) {
35753575
struct ieee80211_fast_tx *fast_tx;
35763576

3577+
/* We need a bit of data queued to build aggregates properly, so
3578+
* instruct the TCP stack to allow more than a single ms of data
3579+
* to be queued in the stack. The value is a bit-shift of 1
3580+
* second, so 8 is ~4ms of queued data. Only affects local TCP
3581+
* sockets.
3582+
*/
3583+
sk_pacing_shift_update(skb->sk, 8);
3584+
35773585
fast_tx = rcu_dereference(sta->fast_tx);
35783586

35793587
if (fast_tx &&

net/wireless/Kconfig

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ config CFG80211
3434

3535
When built as a module it will be called cfg80211.
3636

37+
if CFG80211
38+
3739
config NL80211_TESTMODE
3840
bool "nl80211 testmode command"
39-
depends on CFG80211
4041
help
4142
The nl80211 testmode command helps implementing things like
4243
factory calibration or validation tools for wireless chips.
@@ -51,7 +52,6 @@ config NL80211_TESTMODE
5152

5253
config CFG80211_DEVELOPER_WARNINGS
5354
bool "enable developer warnings"
54-
depends on CFG80211
5555
default n
5656
help
5757
This option enables some additional warnings that help
@@ -68,7 +68,7 @@ config CFG80211_DEVELOPER_WARNINGS
6868

6969
config CFG80211_CERTIFICATION_ONUS
7070
bool "cfg80211 certification onus"
71-
depends on CFG80211 && EXPERT
71+
depends on EXPERT
7272
default n
7373
---help---
7474
You should disable this option unless you are both capable
@@ -159,7 +159,6 @@ config CFG80211_REG_RELAX_NO_IR
159159

160160
config CFG80211_DEFAULT_PS
161161
bool "enable powersave by default"
162-
depends on CFG80211
163162
default y
164163
help
165164
This option enables powersave mode by default.
@@ -170,7 +169,6 @@ config CFG80211_DEFAULT_PS
170169

171170
config CFG80211_DEBUGFS
172171
bool "cfg80211 DebugFS entries"
173-
depends on CFG80211
174172
depends on DEBUG_FS
175173
---help---
176174
You can enable this if you want debugfs entries for cfg80211.
@@ -180,7 +178,6 @@ config CFG80211_DEBUGFS
180178
config CFG80211_CRDA_SUPPORT
181179
bool "support CRDA" if EXPERT
182180
default y
183-
depends on CFG80211
184181
help
185182
You should enable this option unless you know for sure you have no
186183
need for it, for example when using internal regdb (above) or the
@@ -190,7 +187,6 @@ config CFG80211_CRDA_SUPPORT
190187

191188
config CFG80211_WEXT
192189
bool "cfg80211 wireless extensions compatibility" if !CFG80211_WEXT_EXPORT
193-
depends on CFG80211
194190
select WEXT_CORE
195191
default y if CFG80211_WEXT_EXPORT
196192
help
@@ -199,11 +195,12 @@ config CFG80211_WEXT
199195

200196
config CFG80211_WEXT_EXPORT
201197
bool
202-
depends on CFG80211
203198
help
204199
Drivers should select this option if they require cfg80211's
205200
wext compatibility symbols to be exported.
206201

202+
endif # CFG80211
203+
207204
config LIB80211
208205
tristate
209206
default n

0 commit comments

Comments
 (0)