mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-17 17:53:56 +08:00
mac80211: document return codes from ops callbacks
For any callbacks in ieee80211_ops, specify what values the return codes represent. While at it, fix a couple of capitalization and punctuation differences. Signed-off-by: Bob Copeland <me@bobcopeland.com> Reviewed-by: Kalle Valo <kalle.valo@iki.fi> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
e724b8fef6
commit
6dd1bf3118
@ -1217,6 +1217,8 @@ enum ieee80211_ampdu_mlme_action {
|
|||||||
* configuration in the TX control data. This handler should,
|
* configuration in the TX control data. This handler should,
|
||||||
* preferably, never fail and stop queues appropriately, more
|
* preferably, never fail and stop queues appropriately, more
|
||||||
* importantly, however, it must never fail for A-MPDU-queues.
|
* importantly, however, it must never fail for A-MPDU-queues.
|
||||||
|
* This function should return NETDEV_TX_OK except in very
|
||||||
|
* limited cases.
|
||||||
* Must be implemented and atomic.
|
* Must be implemented and atomic.
|
||||||
*
|
*
|
||||||
* @start: Called before the first netdevice attached to the hardware
|
* @start: Called before the first netdevice attached to the hardware
|
||||||
@ -1257,9 +1259,12 @@ enum ieee80211_ampdu_mlme_action {
|
|||||||
*
|
*
|
||||||
* @config: Handler for configuration requests. IEEE 802.11 code calls this
|
* @config: Handler for configuration requests. IEEE 802.11 code calls this
|
||||||
* function to change hardware configuration, e.g., channel.
|
* function to change hardware configuration, e.g., channel.
|
||||||
|
* This function should never fail but returns a negative error code
|
||||||
|
* if it does.
|
||||||
*
|
*
|
||||||
* @config_interface: Handler for configuration requests related to interfaces
|
* @config_interface: Handler for configuration requests related to interfaces
|
||||||
* (e.g. BSSID changes.)
|
* (e.g. BSSID changes.)
|
||||||
|
* Returns a negative error code which will be seen in userspace.
|
||||||
*
|
*
|
||||||
* @bss_info_changed: Handler for configuration requests related to BSS
|
* @bss_info_changed: Handler for configuration requests related to BSS
|
||||||
* parameters that may vary during BSS's lifespan, and may affect low
|
* parameters that may vary during BSS's lifespan, and may affect low
|
||||||
@ -1279,6 +1284,7 @@ enum ieee80211_ampdu_mlme_action {
|
|||||||
* This callback can sleep, and is only called between add_interface
|
* This callback can sleep, and is only called between add_interface
|
||||||
* and remove_interface calls, i.e. while the given virtual interface
|
* and remove_interface calls, i.e. while the given virtual interface
|
||||||
* is enabled.
|
* is enabled.
|
||||||
|
* Returns a negative error code if the key can't be added.
|
||||||
*
|
*
|
||||||
* @update_tkip_key: See the section "Hardware crypto acceleration"
|
* @update_tkip_key: See the section "Hardware crypto acceleration"
|
||||||
* This callback will be called in the context of Rx. Called for drivers
|
* This callback will be called in the context of Rx. Called for drivers
|
||||||
@ -1290,8 +1296,10 @@ enum ieee80211_ampdu_mlme_action {
|
|||||||
* bands. When the scan finishes, ieee80211_scan_completed() must be
|
* bands. When the scan finishes, ieee80211_scan_completed() must be
|
||||||
* called; note that it also must be called when the scan cannot finish
|
* called; note that it also must be called when the scan cannot finish
|
||||||
* because the hardware is turned off! Anything else is a bug!
|
* because the hardware is turned off! Anything else is a bug!
|
||||||
|
* Returns a negative error code which will be seen in userspace.
|
||||||
*
|
*
|
||||||
* @get_stats: return low-level statistics
|
* @get_stats: Return low-level statistics.
|
||||||
|
* Returns zero if statistics are available.
|
||||||
*
|
*
|
||||||
* @get_tkip_seq: If your device implements TKIP encryption in hardware this
|
* @get_tkip_seq: If your device implements TKIP encryption in hardware this
|
||||||
* callback should be provided to read the TKIP transmit IVs (both IV32
|
* callback should be provided to read the TKIP transmit IVs (both IV32
|
||||||
@ -1305,6 +1313,7 @@ enum ieee80211_ampdu_mlme_action {
|
|||||||
*
|
*
|
||||||
* @conf_tx: Configure TX queue parameters (EDCF (aifs, cw_min, cw_max),
|
* @conf_tx: Configure TX queue parameters (EDCF (aifs, cw_min, cw_max),
|
||||||
* bursting) for a hardware TX queue.
|
* bursting) for a hardware TX queue.
|
||||||
|
* Returns a negative error code on failure.
|
||||||
*
|
*
|
||||||
* @get_tx_stats: Get statistics of the current TX queue status. This is used
|
* @get_tx_stats: Get statistics of the current TX queue status. This is used
|
||||||
* to get number of currently queued packets (queue length), maximum queue
|
* to get number of currently queued packets (queue length), maximum queue
|
||||||
@ -1324,13 +1333,15 @@ enum ieee80211_ampdu_mlme_action {
|
|||||||
* @tx_last_beacon: Determine whether the last IBSS beacon was sent by us.
|
* @tx_last_beacon: Determine whether the last IBSS beacon was sent by us.
|
||||||
* This is needed only for IBSS mode and the result of this function is
|
* This is needed only for IBSS mode and the result of this function is
|
||||||
* used to determine whether to reply to Probe Requests.
|
* used to determine whether to reply to Probe Requests.
|
||||||
|
* Returns non-zero if this device sent the last beacon.
|
||||||
*
|
*
|
||||||
* @ampdu_action: Perform a certain A-MPDU action
|
* @ampdu_action: Perform a certain A-MPDU action
|
||||||
* The RA/TID combination determines the destination and TID we want
|
* The RA/TID combination determines the destination and TID we want
|
||||||
* the ampdu action to be performed for. The action is defined through
|
* the ampdu action to be performed for. The action is defined through
|
||||||
* ieee80211_ampdu_mlme_action. Starting sequence number (@ssn)
|
* ieee80211_ampdu_mlme_action. Starting sequence number (@ssn)
|
||||||
* is the first frame we expect to perform the action on. notice
|
* is the first frame we expect to perform the action on. Notice
|
||||||
* that TX/RX_STOP can pass NULL for this parameter.
|
* that TX/RX_STOP can pass NULL for this parameter.
|
||||||
|
* Returns a negative error code on failure.
|
||||||
*/
|
*/
|
||||||
struct ieee80211_ops {
|
struct ieee80211_ops {
|
||||||
int (*tx)(struct ieee80211_hw *hw, struct sk_buff *skb);
|
int (*tx)(struct ieee80211_hw *hw, struct sk_buff *skb);
|
||||||
|
Loading…
Reference in New Issue
Block a user