Skip to content

Commit 880b583

Browse files
committed
Merge tag 'mac80211-for-davem-2016-10-27' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211
Johannes Berg says: ==================== Just two fixes: * a fix to process all events while suspending, so any potential calls into the driver are done before it is suspended * small markup fixes for the sphinx documentation conversion that's coming into the tree via the doc tree ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 8d7533e + b4f7f4a commit 880b583

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

include/net/mac80211.h

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -811,14 +811,18 @@ enum mac80211_rate_control_flags {
811811
* in the control information, and it will be filled by the rate
812812
* control algorithm according to what should be sent. For example,
813813
* if this array contains, in the format { <idx>, <count> } the
814-
* information
814+
* information::
815+
*
815816
* { 3, 2 }, { 2, 2 }, { 1, 4 }, { -1, 0 }, { -1, 0 }
817+
*
816818
* then this means that the frame should be transmitted
817819
* up to twice at rate 3, up to twice at rate 2, and up to four
818820
* times at rate 1 if it doesn't get acknowledged. Say it gets
819821
* acknowledged by the peer after the fifth attempt, the status
820-
* information should then contain
822+
* information should then contain::
823+
*
821824
* { 3, 2 }, { 2, 2 }, { 1, 1 }, { -1, 0 } ...
825+
*
822826
* since it was transmitted twice at rate 3, twice at rate 2
823827
* and once at rate 1 after which we received an acknowledgement.
824828
*/
@@ -1168,8 +1172,8 @@ enum mac80211_rx_vht_flags {
11681172
* @rate_idx: index of data rate into band's supported rates or MCS index if
11691173
* HT or VHT is used (%RX_FLAG_HT/%RX_FLAG_VHT)
11701174
* @vht_nss: number of streams (VHT only)
1171-
* @flag: %RX_FLAG_*
1172-
* @vht_flag: %RX_VHT_FLAG_*
1175+
* @flag: %RX_FLAG_\*
1176+
* @vht_flag: %RX_VHT_FLAG_\*
11731177
* @rx_flags: internal RX flags for mac80211
11741178
* @ampdu_reference: A-MPDU reference number, must be a different value for
11751179
* each A-MPDU but the same for each subframe within one A-MPDU
@@ -1432,7 +1436,7 @@ enum ieee80211_vif_flags {
14321436
* @probe_req_reg: probe requests should be reported to mac80211 for this
14331437
* interface.
14341438
* @drv_priv: data area for driver use, will always be aligned to
1435-
* sizeof(void *).
1439+
* sizeof(void \*).
14361440
* @txq: the multicast data TX queue (if driver uses the TXQ abstraction)
14371441
*/
14381442
struct ieee80211_vif {
@@ -1743,7 +1747,7 @@ struct ieee80211_sta_rates {
17431747
* @wme: indicates whether the STA supports QoS/WME (if local devices does,
17441748
* otherwise always false)
17451749
* @drv_priv: data area for driver use, will always be aligned to
1746-
* sizeof(void *), size is determined in hw information.
1750+
* sizeof(void \*), size is determined in hw information.
17471751
* @uapsd_queues: bitmap of queues configured for uapsd. Only valid
17481752
* if wme is supported.
17491753
* @max_sp: max Service Period. Only valid if wme is supported.
@@ -2146,12 +2150,12 @@ enum ieee80211_hw_flags {
21462150
*
21472151
* @radiotap_mcs_details: lists which MCS information can the HW
21482152
* reports, by default it is set to _MCS, _GI and _BW but doesn't
2149-
* include _FMT. Use %IEEE80211_RADIOTAP_MCS_HAVE_* values, only
2153+
* include _FMT. Use %IEEE80211_RADIOTAP_MCS_HAVE_\* values, only
21502154
* adding _BW is supported today.
21512155
*
21522156
* @radiotap_vht_details: lists which VHT MCS information the HW reports,
21532157
* the default is _GI | _BANDWIDTH.
2154-
* Use the %IEEE80211_RADIOTAP_VHT_KNOWN_* values.
2158+
* Use the %IEEE80211_RADIOTAP_VHT_KNOWN_\* values.
21552159
*
21562160
* @radiotap_timestamp: Information for the radiotap timestamp field; if the
21572161
* 'units_pos' member is set to a non-negative value it must be set to
@@ -2486,6 +2490,7 @@ void ieee80211_free_txskb(struct ieee80211_hw *hw, struct sk_buff *skb);
24862490
* in the software stack cares about, we will, in the future, have mac80211
24872491
* tell the driver which information elements are interesting in the sense
24882492
* that we want to see changes in them. This will include
2493+
*
24892494
* - a list of information element IDs
24902495
* - a list of OUIs for the vendor information element
24912496
*

net/wireless/sysfs.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,16 @@ static int wiphy_suspend(struct device *dev)
104104

105105
rtnl_lock();
106106
if (rdev->wiphy.registered) {
107-
if (!rdev->wiphy.wowlan_config)
107+
if (!rdev->wiphy.wowlan_config) {
108108
cfg80211_leave_all(rdev);
109+
cfg80211_process_rdev_events(rdev);
110+
}
109111
if (rdev->ops->suspend)
110112
ret = rdev_suspend(rdev, rdev->wiphy.wowlan_config);
111113
if (ret == 1) {
112114
/* Driver refuse to configure wowlan */
113115
cfg80211_leave_all(rdev);
116+
cfg80211_process_rdev_events(rdev);
114117
ret = rdev_suspend(rdev, NULL);
115118
}
116119
}

0 commit comments

Comments
 (0)