Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133015692
D3655.id9106.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
5 KB
Referenced Files
None
Subscribers
None
D3655.id9106.diff
View Options
Index: head/sys/dev/usb/wlan/if_rum.c
===================================================================
--- head/sys/dev/usb/wlan/if_rum.c
+++ head/sys/dev/usb/wlan/if_rum.c
@@ -160,7 +160,7 @@
static void rum_vap_delete(struct ieee80211vap *);
static void rum_cmdq_cb(void *, int);
static int rum_cmd_sleepable(struct rum_softc *, const void *,
- size_t, uint8_t, uint8_t, CMD_FUNC_PROTO);
+ size_t, uint8_t, CMD_FUNC_PROTO);
static void rum_tx_free(struct rum_tx_data *, int);
static void rum_setup_tx_list(struct rum_softc *);
static void rum_unsetup_tx_list(struct rum_softc *);
@@ -212,7 +212,7 @@
static void rum_abort_tsf_sync(struct rum_softc *);
static void rum_get_tsf(struct rum_softc *, uint64_t *);
static void rum_update_slot_cb(struct rum_softc *,
- union sec_param *, uint8_t, uint8_t);
+ union sec_param *, uint8_t);
static void rum_update_slot(struct ieee80211com *);
static void rum_set_bssid(struct rum_softc *, const uint8_t *);
static void rum_set_macaddr(struct rum_softc *, const uint8_t *);
@@ -233,18 +233,18 @@
static int rum_alloc_beacon(struct rum_softc *,
struct ieee80211vap *);
static void rum_update_beacon_cb(struct rum_softc *,
- union sec_param *, uint8_t, uint8_t);
+ union sec_param *, uint8_t);
static void rum_update_beacon(struct ieee80211vap *, int);
static int rum_common_key_set(struct rum_softc *,
struct ieee80211_key *, uint16_t);
static void rum_group_key_set_cb(struct rum_softc *,
- union sec_param *, uint8_t, uint8_t);
+ union sec_param *, uint8_t);
static void rum_group_key_del_cb(struct rum_softc *,
- union sec_param *, uint8_t, uint8_t);
+ union sec_param *, uint8_t);
static void rum_pair_key_set_cb(struct rum_softc *,
- union sec_param *, uint8_t, uint8_t);
+ union sec_param *, uint8_t);
static void rum_pair_key_del_cb(struct rum_softc *,
- union sec_param *, uint8_t, uint8_t);
+ union sec_param *, uint8_t);
static int rum_key_alloc(struct ieee80211vap *,
struct ieee80211_key *, ieee80211_keyix *,
ieee80211_keyix *);
@@ -692,7 +692,7 @@
RUM_CMDQ_UNLOCK(sc);
RUM_LOCK(sc);
- rc->func(sc, &rc->data, rc->rn_id, rc->rvp_id);
+ rc->func(sc, &rc->data, rc->rvp_id);
RUM_UNLOCK(sc);
RUM_CMDQ_LOCK(sc);
@@ -704,7 +704,7 @@
static int
rum_cmd_sleepable(struct rum_softc *sc, const void *ptr, size_t len,
- uint8_t rn_id, uint8_t rvp_id, CMD_FUNC_PROTO)
+ uint8_t rvp_id, CMD_FUNC_PROTO)
{
struct ieee80211com *ic = &sc->sc_ic;
@@ -720,7 +720,6 @@
if (ptr != NULL)
memcpy(&sc->cmdq[sc->cmdq_last].data, ptr, len);
- sc->cmdq[sc->cmdq_last].rn_id = rn_id;
sc->cmdq[sc->cmdq_last].rvp_id = rvp_id;
sc->cmdq[sc->cmdq_last].func = func;
sc->cmdq_last = (sc->cmdq_last + 1) % RUM_CMDQ_SIZE;
@@ -825,7 +824,7 @@
ret = EINVAL;
goto run_fail;
}
- rum_update_slot_cb(sc, NULL, 0, 0);
+ rum_update_slot_cb(sc, NULL, 0);
rum_enable_mrr(sc);
rum_set_txpreamble(sc);
rum_set_basicrates(sc);
@@ -2011,8 +2010,7 @@
}
static void
-rum_update_slot_cb(struct rum_softc *sc, union sec_param *data, uint8_t rv_id,
- uint8_t rvp_id)
+rum_update_slot_cb(struct rum_softc *sc, union sec_param *data, uint8_t rvp_id)
{
struct ieee80211com *ic = &sc->sc_ic;
uint8_t slottime;
@@ -2027,7 +2025,7 @@
static void
rum_update_slot(struct ieee80211com *ic)
{
- rum_cmd_sleepable(ic->ic_softc, NULL, 0, 0, 0, rum_update_slot_cb);
+ rum_cmd_sleepable(ic->ic_softc, NULL, 0, 0, rum_update_slot_cb);
}
static void
@@ -2437,7 +2435,7 @@
static void
rum_update_beacon_cb(struct rum_softc *sc, union sec_param *data,
- uint8_t rn_id, uint8_t rvp_id)
+ uint8_t rvp_id)
{
struct ieee80211vap *vap = data->vap;
@@ -2482,7 +2480,7 @@
setbit(bo->bo_flags, item);
ieee80211_beacon_update(ni, bo, m, mcast);
- rum_cmd_sleepable(sc, &vap, sizeof(vap), 0, 0, rum_update_beacon_cb);
+ rum_cmd_sleepable(sc, &vap, sizeof(vap), 0, rum_update_beacon_cb);
}
static int
@@ -2507,7 +2505,7 @@
static void
rum_group_key_set_cb(struct rum_softc *sc, union sec_param *data,
- uint8_t rn_id, uint8_t rvp_id)
+ uint8_t rvp_id)
{
struct ieee80211_key *k = &data->key;
uint8_t mode;
@@ -2551,7 +2549,7 @@
static void
rum_group_key_del_cb(struct rum_softc *sc, union sec_param *data,
- uint8_t rn_id, uint8_t rvp_id)
+ uint8_t rvp_id)
{
struct ieee80211_key *k = &data->key;
@@ -2565,7 +2563,7 @@
}
static void
-rum_pair_key_set_cb(struct rum_softc *sc, union sec_param *data, uint8_t rn_id,
+rum_pair_key_set_cb(struct rum_softc *sc, union sec_param *data,
uint8_t rvp_id)
{
struct ieee80211_key *k = &data->key;
@@ -2613,7 +2611,7 @@
}
static void
-rum_pair_key_del_cb(struct rum_softc *sc, union sec_param *data, uint8_t rn_id,
+rum_pair_key_del_cb(struct rum_softc *sc, union sec_param *data,
uint8_t rvp_id)
{
struct ieee80211_key *k = &data->key;
@@ -2674,7 +2672,7 @@
group = k >= &vap->iv_nw_keys[0] && k < &vap->iv_nw_keys[IEEE80211_WEP_NKID];
- return !rum_cmd_sleepable(sc, k, sizeof(*k), 0, 0,
+ return !rum_cmd_sleepable(sc, k, sizeof(*k), 0,
group ? rum_group_key_set_cb : rum_pair_key_set_cb);
}
@@ -2691,7 +2689,7 @@
group = k >= &vap->iv_nw_keys[0] && k < &vap->iv_nw_keys[IEEE80211_WEP_NKID];
- return !rum_cmd_sleepable(sc, k, sizeof(*k), 0, 0,
+ return !rum_cmd_sleepable(sc, k, sizeof(*k), 0,
group ? rum_group_key_del_cb : rum_pair_key_del_cb);
}
Index: head/sys/dev/usb/wlan/if_rumvar.h
===================================================================
--- head/sys/dev/usb/wlan/if_rumvar.h
+++ head/sys/dev/usb/wlan/if_rumvar.h
@@ -77,13 +77,10 @@
struct ieee80211vap *vap;
};
#define CMD_FUNC_PROTO void (*func)(struct rum_softc *, \
- union sec_param *, uint8_t, \
- uint8_t)
+ union sec_param *, uint8_t)
struct rum_cmdq {
union sec_param data;
-
- uint8_t rn_id;
uint8_t rvp_id;
CMD_FUNC_PROTO;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 23, 2:23 AM (1 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24078735
Default Alt Text
D3655.id9106.diff (5 KB)
Attached To
Mode
D3655: rum(4): drop unused 'node id' parameter
Attached
Detach File
Event Timeline
Log In to Comment