Commit 05dc0f43 authored by Arend van Spriel's avatar Arend van Spriel Committed by Greg Kroah-Hartman

staging: brcm80211: rename event handling definition

Renaming fullmac to have more consistent naming throughout the
driver. This commit renames identifiers related to firmware event
handling.
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Reviewed-by: default avatarRoland Vossen <rvossen@broadcom.com>
Reviewed-by: default avatarFranky Lin <frankyl@broadcom.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 96a6062b
This diff is collapsed.
......@@ -376,7 +376,7 @@ static int dhd_toe_set(dhd_info_t *dhd, int idx, u32 toe_ol);
#endif /* TOE */
static int dhd_wl_host_event(dhd_info_t *dhd, int *ifidx, void *pktdata,
wl_event_msg_t *event_ptr, void **data_ptr);
brcmf_event_msg_t *event_ptr, void **data_ptr);
static void dhd_set_packet_filter(int value, dhd_pub_t *dhd)
{
......@@ -791,10 +791,10 @@ static void dhd_op_if(dhd_if_t *ifp)
DHD_TRACE(("%s: idx %d, state %d\n", __func__, ifp->idx, ifp->state));
switch (ifp->state) {
case WLC_E_IF_ADD:
case BRCMF_E_IF_ADD:
/*
* Delete the existing interface before overwriting it
* in case we missed the WLC_E_IF_DEL event.
* in case we missed the BRCMF_E_IF_DEL event.
*/
if (ifp->net != NULL) {
DHD_ERROR(("%s: ERROR: netdev:%s already exists, "
......@@ -839,7 +839,7 @@ static void dhd_op_if(dhd_if_t *ifp)
}
}
break;
case WLC_E_IF_DEL:
case BRCMF_E_IF_DEL:
if (ifp->net != NULL) {
DHD_TRACE(("\n%s: got 'WLC_E_IF_DEL' state\n",
__func__));
......@@ -1100,7 +1100,7 @@ void dhd_rx_frame(dhd_pub_t *dhdp, int ifidx, struct sk_buff *pktbuf,
struct sk_buff *pnext, *save_pktbuf;
int i;
dhd_if_t *ifp;
wl_event_msg_t event;
brcmf_event_msg_t event;
DHD_TRACE(("%s: Enter\n", __func__));
......@@ -1773,7 +1773,7 @@ dhd_add_if(dhd_info_t *dhd, int ifidx, void *handle, char *name,
memcpy(&ifp->mac_addr, mac_addr, ETH_ALEN);
if (handle == NULL) {
ifp->state = WLC_E_IF_ADD;
ifp->state = BRCMF_E_IF_ADD;
ifp->idx = ifidx;
ASSERT(dhd->sysioc_tsk);
up(&dhd->sysioc_sem);
......@@ -1796,7 +1796,7 @@ void dhd_del_if(dhd_info_t *dhd, int ifidx)
return;
}
ifp->state = WLC_E_IF_DEL;
ifp->state = BRCMF_E_IF_DEL;
ifp->idx = ifidx;
ASSERT(dhd->sysioc_tsk);
up(&dhd->sysioc_sem);
......@@ -2027,26 +2027,26 @@ int dhd_bus_start(dhd_pub_t *dhdp)
dhdcdc_query_ioctl(dhdp, 0, BRCMF_C_GET_VAR, iovbuf, sizeof(iovbuf));
memcpy(dhdp->eventmask, iovbuf, WL_EVENTING_MASK_LEN);
setbit(dhdp->eventmask, WLC_E_SET_SSID);
setbit(dhdp->eventmask, WLC_E_PRUNE);
setbit(dhdp->eventmask, WLC_E_AUTH);
setbit(dhdp->eventmask, WLC_E_REASSOC);
setbit(dhdp->eventmask, WLC_E_REASSOC_IND);
setbit(dhdp->eventmask, WLC_E_DEAUTH_IND);
setbit(dhdp->eventmask, WLC_E_DISASSOC_IND);
setbit(dhdp->eventmask, WLC_E_DISASSOC);
setbit(dhdp->eventmask, WLC_E_JOIN);
setbit(dhdp->eventmask, WLC_E_ASSOC_IND);
setbit(dhdp->eventmask, WLC_E_PSK_SUP);
setbit(dhdp->eventmask, WLC_E_LINK);
setbit(dhdp->eventmask, WLC_E_NDIS_LINK);
setbit(dhdp->eventmask, WLC_E_MIC_ERROR);
setbit(dhdp->eventmask, WLC_E_PMKID_CACHE);
setbit(dhdp->eventmask, WLC_E_TXFAIL);
setbit(dhdp->eventmask, WLC_E_JOIN_START);
setbit(dhdp->eventmask, WLC_E_SCAN_COMPLETE);
setbit(dhdp->eventmask, BRCMF_E_SET_SSID);
setbit(dhdp->eventmask, BRCMF_E_PRUNE);
setbit(dhdp->eventmask, BRCMF_E_AUTH);
setbit(dhdp->eventmask, BRCMF_E_REASSOC);
setbit(dhdp->eventmask, BRCMF_E_REASSOC_IND);
setbit(dhdp->eventmask, BRCMF_E_DEAUTH_IND);
setbit(dhdp->eventmask, BRCMF_E_DISASSOC_IND);
setbit(dhdp->eventmask, BRCMF_E_DISASSOC);
setbit(dhdp->eventmask, BRCMF_E_JOIN);
setbit(dhdp->eventmask, BRCMF_E_ASSOC_IND);
setbit(dhdp->eventmask, BRCMF_E_PSK_SUP);
setbit(dhdp->eventmask, BRCMF_E_LINK);
setbit(dhdp->eventmask, BRCMF_E_NDIS_LINK);
setbit(dhdp->eventmask, BRCMF_E_MIC_ERROR);
setbit(dhdp->eventmask, BRCMF_E_PMKID_CACHE);
setbit(dhdp->eventmask, BRCMF_E_TXFAIL);
setbit(dhdp->eventmask, BRCMF_E_JOIN_START);
setbit(dhdp->eventmask, BRCMF_E_SCAN_COMPLETE);
#ifdef PNO_SUPPORT
setbit(dhdp->eventmask, WLC_E_PFN_NET_FOUND);
setbit(dhdp->eventmask, BRCMF_E_PFN_NET_FOUND);
#endif /* PNO_SUPPORT */
/* enable dongle roaming event */
......@@ -2501,7 +2501,7 @@ void dhd_os_sdunlock(dhd_pub_t *pub)
static int
dhd_wl_host_event(dhd_info_t *dhd, int *ifidx, void *pktdata,
wl_event_msg_t *event, void **data)
brcmf_event_msg_t *event, void **data)
{
int bcmerror = 0;
......@@ -2520,7 +2520,7 @@ dhd_wl_host_event(dhd_info_t *dhd, int *ifidx, void *pktdata,
}
/* send up locally generated event */
void dhd_sendup_event(dhd_pub_t *dhdp, wl_event_msg_t *event, void *data)
void dhd_sendup_event(dhd_pub_t *dhdp, brcmf_event_msg_t *event, void *data)
{
switch (be32_to_cpu(event->event_type)) {
default:
......
......@@ -188,9 +188,9 @@ struct wl_conf {
/* cfg80211 main event loop */
struct wl_event_loop {
s32(*handler[WLC_E_LAST]) (struct wl_priv *wl,
s32(*handler[BRCMF_E_LAST]) (struct wl_priv *wl,
struct net_device *ndev,
const wl_event_msg_t *e, void *data);
const brcmf_event_msg_t *e, void *data);
};
/* representing interface of cfg80211 plane */
......@@ -226,7 +226,7 @@ struct wl_ie {
struct wl_event_q {
struct list_head eq_list;
u32 etype;
wl_event_msg_t emsg;
brcmf_event_msg_t emsg;
s8 edata[1];
};
......@@ -387,8 +387,8 @@ static inline struct wl_bss_info *next_bss(struct wl_scan_results *list,
extern s32 wl_cfg80211_attach(struct net_device *ndev, void *data);
extern void wl_cfg80211_detach(void);
/* event handler from dongle */
extern void wl_cfg80211_event(struct net_device *ndev, const wl_event_msg_t *e,
void *data);
extern void wl_cfg80211_event(struct net_device *ndev,
const brcmf_event_msg_t *e, void *data);
extern void wl_cfg80211_sdio_func(void *func); /* set sdio function info */
extern struct sdio_func *wl_cfg80211_get_sdio_func(void); /* set sdio function info */
extern s32 wl_cfg80211_up(void); /* dongle up */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment