Skip to content

Commit 8365da2

Browse files
committed
Merge tag 'mac80211-next-for-davem-2018-06-29' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next
Small merge conflict in net/mac80211/scan.c, I preserved the kcalloc() conversion. -DaveM Johannes Berg says: ==================== This round's updates: * finally some of the promised HE code, but it turns out to be small - but everything kept changing, so one part I did in the driver was >30 patches for what was ultimately <200 lines of code ... similar here for this code. * improved scan privacy support - can now specify scan flags for randomizing the sequence number as well as reducing the probe request element content * rfkill cleanups * a timekeeping cleanup from Arnd * various other cleanups ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents a1be5a2 + a421775 commit 8365da2

File tree

38 files changed

+1939
-249
lines changed

38 files changed

+1939
-249
lines changed

Documentation/ABI/stable/sysfs-class-rfkill

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ KernelVersion: v2.6.22
1111
Contact: linux-wireless@vger.kernel.org,
1212
Description: The rfkill class subsystem folder.
1313
Each registered rfkill driver is represented by an rfkillX
14-
subfolder (X being an integer > 0).
14+
subfolder (X being an integer >= 0).
1515

1616

1717
What: /sys/class/rfkill/rfkill[0-9]+/name
@@ -48,8 +48,8 @@ Contact: linux-wireless@vger.kernel.org
4848
Description: Current state of the transmitter.
4949
This file was scheduled to be removed in 2014, but due to its
5050
large number of users it will be sticking around for a bit
51-
longer. Despite it being marked as stabe, the newer "hard" and
52-
"soft" interfaces should be preffered, since it is not possible
51+
longer. Despite it being marked as stable, the newer "hard" and
52+
"soft" interfaces should be preferred, since it is not possible
5353
to express the 'soft and hard block' state of the rfkill driver
5454
through this interface. There will likely be another attempt to
5555
remove it in the future.

Documentation/rfkill.txt

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ rfkill - RF kill switch support
99
Introduction
1010
============
1111

12-
The rfkill subsystem provides a generic interface to disabling any radio
12+
The rfkill subsystem provides a generic interface for disabling any radio
1313
transmitter in the system. When a transmitter is blocked, it shall not
1414
radiate any power.
1515

@@ -45,7 +45,7 @@ The rfkill subsystem is composed of three main components:
4545
* the rfkill drivers.
4646

4747
The rfkill core provides API for kernel drivers to register their radio
48-
transmitter with the kernel, methods for turning it on and off and, letting
48+
transmitter with the kernel, methods for turning it on and off, and letting
4949
the system know about hardware-disabled states that may be implemented on
5050
the device.
5151

@@ -54,7 +54,7 @@ ways for userspace to query the current states. See the "Userspace support"
5454
section below.
5555

5656
When the device is hard-blocked (either by a call to rfkill_set_hw_state()
57-
or from query_hw_block) set_block() will be invoked for additional software
57+
or from query_hw_block), set_block() will be invoked for additional software
5858
block, but drivers can ignore the method call since they can use the return
5959
value of the function rfkill_set_hw_state() to sync the software state
6060
instead of keeping track of calls to set_block(). In fact, drivers should
@@ -65,7 +65,6 @@ keeps track of soft and hard block separately.
6565
Kernel API
6666
==========
6767

68-
6968
Drivers for radio transmitters normally implement an rfkill driver.
7069

7170
Platform drivers might implement input devices if the rfkill button is just
@@ -75,14 +74,14 @@ a way to turn on/off the transmitter(s).
7574

7675
For some platforms, it is possible that the hardware state changes during
7776
suspend/hibernation, in which case it will be necessary to update the rfkill
78-
core with the current state is at resume time.
77+
core with the current state at resume time.
7978

8079
To create an rfkill driver, driver's Kconfig needs to have::
8180

8281
depends on RFKILL || !RFKILL
8382

8483
to ensure the driver cannot be built-in when rfkill is modular. The !RFKILL
85-
case allows the driver to be built when rfkill is not configured, which
84+
case allows the driver to be built when rfkill is not configured, in which
8685
case all rfkill API can still be used but will be provided by static inlines
8786
which compile to almost nothing.
8887

@@ -91,7 +90,7 @@ rfkill drivers that control devices that can be hard-blocked unless they also
9190
assign the poll_hw_block() callback (then the rfkill core will poll the
9291
device). Don't do this unless you cannot get the event in any other way.
9392

94-
RFKill provides per-switch LED triggers, which can be used to drive LEDs
93+
rfkill provides per-switch LED triggers, which can be used to drive LEDs
9594
according to the switch state (LED_FULL when blocked, LED_OFF otherwise).
9695

9796

@@ -114,7 +113,7 @@ a specified type) into a state which also updates the default state for
114113
hotplugged devices.
115114

116115
After an application opens /dev/rfkill, it can read the current state of all
117-
devices. Changes can be either obtained by either polling the descriptor for
116+
devices. Changes can be obtained by either polling the descriptor for
118117
hotplug or state change events or by listening for uevents emitted by the
119118
rfkill core framework.
120119

@@ -127,8 +126,7 @@ environment variables set::
127126
RFKILL_STATE
128127
RFKILL_TYPE
129128

130-
The contents of these variables corresponds to the "name", "state" and
129+
The content of these variables corresponds to the "name", "state" and
131130
"type" sysfs files explained above.
132131

133-
134132
For further details consult Documentation/ABI/stable/sysfs-class-rfkill.

MAINTAINERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12156,6 +12156,8 @@ S: Maintained
1215612156
F: Documentation/rfkill.txt
1215712157
F: Documentation/ABI/stable/sysfs-class-rfkill
1215812158
F: net/rfkill/
12159+
F: include/linux/rfkill.h
12160+
F: include/uapi/linux/rfkill.h
1215912161

1216012162
RHASHTABLE
1216112163
M: Thomas Graf <tgraf@suug.ch>

drivers/net/wireless/realtek/rtlwifi/base.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1904,7 +1904,7 @@ void rtl_rx_ampdu_apply(struct rtl_priv *rtlpriv)
19041904
reject_agg, ctrl_agg_size, agg_size);
19051905

19061906
rtlpriv->hw->max_rx_aggregation_subframes =
1907-
(ctrl_agg_size ? agg_size : IEEE80211_MAX_AMPDU_BUF);
1907+
(ctrl_agg_size ? agg_size : IEEE80211_MAX_AMPDU_BUF_HT);
19081908
}
19091909
EXPORT_SYMBOL(rtl_rx_ampdu_apply);
19101910

drivers/staging/rtl8188eu/include/wifi.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,6 @@ enum ht_cap_ampdu_factor {
575575
* According to IEEE802.11n spec size varies from 8K to 64K (in powers of 2)
576576
*/
577577
#define IEEE80211_MIN_AMPDU_BUF 0x8
578-
#define IEEE80211_MAX_AMPDU_BUF 0x40
579578

580579

581580
#define OP_MODE_PURE 0

drivers/staging/rtl8712/wifi.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,6 @@ struct ieee80211_ht_addt_info {
574574
* According to IEEE802.11n spec size varies from 8K to 64K (in powers of 2)
575575
*/
576576
#define IEEE80211_MIN_AMPDU_BUF 0x8
577-
#define IEEE80211_MAX_AMPDU_BUF 0x40
578577

579578

580579
/* Spatial Multiplexing Power Save Modes */

drivers/staging/rtl8723bs/include/wifi.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,6 @@ enum HT_CAP_AMPDU_FACTOR {
799799
* According to IEEE802.11n spec size varies from 8K to 64K (in powers of 2)
800800
*/
801801
#define IEEE80211_MIN_AMPDU_BUF 0x8
802-
#define IEEE80211_MAX_AMPDU_BUF 0x40
803802

804803

805804
/* Spatial Multiplexing Power Save Modes */

drivers/staging/rtlwifi/base.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1838,7 +1838,7 @@ void rtl_rx_ampdu_apply(struct rtl_priv *rtlpriv)
18381838
reject_agg, ctrl_agg_size, agg_size);
18391839

18401840
rtlpriv->hw->max_rx_aggregation_subframes =
1841-
(ctrl_agg_size ? agg_size : IEEE80211_MAX_AMPDU_BUF);
1841+
(ctrl_agg_size ? agg_size : IEEE80211_MAX_AMPDU_BUF_HT);
18421842
}
18431843

18441844
/*********************************************************

0 commit comments

Comments
 (0)