Commit c9573a8d authored by sayli karnik's avatar sayli karnik Committed by Greg Kroah-Hartman

staging: wlan-ng: Remove the typedef to the 'wlandevice' structure

This patch removes the typedef 'wlandevice_t' to the 'wlandevice'
structure.
Signed-off-by: default avatarsayli karnik <karniksayli1995@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cbb351cc
...@@ -35,7 +35,7 @@ static const u32 prism2_cipher_suites[PRISM2_NUM_CIPHER_SUITES] = { ...@@ -35,7 +35,7 @@ static const u32 prism2_cipher_suites[PRISM2_NUM_CIPHER_SUITES] = {
/* prism2 device private data */ /* prism2 device private data */
struct prism2_wiphy_private { struct prism2_wiphy_private {
wlandevice_t *wlandev; struct wlandevice *wlandev;
struct ieee80211_supported_band band; struct ieee80211_supported_band band;
struct ieee80211_channel channels[ARRAY_SIZE(prism2_channels)]; struct ieee80211_channel channels[ARRAY_SIZE(prism2_channels)];
...@@ -69,7 +69,7 @@ static int prism2_result2err(int prism2_result) ...@@ -69,7 +69,7 @@ static int prism2_result2err(int prism2_result)
return err; return err;
} }
static int prism2_domibset_uint32(wlandevice_t *wlandev, u32 did, u32 data) static int prism2_domibset_uint32(struct wlandevice *wlandev, u32 did, u32 data)
{ {
struct p80211msg_dot11req_mibset msg; struct p80211msg_dot11req_mibset msg;
p80211item_uint32_t *mibitem = p80211item_uint32_t *mibitem =
...@@ -82,7 +82,7 @@ static int prism2_domibset_uint32(wlandevice_t *wlandev, u32 did, u32 data) ...@@ -82,7 +82,7 @@ static int prism2_domibset_uint32(wlandevice_t *wlandev, u32 did, u32 data)
return p80211req_dorequest(wlandev, (u8 *)&msg); return p80211req_dorequest(wlandev, (u8 *)&msg);
} }
static int prism2_domibset_pstr32(wlandevice_t *wlandev, static int prism2_domibset_pstr32(struct wlandevice *wlandev,
u32 did, u8 len, const u8 *data) u32 did, u8 len, const u8 *data)
{ {
struct p80211msg_dot11req_mibset msg; struct p80211msg_dot11req_mibset msg;
...@@ -103,7 +103,7 @@ static int prism2_change_virtual_intf(struct wiphy *wiphy, ...@@ -103,7 +103,7 @@ static int prism2_change_virtual_intf(struct wiphy *wiphy,
enum nl80211_iftype type, u32 *flags, enum nl80211_iftype type, u32 *flags,
struct vif_params *params) struct vif_params *params)
{ {
wlandevice_t *wlandev = dev->ml_priv; struct wlandevice *wlandev = dev->ml_priv;
u32 data; u32 data;
int result; int result;
int err = 0; int err = 0;
...@@ -144,7 +144,7 @@ static int prism2_add_key(struct wiphy *wiphy, struct net_device *dev, ...@@ -144,7 +144,7 @@ static int prism2_add_key(struct wiphy *wiphy, struct net_device *dev,
u8 key_index, bool pairwise, const u8 *mac_addr, u8 key_index, bool pairwise, const u8 *mac_addr,
struct key_params *params) struct key_params *params)
{ {
wlandevice_t *wlandev = dev->ml_priv; struct wlandevice *wlandev = dev->ml_priv;
u32 did; u32 did;
int err = 0; int err = 0;
...@@ -188,7 +188,7 @@ static int prism2_get_key(struct wiphy *wiphy, struct net_device *dev, ...@@ -188,7 +188,7 @@ static int prism2_get_key(struct wiphy *wiphy, struct net_device *dev,
const u8 *mac_addr, void *cookie, const u8 *mac_addr, void *cookie,
void (*callback)(void *cookie, struct key_params*)) void (*callback)(void *cookie, struct key_params*))
{ {
wlandevice_t *wlandev = dev->ml_priv; struct wlandevice *wlandev = dev->ml_priv;
struct key_params params; struct key_params params;
int len; int len;
...@@ -216,7 +216,7 @@ static int prism2_get_key(struct wiphy *wiphy, struct net_device *dev, ...@@ -216,7 +216,7 @@ static int prism2_get_key(struct wiphy *wiphy, struct net_device *dev,
static int prism2_del_key(struct wiphy *wiphy, struct net_device *dev, static int prism2_del_key(struct wiphy *wiphy, struct net_device *dev,
u8 key_index, bool pairwise, const u8 *mac_addr) u8 key_index, bool pairwise, const u8 *mac_addr)
{ {
wlandevice_t *wlandev = dev->ml_priv; struct wlandevice *wlandev = dev->ml_priv;
u32 did; u32 did;
int err = 0; int err = 0;
int result = 0; int result = 0;
...@@ -241,7 +241,7 @@ static int prism2_del_key(struct wiphy *wiphy, struct net_device *dev, ...@@ -241,7 +241,7 @@ static int prism2_del_key(struct wiphy *wiphy, struct net_device *dev,
static int prism2_set_default_key(struct wiphy *wiphy, struct net_device *dev, static int prism2_set_default_key(struct wiphy *wiphy, struct net_device *dev,
u8 key_index, bool unicast, bool multicast) u8 key_index, bool unicast, bool multicast)
{ {
wlandevice_t *wlandev = dev->ml_priv; struct wlandevice *wlandev = dev->ml_priv;
int err = 0; int err = 0;
int result = 0; int result = 0;
...@@ -259,7 +259,7 @@ static int prism2_set_default_key(struct wiphy *wiphy, struct net_device *dev, ...@@ -259,7 +259,7 @@ static int prism2_set_default_key(struct wiphy *wiphy, struct net_device *dev,
static int prism2_get_station(struct wiphy *wiphy, struct net_device *dev, static int prism2_get_station(struct wiphy *wiphy, struct net_device *dev,
const u8 *mac, struct station_info *sinfo) const u8 *mac, struct station_info *sinfo)
{ {
wlandevice_t *wlandev = dev->ml_priv; struct wlandevice *wlandev = dev->ml_priv;
struct p80211msg_lnxreq_commsquality quality; struct p80211msg_lnxreq_commsquality quality;
int result; int result;
...@@ -294,7 +294,7 @@ static int prism2_scan(struct wiphy *wiphy, ...@@ -294,7 +294,7 @@ static int prism2_scan(struct wiphy *wiphy,
{ {
struct net_device *dev; struct net_device *dev;
struct prism2_wiphy_private *priv = wiphy_priv(wiphy); struct prism2_wiphy_private *priv = wiphy_priv(wiphy);
wlandevice_t *wlandev; struct wlandevice *wlandev;
struct p80211msg_dot11req_scan msg1; struct p80211msg_dot11req_scan msg1;
struct p80211msg_dot11req_scan_results msg2; struct p80211msg_dot11req_scan_results msg2;
struct cfg80211_bss *bss; struct cfg80211_bss *bss;
...@@ -411,7 +411,7 @@ static int prism2_scan(struct wiphy *wiphy, ...@@ -411,7 +411,7 @@ static int prism2_scan(struct wiphy *wiphy,
static int prism2_set_wiphy_params(struct wiphy *wiphy, u32 changed) static int prism2_set_wiphy_params(struct wiphy *wiphy, u32 changed)
{ {
struct prism2_wiphy_private *priv = wiphy_priv(wiphy); struct prism2_wiphy_private *priv = wiphy_priv(wiphy);
wlandevice_t *wlandev = priv->wlandev; struct wlandevice *wlandev = priv->wlandev;
u32 data; u32 data;
int result; int result;
int err = 0; int err = 0;
...@@ -453,7 +453,7 @@ static int prism2_set_wiphy_params(struct wiphy *wiphy, u32 changed) ...@@ -453,7 +453,7 @@ static int prism2_set_wiphy_params(struct wiphy *wiphy, u32 changed)
static int prism2_connect(struct wiphy *wiphy, struct net_device *dev, static int prism2_connect(struct wiphy *wiphy, struct net_device *dev,
struct cfg80211_connect_params *sme) struct cfg80211_connect_params *sme)
{ {
wlandevice_t *wlandev = dev->ml_priv; struct wlandevice *wlandev = dev->ml_priv;
struct ieee80211_channel *channel = sme->channel; struct ieee80211_channel *channel = sme->channel;
struct p80211msg_lnxreq_autojoin msg_join; struct p80211msg_lnxreq_autojoin msg_join;
u32 did; u32 did;
...@@ -563,7 +563,7 @@ static int prism2_connect(struct wiphy *wiphy, struct net_device *dev, ...@@ -563,7 +563,7 @@ static int prism2_connect(struct wiphy *wiphy, struct net_device *dev,
static int prism2_disconnect(struct wiphy *wiphy, struct net_device *dev, static int prism2_disconnect(struct wiphy *wiphy, struct net_device *dev,
u16 reason_code) u16 reason_code)
{ {
wlandevice_t *wlandev = dev->ml_priv; struct wlandevice *wlandev = dev->ml_priv;
struct p80211msg_lnxreq_autojoin msg_join; struct p80211msg_lnxreq_autojoin msg_join;
int result; int result;
int err = 0; int err = 0;
...@@ -597,7 +597,7 @@ static int prism2_set_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev, ...@@ -597,7 +597,7 @@ static int prism2_set_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev,
enum nl80211_tx_power_setting type, int mbm) enum nl80211_tx_power_setting type, int mbm)
{ {
struct prism2_wiphy_private *priv = wiphy_priv(wiphy); struct prism2_wiphy_private *priv = wiphy_priv(wiphy);
wlandevice_t *wlandev = priv->wlandev; struct wlandevice *wlandev = priv->wlandev;
u32 data; u32 data;
int result; int result;
int err = 0; int err = 0;
...@@ -624,7 +624,7 @@ static int prism2_get_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev, ...@@ -624,7 +624,7 @@ static int prism2_get_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev,
int *dbm) int *dbm)
{ {
struct prism2_wiphy_private *priv = wiphy_priv(wiphy); struct prism2_wiphy_private *priv = wiphy_priv(wiphy);
wlandevice_t *wlandev = priv->wlandev; struct wlandevice *wlandev = priv->wlandev;
struct p80211msg_dot11req_mibget msg; struct p80211msg_dot11req_mibget msg;
p80211item_uint32_t *mibitem; p80211item_uint32_t *mibitem;
int result; int result;
...@@ -649,7 +649,7 @@ static int prism2_get_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev, ...@@ -649,7 +649,7 @@ static int prism2_get_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev,
} }
/* Interface callback functions, passing data back up to the cfg80211 layer */ /* Interface callback functions, passing data back up to the cfg80211 layer */
void prism2_connect_result(wlandevice_t *wlandev, u8 failed) void prism2_connect_result(struct wlandevice *wlandev, u8 failed)
{ {
u16 status = failed ? u16 status = failed ?
WLAN_STATUS_UNSPECIFIED_FAILURE : WLAN_STATUS_SUCCESS; WLAN_STATUS_UNSPECIFIED_FAILURE : WLAN_STATUS_SUCCESS;
...@@ -658,13 +658,13 @@ void prism2_connect_result(wlandevice_t *wlandev, u8 failed) ...@@ -658,13 +658,13 @@ void prism2_connect_result(wlandevice_t *wlandev, u8 failed)
NULL, 0, NULL, 0, status, GFP_KERNEL); NULL, 0, NULL, 0, status, GFP_KERNEL);
} }
void prism2_disconnected(wlandevice_t *wlandev) void prism2_disconnected(struct wlandevice *wlandev)
{ {
cfg80211_disconnected(wlandev->netdev, 0, NULL, cfg80211_disconnected(wlandev->netdev, 0, NULL,
0, false, GFP_KERNEL); 0, false, GFP_KERNEL);
} }
void prism2_roamed(wlandevice_t *wlandev) void prism2_roamed(struct wlandevice *wlandev)
{ {
cfg80211_roamed(wlandev->netdev, NULL, wlandev->bssid, cfg80211_roamed(wlandev->netdev, NULL, wlandev->bssid,
NULL, 0, NULL, 0, GFP_KERNEL); NULL, 0, NULL, 0, GFP_KERNEL);
...@@ -689,7 +689,7 @@ static const struct cfg80211_ops prism2_usb_cfg_ops = { ...@@ -689,7 +689,7 @@ static const struct cfg80211_ops prism2_usb_cfg_ops = {
}; };
/* Functions to create/free wiphy interface */ /* Functions to create/free wiphy interface */
static struct wiphy *wlan_create_wiphy(struct device *dev, wlandevice_t *wlandev) static struct wiphy *wlan_create_wiphy(struct device *dev, struct wlandevice *wlandev)
{ {
struct wiphy *wiphy; struct wiphy *wiphy;
struct prism2_wiphy_private *priv; struct prism2_wiphy_private *priv;
......
...@@ -1273,7 +1273,7 @@ typedef struct hfa384x { ...@@ -1273,7 +1273,7 @@ typedef struct hfa384x {
int join_retries; /* number of join retries till we fail */ int join_retries; /* number of join retries till we fail */
hfa384x_JoinRequest_data_t joinreq; /* join request saved data */ hfa384x_JoinRequest_data_t joinreq; /* join request saved data */
wlandevice_t *wlandev; struct wlandevice *wlandev;
/* Timer to allow for the deferred processing of linkstatus messages */ /* Timer to allow for the deferred processing of linkstatus messages */
struct work_struct link_bh; struct work_struct link_bh;
...@@ -1410,7 +1410,7 @@ int ...@@ -1410,7 +1410,7 @@ int
hfa384x_drvr_txframe(hfa384x_t *hw, struct sk_buff *skb, hfa384x_drvr_txframe(hfa384x_t *hw, struct sk_buff *skb,
union p80211_hdr *p80211_hdr, union p80211_hdr *p80211_hdr,
struct p80211_metawep *p80211_wep); struct p80211_metawep *p80211_wep);
void hfa384x_tx_timeout(wlandevice_t *wlandev); void hfa384x_tx_timeout(struct wlandevice *wlandev);
int hfa384x_cmd_initialize(hfa384x_t *hw); int hfa384x_cmd_initialize(hfa384x_t *hw);
int hfa384x_cmd_enable(hfa384x_t *hw, u16 macport); int hfa384x_cmd_enable(hfa384x_t *hw, u16 macport);
......
...@@ -154,7 +154,7 @@ static void dbprint_urb(struct urb *urb); ...@@ -154,7 +154,7 @@ static void dbprint_urb(struct urb *urb);
#endif #endif
static void static void
hfa384x_int_rxmonitor(wlandevice_t *wlandev, hfa384x_usb_rxfrm_t *rxfrm); hfa384x_int_rxmonitor(struct wlandevice *wlandev, hfa384x_usb_rxfrm_t *rxfrm);
static void hfa384x_usb_defer(struct work_struct *data); static void hfa384x_usb_defer(struct work_struct *data);
...@@ -169,11 +169,11 @@ static void hfa384x_ctlxout_callback(struct urb *urb); ...@@ -169,11 +169,11 @@ static void hfa384x_ctlxout_callback(struct urb *urb);
static void hfa384x_usbin_callback(struct urb *urb); static void hfa384x_usbin_callback(struct urb *urb);
static void static void
hfa384x_usbin_txcompl(wlandevice_t *wlandev, hfa384x_usbin_t *usbin); hfa384x_usbin_txcompl(struct wlandevice *wlandev, hfa384x_usbin_t *usbin);
static void hfa384x_usbin_rx(wlandevice_t *wlandev, struct sk_buff *skb); static void hfa384x_usbin_rx(struct wlandevice *wlandev, struct sk_buff *skb);
static void hfa384x_usbin_info(wlandevice_t *wlandev, hfa384x_usbin_t *usbin); static void hfa384x_usbin_info(struct wlandevice *wlandev, hfa384x_usbin_t *usbin);
static void hfa384x_usbin_ctlx(hfa384x_t *hw, hfa384x_usbin_t *usbin, static void hfa384x_usbin_ctlx(hfa384x_t *hw, hfa384x_usbin_t *usbin,
int urb_status); int urb_status);
...@@ -2656,7 +2656,7 @@ int hfa384x_drvr_txframe(hfa384x_t *hw, struct sk_buff *skb, ...@@ -2656,7 +2656,7 @@ int hfa384x_drvr_txframe(hfa384x_t *hw, struct sk_buff *skb,
return result; return result;
} }
void hfa384x_tx_timeout(wlandevice_t *wlandev) void hfa384x_tx_timeout(struct wlandevice *wlandev)
{ {
hfa384x_t *hw = wlandev->priv; hfa384x_t *hw = wlandev->priv;
unsigned long flags; unsigned long flags;
...@@ -2988,7 +2988,7 @@ static void hfa384x_usbctlxq_run(hfa384x_t *hw) ...@@ -2988,7 +2988,7 @@ static void hfa384x_usbctlxq_run(hfa384x_t *hw)
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
static void hfa384x_usbin_callback(struct urb *urb) static void hfa384x_usbin_callback(struct urb *urb)
{ {
wlandevice_t *wlandev = urb->context; struct wlandevice *wlandev = urb->context;
hfa384x_t *hw; hfa384x_t *hw;
hfa384x_usbin_t *usbin = (hfa384x_usbin_t *)urb->transfer_buffer; hfa384x_usbin_t *usbin = (hfa384x_usbin_t *)urb->transfer_buffer;
struct sk_buff *skb = NULL; struct sk_buff *skb = NULL;
...@@ -3285,7 +3285,7 @@ static void hfa384x_usbin_ctlx(hfa384x_t *hw, hfa384x_usbin_t *usbin, ...@@ -3285,7 +3285,7 @@ static void hfa384x_usbin_ctlx(hfa384x_t *hw, hfa384x_usbin_t *usbin,
* Call context: * Call context:
* interrupt * interrupt
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
static void hfa384x_usbin_txcompl(wlandevice_t *wlandev, static void hfa384x_usbin_txcompl(struct wlandevice *wlandev,
hfa384x_usbin_t *usbin) hfa384x_usbin_t *usbin)
{ {
u16 status; u16 status;
...@@ -3316,7 +3316,7 @@ static void hfa384x_usbin_txcompl(wlandevice_t *wlandev, ...@@ -3316,7 +3316,7 @@ static void hfa384x_usbin_txcompl(wlandevice_t *wlandev,
* Call context: * Call context:
* interrupt * interrupt
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
static void hfa384x_usbin_rx(wlandevice_t *wlandev, struct sk_buff *skb) static void hfa384x_usbin_rx(struct wlandevice *wlandev, struct sk_buff *skb)
{ {
hfa384x_usbin_t *usbin = (hfa384x_usbin_t *)skb->data; hfa384x_usbin_t *usbin = (hfa384x_usbin_t *)skb->data;
hfa384x_t *hw = wlandev->priv; hfa384x_t *hw = wlandev->priv;
...@@ -3416,7 +3416,7 @@ static void hfa384x_usbin_rx(wlandevice_t *wlandev, struct sk_buff *skb) ...@@ -3416,7 +3416,7 @@ static void hfa384x_usbin_rx(wlandevice_t *wlandev, struct sk_buff *skb)
* Call context: * Call context:
* interrupt * interrupt
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
static void hfa384x_int_rxmonitor(wlandevice_t *wlandev, static void hfa384x_int_rxmonitor(struct wlandevice *wlandev,
hfa384x_usb_rxfrm_t *rxfrm) hfa384x_usb_rxfrm_t *rxfrm)
{ {
hfa384x_rx_frame_t *rxdesc = &(rxfrm->desc); hfa384x_rx_frame_t *rxdesc = &(rxfrm->desc);
...@@ -3517,7 +3517,7 @@ static void hfa384x_int_rxmonitor(wlandevice_t *wlandev, ...@@ -3517,7 +3517,7 @@ static void hfa384x_int_rxmonitor(wlandevice_t *wlandev,
* Call context: * Call context:
* interrupt * interrupt
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
static void hfa384x_usbin_info(wlandevice_t *wlandev, hfa384x_usbin_t *usbin) static void hfa384x_usbin_info(struct wlandevice *wlandev, hfa384x_usbin_t *usbin)
{ {
usbin->infofrm.info.framelen = usbin->infofrm.info.framelen =
le16_to_cpu(usbin->infofrm.info.framelen); le16_to_cpu(usbin->infofrm.info.framelen);
...@@ -3542,7 +3542,7 @@ static void hfa384x_usbin_info(wlandevice_t *wlandev, hfa384x_usbin_t *usbin) ...@@ -3542,7 +3542,7 @@ static void hfa384x_usbin_info(wlandevice_t *wlandev, hfa384x_usbin_t *usbin)
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
static void hfa384x_usbout_callback(struct urb *urb) static void hfa384x_usbout_callback(struct urb *urb)
{ {
wlandevice_t *wlandev = urb->context; struct wlandevice *wlandev = urb->context;
#ifdef DEBUG_USB #ifdef DEBUG_USB
dbprint_urb(urb); dbprint_urb(urb);
......
...@@ -104,7 +104,7 @@ static const u8 oui_8021h[] = { 0x00, 0x00, 0xf8 }; ...@@ -104,7 +104,7 @@ static const u8 oui_8021h[] = { 0x00, 0x00, 0xf8 };
* May be called in interrupt or non-interrupt context * May be called in interrupt or non-interrupt context
*---------------------------------------------------------------- *----------------------------------------------------------------
*/ */
int skb_ether_to_p80211(wlandevice_t *wlandev, u32 ethconv, int skb_ether_to_p80211(struct wlandevice *wlandev, u32 ethconv,
struct sk_buff *skb, union p80211_hdr *p80211_hdr, struct sk_buff *skb, union p80211_hdr *p80211_hdr,
struct p80211_metawep *p80211_wep) struct p80211_metawep *p80211_wep)
{ {
...@@ -232,7 +232,7 @@ int skb_ether_to_p80211(wlandevice_t *wlandev, u32 ethconv, ...@@ -232,7 +232,7 @@ int skb_ether_to_p80211(wlandevice_t *wlandev, u32 ethconv,
} }
/* jkriegl: from orinoco, modified */ /* jkriegl: from orinoco, modified */
static void orinoco_spy_gather(wlandevice_t *wlandev, char *mac, static void orinoco_spy_gather(struct wlandevice *wlandev, char *mac,
struct p80211_rxmeta *rxmeta) struct p80211_rxmeta *rxmeta)
{ {
int i; int i;
...@@ -274,7 +274,7 @@ static void orinoco_spy_gather(wlandevice_t *wlandev, char *mac, ...@@ -274,7 +274,7 @@ static void orinoco_spy_gather(wlandevice_t *wlandev, char *mac,
* May be called in interrupt or non-interrupt context * May be called in interrupt or non-interrupt context
*---------------------------------------------------------------- *----------------------------------------------------------------
*/ */
int skb_p80211_to_ether(wlandevice_t *wlandev, u32 ethconv, int skb_p80211_to_ether(struct wlandevice *wlandev, u32 ethconv,
struct sk_buff *skb) struct sk_buff *skb)
{ {
netdevice_t *netdev = wlandev->netdev; netdevice_t *netdev = wlandev->netdev;
......
...@@ -101,7 +101,7 @@ static int p80211knetdev_do_ioctl(netdevice_t *dev, struct ifreq *ifr, ...@@ -101,7 +101,7 @@ static int p80211knetdev_do_ioctl(netdevice_t *dev, struct ifreq *ifr,
int cmd); int cmd);
static int p80211knetdev_set_mac_address(netdevice_t *dev, void *addr); static int p80211knetdev_set_mac_address(netdevice_t *dev, void *addr);
static void p80211knetdev_tx_timeout(netdevice_t *netdev); static void p80211knetdev_tx_timeout(netdevice_t *netdev);
static int p80211_rx_typedrop(wlandevice_t *wlandev, u16 fc); static int p80211_rx_typedrop(struct wlandevice *wlandev, u16 fc);
int wlan_watchdog = 5000; int wlan_watchdog = 5000;
module_param(wlan_watchdog, int, 0644); module_param(wlan_watchdog, int, 0644);
...@@ -149,7 +149,7 @@ static int p80211knetdev_init(netdevice_t *netdev) ...@@ -149,7 +149,7 @@ static int p80211knetdev_init(netdevice_t *netdev)
static int p80211knetdev_open(netdevice_t *netdev) static int p80211knetdev_open(netdevice_t *netdev)
{ {
int result = 0; /* success */ int result = 0; /* success */
wlandevice_t *wlandev = netdev->ml_priv; struct wlandevice *wlandev = netdev->ml_priv;
/* Check to make sure the MSD is running */ /* Check to make sure the MSD is running */
if (wlandev->msdstate != WLAN_MSD_RUNNING) if (wlandev->msdstate != WLAN_MSD_RUNNING)
...@@ -184,7 +184,7 @@ static int p80211knetdev_open(netdevice_t *netdev) ...@@ -184,7 +184,7 @@ static int p80211knetdev_open(netdevice_t *netdev)
static int p80211knetdev_stop(netdevice_t *netdev) static int p80211knetdev_stop(netdevice_t *netdev)
{ {
int result = 0; int result = 0;
wlandevice_t *wlandev = netdev->ml_priv; struct wlandevice *wlandev = netdev->ml_priv;
if (wlandev->close) if (wlandev->close)
result = wlandev->close(wlandev); result = wlandev->close(wlandev);
...@@ -208,7 +208,7 @@ static int p80211knetdev_stop(netdevice_t *netdev) ...@@ -208,7 +208,7 @@ static int p80211knetdev_stop(netdevice_t *netdev)
* Side effects: * Side effects:
* *
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
void p80211netdev_rx(wlandevice_t *wlandev, struct sk_buff *skb) void p80211netdev_rx(struct wlandevice *wlandev, struct sk_buff *skb)
{ {
/* Enqueue for post-irq processing */ /* Enqueue for post-irq processing */
skb_queue_tail(&wlandev->nsd_rxq, skb); skb_queue_tail(&wlandev->nsd_rxq, skb);
...@@ -227,7 +227,7 @@ void p80211netdev_rx(wlandevice_t *wlandev, struct sk_buff *skb) ...@@ -227,7 +227,7 @@ void p80211netdev_rx(wlandevice_t *wlandev, struct sk_buff *skb)
* CONV_TO_ETHER_FAILED if conversion failed * CONV_TO_ETHER_FAILED if conversion failed
* CONV_TO_ETHER_SKIPPED if frame is ignored * CONV_TO_ETHER_SKIPPED if frame is ignored
*/ */
static int p80211_convert_to_ether(wlandevice_t *wlandev, struct sk_buff *skb) static int p80211_convert_to_ether(struct wlandevice *wlandev, struct sk_buff *skb)
{ {
struct p80211_hdr_a3 *hdr; struct p80211_hdr_a3 *hdr;
...@@ -265,7 +265,7 @@ static int p80211_convert_to_ether(wlandevice_t *wlandev, struct sk_buff *skb) ...@@ -265,7 +265,7 @@ static int p80211_convert_to_ether(wlandevice_t *wlandev, struct sk_buff *skb)
*/ */
static void p80211netdev_rx_bh(unsigned long arg) static void p80211netdev_rx_bh(unsigned long arg)
{ {
wlandevice_t *wlandev = (wlandevice_t *) arg; struct wlandevice *wlandev = (struct wlandevice *) arg;
struct sk_buff *skb = NULL; struct sk_buff *skb = NULL;
netdevice_t *dev = wlandev->netdev; netdevice_t *dev = wlandev->netdev;
...@@ -322,7 +322,7 @@ static int p80211knetdev_hard_start_xmit(struct sk_buff *skb, ...@@ -322,7 +322,7 @@ static int p80211knetdev_hard_start_xmit(struct sk_buff *skb,
{ {
int result = 0; int result = 0;
int txresult = -1; int txresult = -1;
wlandevice_t *wlandev = netdev->ml_priv; struct wlandevice *wlandev = netdev->ml_priv;
union p80211_hdr p80211_hdr; union p80211_hdr p80211_hdr;
struct p80211_metawep p80211_wep; struct p80211_metawep p80211_wep;
...@@ -448,7 +448,7 @@ static int p80211knetdev_hard_start_xmit(struct sk_buff *skb, ...@@ -448,7 +448,7 @@ static int p80211knetdev_hard_start_xmit(struct sk_buff *skb,
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
static void p80211knetdev_set_multicast_list(netdevice_t *dev) static void p80211knetdev_set_multicast_list(netdevice_t *dev)
{ {
wlandevice_t *wlandev = dev->ml_priv; struct wlandevice *wlandev = dev->ml_priv;
/* TODO: real multicast support as well */ /* TODO: real multicast support as well */
...@@ -459,7 +459,7 @@ static void p80211knetdev_set_multicast_list(netdevice_t *dev) ...@@ -459,7 +459,7 @@ static void p80211knetdev_set_multicast_list(netdevice_t *dev)
#ifdef SIOCETHTOOL #ifdef SIOCETHTOOL
static int p80211netdev_ethtool(wlandevice_t *wlandev, void __user *useraddr) static int p80211netdev_ethtool(struct wlandevice *wlandev, void __user *useraddr)
{ {
u32 ethcmd; u32 ethcmd;
struct ethtool_drvinfo info; struct ethtool_drvinfo info;
...@@ -535,7 +535,7 @@ static int p80211knetdev_do_ioctl(netdevice_t *dev, struct ifreq *ifr, int cmd) ...@@ -535,7 +535,7 @@ static int p80211knetdev_do_ioctl(netdevice_t *dev, struct ifreq *ifr, int cmd)
{ {
int result = 0; int result = 0;
struct p80211ioctl_req *req = (struct p80211ioctl_req *) ifr; struct p80211ioctl_req *req = (struct p80211ioctl_req *) ifr;
wlandevice_t *wlandev = dev->ml_priv; struct wlandevice *wlandev = dev->ml_priv;
u8 *msgbuf; u8 *msgbuf;
netdev_dbg(dev, "rx'd ioctl, cmd=%d, len=%d\n", cmd, req->len); netdev_dbg(dev, "rx'd ioctl, cmd=%d, len=%d\n", cmd, req->len);
...@@ -633,7 +633,7 @@ static int p80211knetdev_set_mac_address(netdevice_t *dev, void *addr) ...@@ -633,7 +633,7 @@ static int p80211knetdev_set_mac_address(netdevice_t *dev, void *addr)
dot11req.msgcode = DIDmsg_dot11req_mibset; dot11req.msgcode = DIDmsg_dot11req_mibset;
dot11req.msglen = sizeof(struct p80211msg_dot11req_mibset); dot11req.msglen = sizeof(struct p80211msg_dot11req_mibset);
memcpy(dot11req.devname, memcpy(dot11req.devname,
((wlandevice_t *) dev->ml_priv)->name, WLAN_DEVNAMELEN_MAX - 1); ((struct wlandevice *) dev->ml_priv)->name, WLAN_DEVNAMELEN_MAX - 1);
/* Set up the mibattribute argument */ /* Set up the mibattribute argument */
mibattr->did = DIDmsg_dot11req_mibset_mibattribute; mibattr->did = DIDmsg_dot11req_mibset_mibattribute;
...@@ -717,7 +717,7 @@ static const struct net_device_ops p80211_netdev_ops = { ...@@ -717,7 +717,7 @@ static const struct net_device_ops p80211_netdev_ops = {
* compiled drivers, this function will be called in the * compiled drivers, this function will be called in the
* context of the kernel startup code. * context of the kernel startup code.
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
int wlan_setup(wlandevice_t *wlandev, struct device *physdev) int wlan_setup(struct wlandevice *wlandev, struct device *physdev)
{ {
int result = 0; int result = 0;
netdevice_t *netdev; netdevice_t *netdev;
...@@ -783,7 +783,7 @@ int wlan_setup(wlandevice_t *wlandev, struct device *physdev) ...@@ -783,7 +783,7 @@ int wlan_setup(wlandevice_t *wlandev, struct device *physdev)
* compiled drivers, this function will be called in the * compiled drivers, this function will be called in the
* context of the kernel startup code. * context of the kernel startup code.
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
void wlan_unsetup(wlandevice_t *wlandev) void wlan_unsetup(struct wlandevice *wlandev)
{ {
struct wireless_dev *wdev; struct wireless_dev *wdev;
...@@ -817,7 +817,7 @@ void wlan_unsetup(wlandevice_t *wlandev) ...@@ -817,7 +817,7 @@ void wlan_unsetup(wlandevice_t *wlandev)
* Call Context: * Call Context:
* Can be either interrupt or not. * Can be either interrupt or not.
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
int register_wlandev(wlandevice_t *wlandev) int register_wlandev(struct wlandevice *wlandev)
{ {
return register_netdev(wlandev->netdev); return register_netdev(wlandev->netdev);
} }
...@@ -839,7 +839,7 @@ int register_wlandev(wlandevice_t *wlandev) ...@@ -839,7 +839,7 @@ int register_wlandev(wlandevice_t *wlandev)
* Call Context: * Call Context:
* Can be either interrupt or not. * Can be either interrupt or not.
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
int unregister_wlandev(wlandevice_t *wlandev) int unregister_wlandev(struct wlandevice *wlandev)
{ {
struct sk_buff *skb; struct sk_buff *skb;
...@@ -882,7 +882,7 @@ int unregister_wlandev(wlandevice_t *wlandev) ...@@ -882,7 +882,7 @@ int unregister_wlandev(wlandevice_t *wlandev)
* Call context: * Call context:
* Usually interrupt. * Usually interrupt.
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
void p80211netdev_hwremoved(wlandevice_t *wlandev) void p80211netdev_hwremoved(struct wlandevice *wlandev)
{ {
wlandev->hwremoved = 1; wlandev->hwremoved = 1;
if (wlandev->state == WLAN_DEVICE_OPEN) if (wlandev->state == WLAN_DEVICE_OPEN)
...@@ -912,7 +912,7 @@ void p80211netdev_hwremoved(wlandevice_t *wlandev) ...@@ -912,7 +912,7 @@ void p80211netdev_hwremoved(wlandevice_t *wlandev)
* Call context: * Call context:
* interrupt * interrupt
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
static int p80211_rx_typedrop(wlandevice_t *wlandev, u16 fc) static int p80211_rx_typedrop(struct wlandevice *wlandev, u16 fc)
{ {
u16 ftype; u16 ftype;
u16 fstype; u16 fstype;
...@@ -1073,7 +1073,7 @@ static int p80211_rx_typedrop(wlandevice_t *wlandev, u16 fc) ...@@ -1073,7 +1073,7 @@ static int p80211_rx_typedrop(wlandevice_t *wlandev, u16 fc)
static void p80211knetdev_tx_timeout(netdevice_t *netdev) static void p80211knetdev_tx_timeout(netdevice_t *netdev)
{ {
wlandevice_t *wlandev = netdev->ml_priv; struct wlandevice *wlandev = netdev->ml_priv;
if (wlandev->tx_timeout) { if (wlandev->tx_timeout) {
wlandev->tx_timeout(wlandev); wlandev->tx_timeout(wlandev);
......
...@@ -157,7 +157,7 @@ extern int wlan_watchdog; ...@@ -157,7 +157,7 @@ extern int wlan_watchdog;
extern int wlan_wext_write; extern int wlan_wext_write;
/* WLAN device type */ /* WLAN device type */
typedef struct wlandevice { struct wlandevice {
void *priv; /* private data for MSD */ void *priv; /* private data for MSD */
/* Subsystem State */ /* Subsystem State */
...@@ -222,19 +222,19 @@ typedef struct wlandevice { ...@@ -222,19 +222,19 @@ typedef struct wlandevice {
u8 spy_number; u8 spy_number;
char spy_address[IW_MAX_SPY][ETH_ALEN]; char spy_address[IW_MAX_SPY][ETH_ALEN];
struct iw_quality spy_stat[IW_MAX_SPY]; struct iw_quality spy_stat[IW_MAX_SPY];
} wlandevice_t; };
/* WEP stuff */ /* WEP stuff */
int wep_change_key(wlandevice_t *wlandev, int keynum, u8 *key, int keylen); int wep_change_key(struct wlandevice *wlandev, int keynum, u8 *key, int keylen);
int wep_decrypt(wlandevice_t *wlandev, u8 *buf, u32 len, int key_override, int wep_decrypt(struct wlandevice *wlandev, u8 *buf, u32 len, int key_override,
u8 *iv, u8 *icv); u8 *iv, u8 *icv);
int wep_encrypt(wlandevice_t *wlandev, u8 *buf, u8 *dst, u32 len, int keynum, int wep_encrypt(struct wlandevice *wlandev, u8 *buf, u8 *dst, u32 len, int keynum,
u8 *iv, u8 *icv); u8 *iv, u8 *icv);
int wlan_setup(wlandevice_t *wlandev, struct device *physdev); int wlan_setup(struct wlandevice *wlandev, struct device *physdev);
void wlan_unsetup(wlandevice_t *wlandev); void wlan_unsetup(struct wlandevice *wlandev);
int register_wlandev(wlandevice_t *wlandev); int register_wlandev(struct wlandevice *wlandev);
int unregister_wlandev(wlandevice_t *wlandev); int unregister_wlandev(struct wlandevice *wlandev);
void p80211netdev_rx(wlandevice_t *wlandev, struct sk_buff *skb); void p80211netdev_rx(struct wlandevice *wlandev, struct sk_buff *skb);
void p80211netdev_hwremoved(wlandevice_t *wlandev); void p80211netdev_hwremoved(struct wlandevice *wlandev);
#endif #endif
...@@ -72,8 +72,8 @@ ...@@ -72,8 +72,8 @@
#include "p80211metastruct.h" #include "p80211metastruct.h"
#include "p80211req.h" #include "p80211req.h"
static void p80211req_handlemsg(wlandevice_t *wlandev, struct p80211msg *msg); static void p80211req_handlemsg(struct wlandevice *wlandev, struct p80211msg *msg);
static void p80211req_mibset_mibget(wlandevice_t *wlandev, static void p80211req_mibset_mibget(struct wlandevice *wlandev,
struct p80211msg_dot11req_mibget *mib_msg, struct p80211msg_dot11req_mibget *mib_msg,
int isget); int isget);
...@@ -108,7 +108,7 @@ static void p80211req_handle_action(struct wlandevice *wlandev, u32 *data, ...@@ -108,7 +108,7 @@ static void p80211req_handle_action(struct wlandevice *wlandev, u32 *data,
* Potentially blocks the caller, so it's a good idea to * Potentially blocks the caller, so it's a good idea to
* not call this function from an interrupt context. * not call this function from an interrupt context.
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
int p80211req_dorequest(wlandevice_t *wlandev, u8 *msgbuf) int p80211req_dorequest(struct wlandevice *wlandev, u8 *msgbuf)
{ {
struct p80211msg *msg = (struct p80211msg *) msgbuf; struct p80211msg *msg = (struct p80211msg *) msgbuf;
...@@ -164,7 +164,7 @@ int p80211req_dorequest(wlandevice_t *wlandev, u8 *msgbuf) ...@@ -164,7 +164,7 @@ int p80211req_dorequest(wlandevice_t *wlandev, u8 *msgbuf)
* Call context: * Call context:
* Process thread * Process thread
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
static void p80211req_handlemsg(wlandevice_t *wlandev, struct p80211msg *msg) static void p80211req_handlemsg(struct wlandevice *wlandev, struct p80211msg *msg)
{ {
switch (msg->msgcode) { switch (msg->msgcode) {
...@@ -191,7 +191,7 @@ static void p80211req_handlemsg(wlandevice_t *wlandev, struct p80211msg *msg) ...@@ -191,7 +191,7 @@ static void p80211req_handlemsg(wlandevice_t *wlandev, struct p80211msg *msg)
} /* switch msg->msgcode */ } /* switch msg->msgcode */
} }
static void p80211req_mibset_mibget(wlandevice_t *wlandev, static void p80211req_mibset_mibget(struct wlandevice *wlandev,
struct p80211msg_dot11req_mibget *mib_msg, struct p80211msg_dot11req_mibget *mib_msg,
int isget) int isget)
{ {
......
...@@ -48,6 +48,6 @@ ...@@ -48,6 +48,6 @@
#ifndef _LINUX_P80211REQ_H #ifndef _LINUX_P80211REQ_H
#define _LINUX_P80211REQ_H #define _LINUX_P80211REQ_H
int p80211req_dorequest(wlandevice_t *wlandev, u8 *msgbuf); int p80211req_dorequest(struct wlandevice *wlandev, u8 *msgbuf);
#endif #endif
...@@ -119,7 +119,7 @@ static const u32 wep_crc32_table[256] = { ...@@ -119,7 +119,7 @@ static const u32 wep_crc32_table[256] = {
/* keylen in bytes! */ /* keylen in bytes! */
int wep_change_key(wlandevice_t *wlandev, int keynum, u8 *key, int keylen) int wep_change_key(struct wlandevice *wlandev, int keynum, u8 *key, int keylen)
{ {
if (keylen < 0) if (keylen < 0)
return -1; return -1;
...@@ -143,7 +143,7 @@ int wep_change_key(wlandevice_t *wlandev, int keynum, u8 *key, int keylen) ...@@ -143,7 +143,7 @@ int wep_change_key(wlandevice_t *wlandev, int keynum, u8 *key, int keylen)
* 4-byte IV at start of buffer, 4-byte ICV at end of buffer. * 4-byte IV at start of buffer, 4-byte ICV at end of buffer.
* if successful, buf start is payload begin, length -= 8; * if successful, buf start is payload begin, length -= 8;
*/ */
int wep_decrypt(wlandevice_t *wlandev, u8 *buf, u32 len, int key_override, int wep_decrypt(struct wlandevice *wlandev, u8 *buf, u32 len, int key_override,
u8 *iv, u8 *icv) u8 *iv, u8 *icv)
{ {
u32 i, j, k, crc, keylen; u32 i, j, k, crc, keylen;
...@@ -217,7 +217,7 @@ int wep_decrypt(wlandevice_t *wlandev, u8 *buf, u32 len, int key_override, ...@@ -217,7 +217,7 @@ int wep_decrypt(wlandevice_t *wlandev, u8 *buf, u32 len, int key_override,
} }
/* encrypts in-place. */ /* encrypts in-place. */
int wep_encrypt(wlandevice_t *wlandev, u8 *buf, u8 *dst, u32 len, int keynum, int wep_encrypt(struct wlandevice *wlandev, u8 *buf, u8 *dst, u32 len, int keynum,
u8 *iv, u8 *icv) u8 *iv, u8 *icv)
{ {
u32 i, j, k, crc, keylen; u32 i, j, k, crc, keylen;
......
...@@ -161,13 +161,13 @@ static hfa384x_caplevel_t priid; ...@@ -161,13 +161,13 @@ static hfa384x_caplevel_t priid;
/* Local Function Declarations */ /* Local Function Declarations */
static int prism2_fwapply(const struct ihex_binrec *rfptr, static int prism2_fwapply(const struct ihex_binrec *rfptr,
wlandevice_t *wlandev); struct wlandevice *wlandev);
static int read_fwfile(const struct ihex_binrec *rfptr); static int read_fwfile(const struct ihex_binrec *rfptr);
static int mkimage(struct imgchunk *clist, unsigned int *ccnt); static int mkimage(struct imgchunk *clist, unsigned int *ccnt);
static int read_cardpda(struct pda *pda, wlandevice_t *wlandev); static int read_cardpda(struct pda *pda, struct wlandevice *wlandev);
static int mkpdrlist(struct pda *pda); static int mkpdrlist(struct pda *pda);
...@@ -177,7 +177,7 @@ static int plugimage(struct imgchunk *fchunk, unsigned int nfchunks, ...@@ -177,7 +177,7 @@ static int plugimage(struct imgchunk *fchunk, unsigned int nfchunks,
static int crcimage(struct imgchunk *fchunk, unsigned int nfchunks, static int crcimage(struct imgchunk *fchunk, unsigned int nfchunks,
struct s3crcrec *s3crc, unsigned int ns3crc); struct s3crcrec *s3crc, unsigned int ns3crc);
static int writeimage(wlandevice_t *wlandev, struct imgchunk *fchunk, static int writeimage(struct wlandevice *wlandev, struct imgchunk *fchunk,
unsigned int nfchunks); unsigned int nfchunks);
static void free_chunks(struct imgchunk *fchunk, unsigned int *nfchunks); static void free_chunks(struct imgchunk *fchunk, unsigned int *nfchunks);
...@@ -201,7 +201,7 @@ static int validate_identity(void); ...@@ -201,7 +201,7 @@ static int validate_identity(void);
* 0 - success * 0 - success
* ~0 - failure * ~0 - failure
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
static int prism2_fwtry(struct usb_device *udev, wlandevice_t *wlandev) static int prism2_fwtry(struct usb_device *udev, struct wlandevice *wlandev)
{ {
const struct firmware *fw_entry = NULL; const struct firmware *fw_entry = NULL;
...@@ -239,7 +239,7 @@ static int prism2_fwtry(struct usb_device *udev, wlandevice_t *wlandev) ...@@ -239,7 +239,7 @@ static int prism2_fwtry(struct usb_device *udev, wlandevice_t *wlandev)
* ~0 - failure * ~0 - failure
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
static int prism2_fwapply(const struct ihex_binrec *rfptr, static int prism2_fwapply(const struct ihex_binrec *rfptr,
wlandevice_t *wlandev) struct wlandevice *wlandev)
{ {
signed int result = 0; signed int result = 0;
struct p80211msg_dot11req_mibget getmsg; struct p80211msg_dot11req_mibget getmsg;
...@@ -766,7 +766,7 @@ static int plugimage(struct imgchunk *fchunk, unsigned int nfchunks, ...@@ -766,7 +766,7 @@ static int plugimage(struct imgchunk *fchunk, unsigned int nfchunks,
* 0 - success * 0 - success
* ~0 - failure (probably an errno) * ~0 - failure (probably an errno)
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
static int read_cardpda(struct pda *pda, wlandevice_t *wlandev) static int read_cardpda(struct pda *pda, struct wlandevice *wlandev)
{ {
int result = 0; int result = 0;
struct p80211msg_p2req_readpda *msg; struct p80211msg_p2req_readpda *msg;
...@@ -982,7 +982,7 @@ static int read_fwfile(const struct ihex_binrec *record) ...@@ -982,7 +982,7 @@ static int read_fwfile(const struct ihex_binrec *record)
* 0 success * 0 success
* ~0 failure * ~0 failure
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
static int writeimage(wlandevice_t *wlandev, struct imgchunk *fchunk, static int writeimage(struct wlandevice *wlandev, struct imgchunk *fchunk,
unsigned int nfchunks) unsigned int nfchunks)
{ {
int result = 0; int result = 0;
......
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
* process thread (usually) * process thread (usually)
* interrupt * interrupt
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
int prism2mgmt_scan(wlandevice_t *wlandev, void *msgp) int prism2mgmt_scan(struct wlandevice *wlandev, void *msgp)
{ {
int result = 0; int result = 0;
hfa384x_t *hw = wlandev->priv; hfa384x_t *hw = wlandev->priv;
...@@ -366,7 +366,7 @@ int prism2mgmt_scan(wlandevice_t *wlandev, void *msgp) ...@@ -366,7 +366,7 @@ int prism2mgmt_scan(wlandevice_t *wlandev, void *msgp)
* process thread (usually) * process thread (usually)
* interrupt * interrupt
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
int prism2mgmt_scan_results(wlandevice_t *wlandev, void *msgp) int prism2mgmt_scan_results(struct wlandevice *wlandev, void *msgp)
{ {
int result = 0; int result = 0;
struct p80211msg_dot11req_scan_results *req; struct p80211msg_dot11req_scan_results *req;
...@@ -525,7 +525,7 @@ int prism2mgmt_scan_results(wlandevice_t *wlandev, void *msgp) ...@@ -525,7 +525,7 @@ int prism2mgmt_scan_results(wlandevice_t *wlandev, void *msgp)
* process thread (usually) * process thread (usually)
* interrupt * interrupt
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
int prism2mgmt_start(wlandevice_t *wlandev, void *msgp) int prism2mgmt_start(struct wlandevice *wlandev, void *msgp)
{ {
int result = 0; int result = 0;
hfa384x_t *hw = wlandev->priv; hfa384x_t *hw = wlandev->priv;
...@@ -708,7 +708,7 @@ int prism2mgmt_start(wlandevice_t *wlandev, void *msgp) ...@@ -708,7 +708,7 @@ int prism2mgmt_start(wlandevice_t *wlandev, void *msgp)
* Call context: * Call context:
* process thread (usually) * process thread (usually)
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
int prism2mgmt_readpda(wlandevice_t *wlandev, void *msgp) int prism2mgmt_readpda(struct wlandevice *wlandev, void *msgp)
{ {
hfa384x_t *hw = wlandev->priv; hfa384x_t *hw = wlandev->priv;
struct p80211msg_p2req_readpda *msg = msgp; struct p80211msg_p2req_readpda *msg = msgp;
...@@ -774,7 +774,7 @@ int prism2mgmt_readpda(wlandevice_t *wlandev, void *msgp) ...@@ -774,7 +774,7 @@ int prism2mgmt_readpda(wlandevice_t *wlandev, void *msgp)
* Call context: * Call context:
* process thread (usually) * process thread (usually)
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
int prism2mgmt_ramdl_state(wlandevice_t *wlandev, void *msgp) int prism2mgmt_ramdl_state(struct wlandevice *wlandev, void *msgp)
{ {
hfa384x_t *hw = wlandev->priv; hfa384x_t *hw = wlandev->priv;
struct p80211msg_p2req_ramdl_state *msg = msgp; struct p80211msg_p2req_ramdl_state *msg = msgp;
...@@ -829,7 +829,7 @@ int prism2mgmt_ramdl_state(wlandevice_t *wlandev, void *msgp) ...@@ -829,7 +829,7 @@ int prism2mgmt_ramdl_state(wlandevice_t *wlandev, void *msgp)
* Call context: * Call context:
* process thread (usually) * process thread (usually)
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
int prism2mgmt_ramdl_write(wlandevice_t *wlandev, void *msgp) int prism2mgmt_ramdl_write(struct wlandevice *wlandev, void *msgp)
{ {
hfa384x_t *hw = wlandev->priv; hfa384x_t *hw = wlandev->priv;
struct p80211msg_p2req_ramdl_write *msg = msgp; struct p80211msg_p2req_ramdl_write *msg = msgp;
...@@ -890,7 +890,7 @@ int prism2mgmt_ramdl_write(wlandevice_t *wlandev, void *msgp) ...@@ -890,7 +890,7 @@ int prism2mgmt_ramdl_write(wlandevice_t *wlandev, void *msgp)
* Call context: * Call context:
* process thread (usually) * process thread (usually)
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
int prism2mgmt_flashdl_state(wlandevice_t *wlandev, void *msgp) int prism2mgmt_flashdl_state(struct wlandevice *wlandev, void *msgp)
{ {
int result = 0; int result = 0;
hfa384x_t *hw = wlandev->priv; hfa384x_t *hw = wlandev->priv;
...@@ -961,7 +961,7 @@ int prism2mgmt_flashdl_state(wlandevice_t *wlandev, void *msgp) ...@@ -961,7 +961,7 @@ int prism2mgmt_flashdl_state(wlandevice_t *wlandev, void *msgp)
* Call context: * Call context:
* process thread (usually) * process thread (usually)
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
int prism2mgmt_flashdl_write(wlandevice_t *wlandev, void *msgp) int prism2mgmt_flashdl_write(struct wlandevice *wlandev, void *msgp)
{ {
hfa384x_t *hw = wlandev->priv; hfa384x_t *hw = wlandev->priv;
struct p80211msg_p2req_flashdl_write *msg = msgp; struct p80211msg_p2req_flashdl_write *msg = msgp;
...@@ -1021,7 +1021,7 @@ int prism2mgmt_flashdl_write(wlandevice_t *wlandev, void *msgp) ...@@ -1021,7 +1021,7 @@ int prism2mgmt_flashdl_write(wlandevice_t *wlandev, void *msgp)
* process thread (usually) * process thread (usually)
* interrupt * interrupt
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
int prism2mgmt_autojoin(wlandevice_t *wlandev, void *msgp) int prism2mgmt_autojoin(struct wlandevice *wlandev, void *msgp)
{ {
hfa384x_t *hw = wlandev->priv; hfa384x_t *hw = wlandev->priv;
int result = 0; int result = 0;
...@@ -1092,7 +1092,7 @@ int prism2mgmt_autojoin(wlandevice_t *wlandev, void *msgp) ...@@ -1092,7 +1092,7 @@ int prism2mgmt_autojoin(wlandevice_t *wlandev, void *msgp)
* process thread (usually) * process thread (usually)
* interrupt * interrupt
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp) int prism2mgmt_wlansniff(struct wlandevice *wlandev, void *msgp)
{ {
int result = 0; int result = 0;
struct p80211msg_lnxreq_wlansniff *msg = msgp; struct p80211msg_lnxreq_wlansniff *msg = msgp;
......
...@@ -63,24 +63,24 @@ ...@@ -63,24 +63,24 @@
extern int prism2_reset_holdtime; extern int prism2_reset_holdtime;
extern int prism2_reset_settletime; extern int prism2_reset_settletime;
u32 prism2sta_ifstate(wlandevice_t *wlandev, u32 ifstate); u32 prism2sta_ifstate(struct wlandevice *wlandev, u32 ifstate);
void prism2sta_ev_info(wlandevice_t *wlandev, hfa384x_InfFrame_t *inf); void prism2sta_ev_info(struct wlandevice *wlandev, hfa384x_InfFrame_t *inf);
void prism2sta_ev_txexc(wlandevice_t *wlandev, u16 status); void prism2sta_ev_txexc(struct wlandevice *wlandev, u16 status);
void prism2sta_ev_tx(wlandevice_t *wlandev, u16 status); void prism2sta_ev_tx(struct wlandevice *wlandev, u16 status);
void prism2sta_ev_alloc(wlandevice_t *wlandev); void prism2sta_ev_alloc(struct wlandevice *wlandev);
int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp); int prism2mgmt_mibset_mibget(struct wlandevice *wlandev, void *msgp);
int prism2mgmt_scan(wlandevice_t *wlandev, void *msgp); int prism2mgmt_scan(struct wlandevice *wlandev, void *msgp);
int prism2mgmt_scan_results(wlandevice_t *wlandev, void *msgp); int prism2mgmt_scan_results(struct wlandevice *wlandev, void *msgp);
int prism2mgmt_start(wlandevice_t *wlandev, void *msgp); int prism2mgmt_start(struct wlandevice *wlandev, void *msgp);
int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp); int prism2mgmt_wlansniff(struct wlandevice *wlandev, void *msgp);
int prism2mgmt_readpda(wlandevice_t *wlandev, void *msgp); int prism2mgmt_readpda(struct wlandevice *wlandev, void *msgp);
int prism2mgmt_ramdl_state(wlandevice_t *wlandev, void *msgp); int prism2mgmt_ramdl_state(struct wlandevice *wlandev, void *msgp);
int prism2mgmt_ramdl_write(wlandevice_t *wlandev, void *msgp); int prism2mgmt_ramdl_write(struct wlandevice *wlandev, void *msgp);
int prism2mgmt_flashdl_state(wlandevice_t *wlandev, void *msgp); int prism2mgmt_flashdl_state(struct wlandevice *wlandev, void *msgp);
int prism2mgmt_flashdl_write(wlandevice_t *wlandev, void *msgp); int prism2mgmt_flashdl_write(struct wlandevice *wlandev, void *msgp);
int prism2mgmt_autojoin(wlandevice_t *wlandev, void *msgp); int prism2mgmt_autojoin(struct wlandevice *wlandev, void *msgp);
/*--------------------------------------------------------------- /*---------------------------------------------------------------
* conversion functions going between wlan message data types and * conversion functions going between wlan message data types and
...@@ -108,8 +108,8 @@ void prism2sta_commsqual_defer(struct work_struct *data); ...@@ -108,8 +108,8 @@ void prism2sta_commsqual_defer(struct work_struct *data);
void prism2sta_commsqual_timer(unsigned long data); void prism2sta_commsqual_timer(unsigned long data);
/* Interface callback functions, passing data back up to the cfg80211 layer */ /* Interface callback functions, passing data back up to the cfg80211 layer */
void prism2_connect_result(wlandevice_t *wlandev, u8 failed); void prism2_connect_result(struct wlandevice *wlandev, u8 failed);
void prism2_disconnected(wlandevice_t *wlandev); void prism2_disconnected(struct wlandevice *wlandev);
void prism2_roamed(wlandevice_t *wlandev); void prism2_roamed(struct wlandevice *wlandev);
#endif #endif
...@@ -87,61 +87,61 @@ struct mibrec { ...@@ -87,61 +87,61 @@ struct mibrec {
u16 parm3; u16 parm3;
int (*func)(struct mibrec *mib, int (*func)(struct mibrec *mib,
int isget, int isget,
wlandevice_t *wlandev, struct wlandevice *wlandev,
hfa384x_t *hw, hfa384x_t *hw,
struct p80211msg_dot11req_mibset *msg, void *data); struct p80211msg_dot11req_mibset *msg, void *data);
}; };
static int prism2mib_bytearea2pstr(struct mibrec *mib, static int prism2mib_bytearea2pstr(struct mibrec *mib,
int isget, int isget,
wlandevice_t *wlandev, struct wlandevice *wlandev,
hfa384x_t *hw, hfa384x_t *hw,
struct p80211msg_dot11req_mibset *msg, struct p80211msg_dot11req_mibset *msg,
void *data); void *data);
static int prism2mib_uint32(struct mibrec *mib, static int prism2mib_uint32(struct mibrec *mib,
int isget, int isget,
wlandevice_t *wlandev, struct wlandevice *wlandev,
hfa384x_t *hw, hfa384x_t *hw,
struct p80211msg_dot11req_mibset *msg, void *data); struct p80211msg_dot11req_mibset *msg, void *data);
static int prism2mib_flag(struct mibrec *mib, static int prism2mib_flag(struct mibrec *mib,
int isget, int isget,
wlandevice_t *wlandev, struct wlandevice *wlandev,
hfa384x_t *hw, hfa384x_t *hw,
struct p80211msg_dot11req_mibset *msg, void *data); struct p80211msg_dot11req_mibset *msg, void *data);
static int prism2mib_wepdefaultkey(struct mibrec *mib, static int prism2mib_wepdefaultkey(struct mibrec *mib,
int isget, int isget,
wlandevice_t *wlandev, struct wlandevice *wlandev,
hfa384x_t *hw, hfa384x_t *hw,
struct p80211msg_dot11req_mibset *msg, struct p80211msg_dot11req_mibset *msg,
void *data); void *data);
static int prism2mib_privacyinvoked(struct mibrec *mib, static int prism2mib_privacyinvoked(struct mibrec *mib,
int isget, int isget,
wlandevice_t *wlandev, struct wlandevice *wlandev,
hfa384x_t *hw, hfa384x_t *hw,
struct p80211msg_dot11req_mibset *msg, struct p80211msg_dot11req_mibset *msg,
void *data); void *data);
static int prism2mib_excludeunencrypted(struct mibrec *mib, static int prism2mib_excludeunencrypted(struct mibrec *mib,
int isget, int isget,
wlandevice_t *wlandev, struct wlandevice *wlandev,
hfa384x_t *hw, hfa384x_t *hw,
struct p80211msg_dot11req_mibset *msg, struct p80211msg_dot11req_mibset *msg,
void *data); void *data);
static int prism2mib_fragmentationthreshold(struct mibrec *mib, static int prism2mib_fragmentationthreshold(struct mibrec *mib,
int isget, int isget,
wlandevice_t *wlandev, struct wlandevice *wlandev,
hfa384x_t *hw, hfa384x_t *hw,
struct p80211msg_dot11req_mibset *msg, struct p80211msg_dot11req_mibset *msg,
void *data); void *data);
static int prism2mib_priv(struct mibrec *mib, static int prism2mib_priv(struct mibrec *mib,
int isget, int isget,
wlandevice_t *wlandev, struct wlandevice *wlandev,
hfa384x_t *hw, hfa384x_t *hw,
struct p80211msg_dot11req_mibset *msg, void *data); struct p80211msg_dot11req_mibset *msg, void *data);
...@@ -257,7 +257,7 @@ static struct mibrec mibtab[] = { ...@@ -257,7 +257,7 @@ static struct mibrec mibtab[] = {
* interrupt * interrupt
*/ */
int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp) int prism2mgmt_mibset_mibget(struct wlandevice *wlandev, void *msgp)
{ {
hfa384x_t *hw = wlandev->priv; hfa384x_t *hw = wlandev->priv;
int result, isget; int result, isget;
...@@ -373,7 +373,7 @@ int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp) ...@@ -373,7 +373,7 @@ int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp)
static int prism2mib_bytearea2pstr(struct mibrec *mib, static int prism2mib_bytearea2pstr(struct mibrec *mib,
int isget, int isget,
wlandevice_t *wlandev, struct wlandevice *wlandev,
hfa384x_t *hw, hfa384x_t *hw,
struct p80211msg_dot11req_mibset *msg, struct p80211msg_dot11req_mibset *msg,
void *data) void *data)
...@@ -423,7 +423,7 @@ static int prism2mib_bytearea2pstr(struct mibrec *mib, ...@@ -423,7 +423,7 @@ static int prism2mib_bytearea2pstr(struct mibrec *mib,
static int prism2mib_uint32(struct mibrec *mib, static int prism2mib_uint32(struct mibrec *mib,
int isget, int isget,
wlandevice_t *wlandev, struct wlandevice *wlandev,
hfa384x_t *hw, hfa384x_t *hw,
struct p80211msg_dot11req_mibset *msg, void *data) struct p80211msg_dot11req_mibset *msg, void *data)
{ {
...@@ -470,7 +470,7 @@ static int prism2mib_uint32(struct mibrec *mib, ...@@ -470,7 +470,7 @@ static int prism2mib_uint32(struct mibrec *mib,
static int prism2mib_flag(struct mibrec *mib, static int prism2mib_flag(struct mibrec *mib,
int isget, int isget,
wlandevice_t *wlandev, struct wlandevice *wlandev,
hfa384x_t *hw, hfa384x_t *hw,
struct p80211msg_dot11req_mibset *msg, void *data) struct p80211msg_dot11req_mibset *msg, void *data)
{ {
...@@ -527,7 +527,7 @@ static int prism2mib_flag(struct mibrec *mib, ...@@ -527,7 +527,7 @@ static int prism2mib_flag(struct mibrec *mib,
static int prism2mib_wepdefaultkey(struct mibrec *mib, static int prism2mib_wepdefaultkey(struct mibrec *mib,
int isget, int isget,
wlandevice_t *wlandev, struct wlandevice *wlandev,
hfa384x_t *hw, hfa384x_t *hw,
struct p80211msg_dot11req_mibset *msg, struct p80211msg_dot11req_mibset *msg,
void *data) void *data)
...@@ -577,7 +577,7 @@ static int prism2mib_wepdefaultkey(struct mibrec *mib, ...@@ -577,7 +577,7 @@ static int prism2mib_wepdefaultkey(struct mibrec *mib,
static int prism2mib_privacyinvoked(struct mibrec *mib, static int prism2mib_privacyinvoked(struct mibrec *mib,
int isget, int isget,
wlandevice_t *wlandev, struct wlandevice *wlandev,
hfa384x_t *hw, hfa384x_t *hw,
struct p80211msg_dot11req_mibset *msg, struct p80211msg_dot11req_mibset *msg,
void *data) void *data)
...@@ -619,7 +619,7 @@ static int prism2mib_privacyinvoked(struct mibrec *mib, ...@@ -619,7 +619,7 @@ static int prism2mib_privacyinvoked(struct mibrec *mib,
static int prism2mib_excludeunencrypted(struct mibrec *mib, static int prism2mib_excludeunencrypted(struct mibrec *mib,
int isget, int isget,
wlandevice_t *wlandev, struct wlandevice *wlandev,
hfa384x_t *hw, hfa384x_t *hw,
struct p80211msg_dot11req_mibset *msg, struct p80211msg_dot11req_mibset *msg,
void *data) void *data)
...@@ -655,7 +655,7 @@ static int prism2mib_excludeunencrypted(struct mibrec *mib, ...@@ -655,7 +655,7 @@ static int prism2mib_excludeunencrypted(struct mibrec *mib,
static int prism2mib_fragmentationthreshold(struct mibrec *mib, static int prism2mib_fragmentationthreshold(struct mibrec *mib,
int isget, int isget,
wlandevice_t *wlandev, struct wlandevice *wlandev,
hfa384x_t *hw, hfa384x_t *hw,
struct p80211msg_dot11req_mibset *msg, struct p80211msg_dot11req_mibset *msg,
void *data) void *data)
...@@ -701,7 +701,7 @@ static int prism2mib_fragmentationthreshold(struct mibrec *mib, ...@@ -701,7 +701,7 @@ static int prism2mib_fragmentationthreshold(struct mibrec *mib,
static int prism2mib_priv(struct mibrec *mib, static int prism2mib_priv(struct mibrec *mib,
int isget, int isget,
wlandevice_t *wlandev, struct wlandevice *wlandev,
hfa384x_t *hw, hfa384x_t *hw,
struct p80211msg_dot11req_mibset *msg, void *data) struct p80211msg_dot11req_mibset *msg, void *data)
{ {
......
This diff is collapsed.
...@@ -61,7 +61,7 @@ static int prism2sta_probe_usb(struct usb_interface *interface, ...@@ -61,7 +61,7 @@ static int prism2sta_probe_usb(struct usb_interface *interface,
{ {
struct usb_device *dev; struct usb_device *dev;
wlandevice_t *wlandev = NULL; struct wlandevice *wlandev = NULL;
hfa384x_t *hw = NULL; hfa384x_t *hw = NULL;
int result = 0; int result = 0;
...@@ -134,9 +134,9 @@ static int prism2sta_probe_usb(struct usb_interface *interface, ...@@ -134,9 +134,9 @@ static int prism2sta_probe_usb(struct usb_interface *interface,
static void prism2sta_disconnect_usb(struct usb_interface *interface) static void prism2sta_disconnect_usb(struct usb_interface *interface)
{ {
wlandevice_t *wlandev; struct wlandevice *wlandev;
wlandev = (wlandevice_t *)usb_get_intfdata(interface); wlandev = (struct wlandevice *)usb_get_intfdata(interface);
if (wlandev) { if (wlandev) {
LIST_HEAD(cleanlist); LIST_HEAD(cleanlist);
hfa384x_usbctlx_t *ctlx, *temp; hfa384x_usbctlx_t *ctlx, *temp;
...@@ -219,9 +219,9 @@ static int prism2sta_suspend(struct usb_interface *interface, ...@@ -219,9 +219,9 @@ static int prism2sta_suspend(struct usb_interface *interface,
pm_message_t message) pm_message_t message)
{ {
hfa384x_t *hw = NULL; hfa384x_t *hw = NULL;
wlandevice_t *wlandev; struct wlandevice *wlandev;
wlandev = (wlandevice_t *)usb_get_intfdata(interface); wlandev = (struct wlandevice *)usb_get_intfdata(interface);
if (!wlandev) if (!wlandev)
return -ENODEV; return -ENODEV;
...@@ -242,9 +242,9 @@ static int prism2sta_resume(struct usb_interface *interface) ...@@ -242,9 +242,9 @@ static int prism2sta_resume(struct usb_interface *interface)
{ {
int result = 0; int result = 0;
hfa384x_t *hw = NULL; hfa384x_t *hw = NULL;
wlandevice_t *wlandev; struct wlandevice *wlandev;
wlandev = (wlandevice_t *)usb_get_intfdata(interface); wlandev = (struct wlandevice *)usb_get_intfdata(interface);
if (!wlandev) if (!wlandev)
return -ENODEV; return -ENODEV;
......
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