Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66434
b: refs/heads/master
c: 6dbc9c8
h: refs/heads/master
v: v3
  • Loading branch information
Yoann Padioleau authored and David S. Miller committed Oct 10, 2007
1 parent a486eb0 commit 69b1135
Show file tree
Hide file tree
Showing 10 changed files with 88 additions and 88 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8951554dba0c7962ae72faece66e8f5085a777d6
refs/heads/master: 6dbc9c89fb242873bd3e83890e59da3d6e462025
14 changes: 7 additions & 7 deletions trunk/drivers/net/wireless/arlan-proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ static int arlan_sysctl_info(ctl_table * ctl, int write, struct file *filp,
goto final;
}
else
priva = arlan_device[devnum]->priv;
priva = netdev_priv(arlan_device[devnum]);

if (priva == NULL)
{
Expand Down Expand Up @@ -654,7 +654,7 @@ static int arlan_sysctl_info161719(ctl_table * ctl, int write, struct file *filp
goto final;
}
else
priva = arlan_device[devnum]->priv;
priva = netdev_priv(arlan_device[devnum]);
if (priva == NULL)
{
printk(KERN_WARNING " Could not find the device private in arlan procsys, bad\n ");
Expand Down Expand Up @@ -688,7 +688,7 @@ static int arlan_sysctl_infotxRing(ctl_table * ctl, int write, struct file *filp
goto final;
}
else
priva = arlan_device[devnum]->priv;
priva = netdev_priv(arlan_device[devnum]);
if (priva == NULL)
{
printk(KERN_WARNING " Could not find the device private in arlan procsys, bad\n ");
Expand Down Expand Up @@ -716,7 +716,7 @@ static int arlan_sysctl_inforxRing(ctl_table * ctl, int write, struct file *filp
pos += sprintf(arlan_drive_info + pos, "No device found here \n");
goto final;
} else
priva = arlan_device[devnum]->priv;
priva = netdev_priv(arlan_device[devnum]);
if (priva == NULL)
{
printk(KERN_WARNING " Could not find the device private in arlan procsys, bad\n ");
Expand Down Expand Up @@ -745,7 +745,7 @@ static int arlan_sysctl_info18(ctl_table * ctl, int write, struct file *filp,
goto final;
}
else
priva = arlan_device[devnum]->priv;
priva = netdev_priv(arlan_device[devnum]);
if (priva == NULL)
{
printk(KERN_WARNING " Could not find the device private in arlan procsys, bad\n ");
Expand Down Expand Up @@ -780,7 +780,7 @@ static int arlan_configure(ctl_table * ctl, int write, struct file *filp,
}
else if (arlan_device[devnum] != NULL)
{
priv = arlan_device[devnum]->priv;
priv = netdev_priv(arlan_device[devnum]);

arlan_command(arlan_device[devnum], ARLAN_COMMAND_CLEAN_AND_CONF);
}
Expand All @@ -805,7 +805,7 @@ static int arlan_sysctl_reset(ctl_table * ctl, int write, struct file *filp,
}
else if (arlan_device[devnum] != NULL)
{
priv = arlan_device[devnum]->priv;
priv = netdev_priv(arlan_device[devnum]);
arlan_command(arlan_device[devnum], ARLAN_COMMAND_CLEAN_AND_RESET);

} else
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/hostap/hostap_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ static int sandisk_enable_wireless(struct net_device *dev)
{
int res, ret = 0;
conf_reg_t reg;
struct hostap_interface *iface = dev->priv;
struct hostap_interface *iface = netdev_priv(dev);
local_info_t *local = iface->local;
tuple_t tuple;
cisparse_t *parse = NULL;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/hostap/hostap_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -3424,7 +3424,7 @@ static void prism2_suspend(struct net_device *dev)
struct local_info *local;
union iwreq_data wrqu;

iface = dev->priv;
iface = netdev_priv(dev);
local = iface->local;

/* Send disconnect event, e.g., to trigger reassociation after resume
Expand Down
14 changes: 7 additions & 7 deletions trunk/drivers/net/wireless/hostap/hostap_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -3088,7 +3088,7 @@ static int prism2_ioctl_priv_download(local_info_t *local, struct iw_point *p)
static int prism2_set_genericelement(struct net_device *dev, u8 *elem,
size_t len)
{
struct hostap_interface *iface = dev->priv;
struct hostap_interface *iface = netdev_priv(dev);
local_info_t *local = iface->local;
u8 *buf;

Expand Down Expand Up @@ -3116,7 +3116,7 @@ static int prism2_ioctl_siwauth(struct net_device *dev,
struct iw_request_info *info,
struct iw_param *data, char *extra)
{
struct hostap_interface *iface = dev->priv;
struct hostap_interface *iface = netdev_priv(dev);
local_info_t *local = iface->local;

switch (data->flags & IW_AUTH_INDEX) {
Expand Down Expand Up @@ -3182,7 +3182,7 @@ static int prism2_ioctl_giwauth(struct net_device *dev,
struct iw_request_info *info,
struct iw_param *data, char *extra)
{
struct hostap_interface *iface = dev->priv;
struct hostap_interface *iface = netdev_priv(dev);
local_info_t *local = iface->local;

switch (data->flags & IW_AUTH_INDEX) {
Expand Down Expand Up @@ -3221,7 +3221,7 @@ static int prism2_ioctl_siwencodeext(struct net_device *dev,
struct iw_request_info *info,
struct iw_point *erq, char *extra)
{
struct hostap_interface *iface = dev->priv;
struct hostap_interface *iface = netdev_priv(dev);
local_info_t *local = iface->local;
struct iw_encode_ext *ext = (struct iw_encode_ext *) extra;
int i, ret = 0;
Expand Down Expand Up @@ -3395,7 +3395,7 @@ static int prism2_ioctl_giwencodeext(struct net_device *dev,
struct iw_request_info *info,
struct iw_point *erq, char *extra)
{
struct hostap_interface *iface = dev->priv;
struct hostap_interface *iface = netdev_priv(dev);
local_info_t *local = iface->local;
struct ieee80211_crypt_data **crypt;
void *sta_ptr;
Expand Down Expand Up @@ -3716,7 +3716,7 @@ static int prism2_ioctl_giwgenie(struct net_device *dev,
struct iw_request_info *info,
struct iw_point *data, char *extra)
{
struct hostap_interface *iface = dev->priv;
struct hostap_interface *iface = netdev_priv(dev);
local_info_t *local = iface->local;
int len = local->generic_elem_len - 2;

Expand Down Expand Up @@ -3755,7 +3755,7 @@ static int prism2_ioctl_siwmlme(struct net_device *dev,
struct iw_request_info *info,
struct iw_point *data, char *extra)
{
struct hostap_interface *iface = dev->priv;
struct hostap_interface *iface = netdev_priv(dev);
local_info_t *local = iface->local;
struct iw_mlme *mlme = (struct iw_mlme *) extra;
u16 reason;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/orinoco_tmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ static int orinoco_tmd_init_one(struct pci_dev *pdev,
static void __devexit orinoco_tmd_remove_one(struct pci_dev *pdev)
{
struct net_device *dev = pci_get_drvdata(pdev);
struct orinoco_private *priv = dev->priv;
struct orinoco_private *priv = netdev_priv(dev);
struct orinoco_pci_card *card = priv->card;

unregister_netdev(dev);
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/net/wireless/prism54/isl_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1753,7 +1753,7 @@ prism54_get_oid(struct net_device *ndev, struct iw_request_info *info,
int rvalue;
enum oid_num_t n = dwrq->flags;

rvalue = mgt_get_request((islpci_private *) ndev->priv, n, 0, NULL, &r);
rvalue = mgt_get_request(netdev_priv(ndev), n, 0, NULL, &r);
dwrq->length = mgt_response_to_str(n, &r, extra);
if ((isl_oid[n].flags & OID_FLAG_TYPE) != OID_TYPE_U32)
kfree(r.ptr);
Expand All @@ -1766,7 +1766,7 @@ prism54_set_u32(struct net_device *ndev, struct iw_request_info *info,
{
u32 oid = uwrq[0], u = uwrq[1];

return mgt_set_request((islpci_private *) ndev->priv, oid, 0, &u);
return mgt_set_request(netdev_priv(ndev), oid, 0, &u);
}

static int
Expand All @@ -1775,7 +1775,7 @@ prism54_set_raw(struct net_device *ndev, struct iw_request_info *info,
{
u32 oid = dwrq->flags;

return mgt_set_request((islpci_private *) ndev->priv, oid, 0, extra);
return mgt_set_request(netdev_priv(ndev), oid, 0, extra);
}

void
Expand Down
Loading

0 comments on commit 69b1135

Please sign in to comment.