mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-13 17:24:28 +08:00
ath9k: Remove unused parameters which are passed to ath_beacon_config_X()
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
6b45784fbe
commit
d31e20af9f
@ -507,8 +507,7 @@ void ath_beacon_tasklet(unsigned long data)
|
|||||||
* slot. Slots that are not occupied will generate nothing.
|
* slot. Slots that are not occupied will generate nothing.
|
||||||
*/
|
*/
|
||||||
static void ath_beacon_config_ap(struct ath_softc *sc,
|
static void ath_beacon_config_ap(struct ath_softc *sc,
|
||||||
struct ath_beacon_config *conf,
|
struct ath_beacon_config *conf)
|
||||||
struct ath_vif *avp)
|
|
||||||
{
|
{
|
||||||
u32 nexttbtt, intval;
|
u32 nexttbtt, intval;
|
||||||
|
|
||||||
@ -553,8 +552,7 @@ static void ath_beacon_config_ap(struct ath_softc *sc,
|
|||||||
* we've associated with.
|
* we've associated with.
|
||||||
*/
|
*/
|
||||||
static void ath_beacon_config_sta(struct ath_softc *sc,
|
static void ath_beacon_config_sta(struct ath_softc *sc,
|
||||||
struct ath_beacon_config *conf,
|
struct ath_beacon_config *conf)
|
||||||
struct ath_vif *avp)
|
|
||||||
{
|
{
|
||||||
struct ath9k_beacon_state bs;
|
struct ath9k_beacon_state bs;
|
||||||
int dtimperiod, dtimcount, sleepduration;
|
int dtimperiod, dtimcount, sleepduration;
|
||||||
@ -654,7 +652,6 @@ static void ath_beacon_config_sta(struct ath_softc *sc,
|
|||||||
|
|
||||||
static void ath_beacon_config_adhoc(struct ath_softc *sc,
|
static void ath_beacon_config_adhoc(struct ath_softc *sc,
|
||||||
struct ath_beacon_config *conf,
|
struct ath_beacon_config *conf,
|
||||||
struct ath_vif *avp,
|
|
||||||
struct ieee80211_vif *vif)
|
struct ieee80211_vif *vif)
|
||||||
{
|
{
|
||||||
u64 tsf;
|
u64 tsf;
|
||||||
@ -720,14 +717,14 @@ void ath_beacon_config(struct ath_softc *sc, struct ieee80211_vif *vif)
|
|||||||
|
|
||||||
switch(avp->av_opmode) {
|
switch(avp->av_opmode) {
|
||||||
case NL80211_IFTYPE_AP:
|
case NL80211_IFTYPE_AP:
|
||||||
ath_beacon_config_ap(sc, &conf, avp);
|
ath_beacon_config_ap(sc, &conf);
|
||||||
break;
|
break;
|
||||||
case NL80211_IFTYPE_ADHOC:
|
case NL80211_IFTYPE_ADHOC:
|
||||||
case NL80211_IFTYPE_MESH_POINT:
|
case NL80211_IFTYPE_MESH_POINT:
|
||||||
ath_beacon_config_adhoc(sc, &conf, avp, vif);
|
ath_beacon_config_adhoc(sc, &conf, vif);
|
||||||
break;
|
break;
|
||||||
case NL80211_IFTYPE_STATION:
|
case NL80211_IFTYPE_STATION:
|
||||||
ath_beacon_config_sta(sc, &conf, avp);
|
ath_beacon_config_sta(sc, &conf);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
DPRINTF(sc, ATH_DBG_CONFIG,
|
DPRINTF(sc, ATH_DBG_CONFIG,
|
||||||
|
Loading…
Reference in New Issue
Block a user