Skip to content

Commit

Permalink
xr819s: rename internal mac80211
Browse files Browse the repository at this point in the history
  • Loading branch information
scpcom committed May 1, 2022
1 parent a855563 commit f03ff00
Show file tree
Hide file tree
Showing 58 changed files with 546 additions and 546 deletions.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion drivers/net/wireless/xr819s/umac/aes_ccm.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <linux/err.h>
#include <crypto/aes.h>

#include <net/mac80211.h>
#include <net/mac80211_xr.h>
#include "key.h"
#include "aes_ccm.h"

Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/xr819s/umac/aes_cmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <linux/err.h>
#include <crypto/aes.h>

#include <net/mac80211.h>
#include <net/mac80211_xr.h>
#include "key.h"
#include "aes_cmac.h"

Expand Down
8 changes: 4 additions & 4 deletions drivers/net/wireless/xr819s/umac/agg-rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include <linux/ieee80211.h>
#include <linux/slab.h>
#include <linux/export.h>
#include <net/mac80211.h>
#include <net/mac80211_xr.h>
#include "ieee80211_i.h"
#include "driver-ops.h"

Expand Down Expand Up @@ -101,7 +101,7 @@ void __mac80211_stop_rx_ba_session(struct sta_info *sta, u16 tid,
mutex_unlock(&sta->ampdu_mlme.mtx);
}

void mac80211_stop_rx_ba_session(struct ieee80211_vif *vif, u16 ba_rx_bitmap,
void xr_mac80211_stop_rx_ba_session(struct ieee80211_vif *vif, u16 ba_rx_bitmap,
const u8 *addr)
{
struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif);
Expand All @@ -119,7 +119,7 @@ void mac80211_stop_rx_ba_session(struct ieee80211_vif *vif, u16 ba_rx_bitmap,
if (ba_rx_bitmap & BIT(i))
set_bit(i, sta->ampdu_mlme.tid_rx_stop_requested);

mac80211_queue_work(&sta->local->hw, &sta->ampdu_mlme.work);
xr_mac80211_queue_work(&sta->local->hw, &sta->ampdu_mlme.work);
rcu_read_unlock();
}

Expand All @@ -146,7 +146,7 @@ static void sta_rx_agg_session_timer_expired(struct timer_list *t)
#endif

set_bit(tid, sta->ampdu_mlme.tid_rx_timer_expired);
mac80211_queue_work(&sta->local->hw, &sta->ampdu_mlme.work);
xr_mac80211_queue_work(&sta->local->hw, &sta->ampdu_mlme.work);
}

static void sta_rx_agg_reorder_timer_expired(struct timer_list *t)
Expand Down
42 changes: 21 additions & 21 deletions drivers/net/wireless/xr819s/umac/agg-tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <linux/ieee80211.h>
#include <linux/slab.h>
#include <linux/export.h>
#include <net/mac80211.h>
#include <net/mac80211_xr.h>
#include "ieee80211_i.h"
#include "driver-ops.h"
#include "wme.h"
Expand All @@ -32,12 +32,12 @@
*
* When TX aggregation is started by some subsystem (usually the rate
* control algorithm would be appropriate) by calling the
* mac80211_start_tx_ba_session() function, the driver will be
* xr_mac80211_start_tx_ba_session() function, the driver will be
* notified via its @ampdu_action function, with the
* %IEEE80211_AMPDU_TX_START action.
*
* In response to that, the driver is later required to call the
* mac80211_start_tx_ba_cb_irqsafe() function, which will really
* xr_mac80211_start_tx_ba_cb_irqsafe() function, which will really
* start the aggregation session after the peer has also responded.
* If the peer responds negatively, the session will be stopped
* again right away. Note that it is possible for the aggregation
Expand All @@ -51,10 +51,10 @@
* @ampdu_action callback.
*
* Similarly, when the aggregation session is stopped by the peer
* or something calling mac80211_stop_tx_ba_session(), the driver's
* or something calling xr_mac80211_stop_tx_ba_session(), the driver's
* @ampdu_action function will be called with the action
* %IEEE80211_AMPDU_TX_STOP. In this case, the call must not fail,
* and the driver must later call mac80211_stop_tx_ba_cb_irqsafe().
* and the driver must later call xr_mac80211_stop_tx_ba_cb_irqsafe().
*/

static void ieee80211_send_addba_request(struct ieee80211_sub_if_data *sdata,
Expand Down Expand Up @@ -105,7 +105,7 @@ static void ieee80211_send_addba_request(struct ieee80211_sub_if_data *sdata,
ieee80211_tx_skb(sdata, skb);
}

void mac80211_send_bar(struct ieee80211_vif *vif, u8 *ra, u16 tid, u16 ssn)
void xr_mac80211_send_bar(struct ieee80211_vif *vif, u8 *ra, u16 tid, u16 ssn)
{
struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif);
struct ieee80211_local *local = sdata->local;
Expand Down Expand Up @@ -264,7 +264,7 @@ static void sta_addba_resp_timer_expired(struct timer_list *t)
printk(KERN_DEBUG "addBA response timer expired on tid %d\n", tid);
#endif

mac80211_stop_tx_ba_session(&sta->sta, tid);
xr_mac80211_stop_tx_ba_session(&sta->sta, tid);
rcu_read_unlock();
}

Expand All @@ -286,24 +286,24 @@ static inline int ieee80211_ac_from_tid(int tid)
* a global "agg_queue_stop" refcount.
*/
static void __acquires(agg_queue)
mac80211_stop_queue_agg(struct ieee80211_sub_if_data *sdata, int tid)
xr_mac80211_stop_queue_agg(struct ieee80211_sub_if_data *sdata, int tid)
{
int queue = sdata->vif.hw_queue[ieee80211_ac_from_tid(tid)];

if (atomic_inc_return(&sdata->local->agg_queue_stop[queue]) == 1)
mac80211_stop_queue_by_reason(
xr_mac80211_stop_queue_by_reason(
&sdata->local->hw, queue,
IEEE80211_QUEUE_STOP_REASON_AGGREGATION);
__acquire(agg_queue);
}

static void __releases(agg_queue)
mac80211_wake_queue_agg(struct ieee80211_sub_if_data *sdata, int tid)
xr_mac80211_wake_queue_agg(struct ieee80211_sub_if_data *sdata, int tid)
{
int queue = sdata->vif.hw_queue[ieee80211_ac_from_tid(tid)];

if (atomic_dec_return(&sdata->local->agg_queue_stop[queue]) == 0)
mac80211_wake_queue_by_reason(
xr_mac80211_wake_queue_by_reason(
&sdata->local->hw, queue,
IEEE80211_QUEUE_STOP_REASON_AGGREGATION);
__release(agg_queue);
Expand All @@ -321,7 +321,7 @@ ieee80211_agg_splice_packets(struct ieee80211_sub_if_data *sdata,
int queue = sdata->vif.hw_queue[ieee80211_ac_from_tid(tid)];
unsigned long flags;

mac80211_stop_queue_agg(sdata, tid);
xr_mac80211_stop_queue_agg(sdata, tid);

if (WARN(!tid_tx, "TID %d gone but expected when splicing aggregates"
" from the pending queue\n", tid))
Expand All @@ -339,7 +339,7 @@ ieee80211_agg_splice_packets(struct ieee80211_sub_if_data *sdata,
static void __releases(agg_queue)
ieee80211_agg_splice_finish(struct ieee80211_sub_if_data *sdata, u16 tid)
{
mac80211_wake_queue_agg(sdata, tid);
xr_mac80211_wake_queue_agg(sdata, tid);
}

void mac80211_tx_ba_session_handle_start(struct sta_info *sta, int tid)
Expand Down Expand Up @@ -407,7 +407,7 @@ void mac80211_tx_ba_session_handle_start(struct sta_info *sta, int tid)
tid_tx->timeout);
}

int mac80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid,
int xr_mac80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid,
u16 timeout)
{
struct sta_info *sta = container_of(pubsta, struct sta_info, sta);
Expand Down Expand Up @@ -496,7 +496,7 @@ int mac80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid,
*/
sta->ampdu_mlme.tid_start_tx[tid] = tid_tx;

mac80211_queue_work(&local->hw, &sta->ampdu_mlme.work);
xr_mac80211_queue_work(&local->hw, &sta->ampdu_mlme.work);

/* this flow continues off the work */
err_unlock_sta:
Expand Down Expand Up @@ -587,7 +587,7 @@ void mac80211_start_tx_ba_cb(struct ieee80211_vif *vif, u8 *ra, u16 tid)
mutex_unlock(&local->sta_mtx);
}

void mac80211_start_tx_ba_cb_irqsafe(struct ieee80211_vif *vif,
void xr_mac80211_start_tx_ba_cb_irqsafe(struct ieee80211_vif *vif,
const u8 *ra, u16 tid)
{
struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif);
Expand All @@ -604,7 +604,7 @@ void mac80211_start_tx_ba_cb_irqsafe(struct ieee80211_vif *vif,

skb->pkt_type = IEEE80211_SDATA_QUEUE_AGG_START;
skb_queue_tail(&sdata->skb_queue, skb);
mac80211_queue_work(&local->hw, &sdata->work);
xr_mac80211_queue_work(&local->hw, &sdata->work);
}

int __mac80211_stop_tx_ba_session(struct sta_info *sta, u16 tid,
Expand All @@ -622,7 +622,7 @@ int __mac80211_stop_tx_ba_session(struct sta_info *sta, u16 tid,
return ret;
}

int mac80211_stop_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid)
int xr_mac80211_stop_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid)
{
struct sta_info *sta = container_of(pubsta, struct sta_info, sta);
struct ieee80211_sub_if_data *sdata = sta->sdata;
Expand Down Expand Up @@ -653,7 +653,7 @@ int mac80211_stop_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid)
}

set_bit(HT_AGG_STATE_WANT_STOP, &tid_tx->state);
mac80211_queue_work(&local->hw, &sta->ampdu_mlme.work);
xr_mac80211_queue_work(&local->hw, &sta->ampdu_mlme.work);

unlock:
spin_unlock_bh(&sta->lock);
Expand Down Expand Up @@ -737,7 +737,7 @@ void mac80211_stop_tx_ba_cb(struct ieee80211_vif *vif, u8 *ra, u8 tid)
mutex_unlock(&local->sta_mtx);
}

void mac80211_stop_tx_ba_cb_irqsafe(struct ieee80211_vif *vif,
void xr_mac80211_stop_tx_ba_cb_irqsafe(struct ieee80211_vif *vif,
const u8 *ra, u16 tid)
{
struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif);
Expand All @@ -754,7 +754,7 @@ void mac80211_stop_tx_ba_cb_irqsafe(struct ieee80211_vif *vif,

skb->pkt_type = IEEE80211_SDATA_QUEUE_AGG_STOP;
skb_queue_tail(&sdata->skb_queue, skb);
mac80211_queue_work(&local->hw, &sdata->work);
xr_mac80211_queue_work(&local->hw, &sdata->work);
}

void mac80211_process_addba_resp(struct ieee80211_local *local,
Expand Down
18 changes: 9 additions & 9 deletions drivers/net/wireless/xr819s/umac/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -2496,7 +2496,7 @@ static int ieee80211_start_roc_work(struct ieee80211_local *local,

/* if not HW assist, just queue & schedule work */
if (!local->ops->remain_on_channel) {
mac80211_queue_delayed_work(&local->hw, &roc->work, 0);
xr_mac80211_queue_delayed_work(&local->hw, &roc->work, 0);
goto out_queue;
}

Expand Down Expand Up @@ -2731,7 +2731,7 @@ static int ieee80211_cancel_roc(struct ieee80211_local *local,
} else {
/* work may be pending so use it all the time */
found->abort = true;
mac80211_queue_delayed_work(&local->hw, &found->work, 0);
xr_mac80211_queue_delayed_work(&local->hw, &found->work, 0);

mutex_unlock(&local->mtx);

Expand Down Expand Up @@ -2932,7 +2932,7 @@ static void ieee80211_mgmt_frame_register(struct wiphy *wiphy,
else
sdata->req_filt_flags &= ~FIF_PROBE_REQ;

mac80211_queue_work(&local->hw, &sdata->reconfig_filter);
xr_mac80211_queue_work(&local->hw, &sdata->reconfig_filter);
}

static int ieee80211_set_antenna(struct wiphy *wiphy, u32 tx_ant, u32 rx_ant)
Expand Down Expand Up @@ -3091,8 +3091,8 @@ ieee80211_prep_tdls_encap_data(struct wiphy *wiphy, struct net_device *dev,
tf->u.setup_req.capability =
cpu_to_le16(ieee80211_get_tdls_sta_capab(sdata));

mac80211_add_srates_ie(&sdata->vif, skb);
mac80211_add_ext_srates_ie(&sdata->vif, skb);
xr_mac80211_add_srates_ie(&sdata->vif, skb);
xr_mac80211_add_ext_srates_ie(&sdata->vif, skb);
ieee80211_tdls_add_ext_capab(skb);
break;
case WLAN_TDLS_SETUP_RESPONSE:
Expand All @@ -3105,8 +3105,8 @@ ieee80211_prep_tdls_encap_data(struct wiphy *wiphy, struct net_device *dev,
tf->u.setup_resp.capability =
cpu_to_le16(ieee80211_get_tdls_sta_capab(sdata));

mac80211_add_srates_ie(&sdata->vif, skb);
mac80211_add_ext_srates_ie(&sdata->vif, skb);
xr_mac80211_add_srates_ie(&sdata->vif, skb);
xr_mac80211_add_ext_srates_ie(&sdata->vif, skb);
ieee80211_tdls_add_ext_capab(skb);
break;
case WLAN_TDLS_SETUP_CONFIRM:
Expand Down Expand Up @@ -3166,8 +3166,8 @@ ieee80211_prep_tdls_direct(struct wiphy *wiphy, struct net_device *dev,
mgmt->u.action.u.tdls_discover_resp.capability =
cpu_to_le16(ieee80211_get_tdls_sta_capab(sdata));

mac80211_add_srates_ie(&sdata->vif, skb);
mac80211_add_ext_srates_ie(&sdata->vif, skb);
xr_mac80211_add_srates_ie(&sdata->vif, skb);
xr_mac80211_add_ext_srates_ie(&sdata->vif, skb);
ieee80211_tdls_add_ext_capab(skb);
break;
default:
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/xr819s/umac/debugfs_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <linux/rtnetlink.h>
#include <linux/slab.h>
#include <linux/notifier.h>
#include <net/mac80211.h>
#include <net/mac80211_xr.h>
#include <net/cfg80211.h>
#include "ieee80211_i.h"
#include "rate.h"
Expand Down
4 changes: 2 additions & 2 deletions drivers/net/wireless/xr819s/umac/debugfs_sta.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ static ssize_t sta_agg_status_write(struct file *file, const char __user *userbu

if (tx) {
if (start)
ret = mac80211_start_tx_ba_session(&sta->sta, tid, 5000);
ret = xr_mac80211_start_tx_ba_session(&sta->sta, tid, 5000);
else
ret = mac80211_stop_tx_ba_session(&sta->sta, tid);
ret = xr_mac80211_stop_tx_ba_session(&sta->sta, tid);
} else {
__mac80211_stop_rx_ba_session(sta, tid, WLAN_BACK_RECIPIENT,
3, true);
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/xr819s/umac/driver-ops.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __MAC80211_DRIVER_OPS
#define __MAC80211_DRIVER_OPS

#include <net/mac80211.h>
#include <net/mac80211_xr.h>
#include "ieee80211_i.h"
#include "driver-trace.h"

Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/xr819s/umac/driver-trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define __MAC80211_DRIVER_TRACE

#include <linux/tracepoint.h>
#include <net/mac80211.h>
#include <net/mac80211_xr.h>
#include "ieee80211_i.h"

#if !defined(CONFIG_XRMAC_DRIVER_API_TRACER) || defined(__CHECKER__)
Expand Down
8 changes: 4 additions & 4 deletions drivers/net/wireless/xr819s/umac/ht.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include <linux/ieee80211.h>
#include <linux/export.h>
#include <net/mac80211.h>
#include <net/mac80211_xr.h>
#include "ieee80211_i.h"
#include "rate.h"

Expand Down Expand Up @@ -291,7 +291,7 @@ int mac80211_send_smps_action(struct ieee80211_sub_if_data *sdata,
return 0;
}

void mac80211_request_smps_work(struct work_struct *work)
void xr_mac80211_request_smps_work(struct work_struct *work)
{
struct ieee80211_sub_if_data *sdata =
container_of(work, struct ieee80211_sub_if_data,
Expand All @@ -302,7 +302,7 @@ void mac80211_request_smps_work(struct work_struct *work)
mutex_unlock(&sdata->u.mgd.mtx);
}

void mac80211_request_smps(struct ieee80211_vif *vif,
void xr_mac80211_request_smps(struct ieee80211_vif *vif,
enum ieee80211_smps_mode smps_mode)
{
struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif);
Expand All @@ -315,7 +315,7 @@ void mac80211_request_smps(struct ieee80211_vif *vif,

sdata->u.mgd.driver_smps_mode = smps_mode;

mac80211_queue_work(&sdata->local->hw,
xr_mac80211_queue_work(&sdata->local->hw,
&sdata->u.mgd.request_smps_work);
}
/* this might change ... don't want non-open drivers using it */
Loading

0 comments on commit f03ff00

Please sign in to comment.