/* The WIRELESS_EXT version, which is implemented by this driver. */
#define BCM43xx_WX_VERSION 18
-
-/* Define to enable a printk on each wx handler function invocation */
-//#define BCM43xx_WX_DEBUG
-
-
-#ifdef BCM43xx_WX_DEBUG
-# define printk_wx printk
-#else
-# define printk_wx(x...) do { /* nothing */ } while (0)
-#endif
-#define wx_enter() printk_wx(KERN_INFO PFX "WX handler called: %s\n", __FUNCTION__);
-
#define MAX_WX_STRING 80
char suffix[7] = { 0 };
int have_a = 0, have_b = 0, have_g = 0;
- wx_enter();
-
spin_lock_irqsave(&bcm->lock, flags);
nr_80211 = bcm43xx_num_80211_cores(bcm);
for (i = 0; i < nr_80211; i++) {
int freq;
int err = 0;
- wx_enter();
-
if ((data->freq.m >= 0) && (data->freq.m <= 1000)) {
channel = data->freq.m;
freq = bcm43xx_channel_to_freq(bcm, channel);
} else
bcm->current_core->radio->initial_channel = channel;
spin_unlock_irqrestore(&bcm->lock, flags);
- if (!err)
- printk_wx(KERN_INFO PFX "Selected channel: %d\n", channel);
return err;
}
int err = -ENODEV;
u16 channel;
- wx_enter();
-
spin_lock_irqsave(&bcm->lock, flags);
channel = bcm->current_core->radio->channel;
if (channel == 0xFF) {
unsigned long flags;
int mode;
- wx_enter();
-
mode = data->mode;
if (mode == IW_MODE_AUTO)
mode = BCM43xx_INITIAL_IWMODE;
struct bcm43xx_private *bcm = bcm43xx_priv(net_dev);
unsigned long flags;
- wx_enter();
-
spin_lock_irqsave(&bcm->lock, flags);
data->mode = bcm->ieee->iw_mode;
spin_unlock_irqrestore(&bcm->lock, flags);
union iwreq_data *data,
char *extra)
{
- wx_enter();
/*TODO*/
return 0;
}
union iwreq_data *data,
char *extra)
{
- wx_enter();
/*TODO*/
return 0;
}
unsigned long flags;
int i, j;
- wx_enter();
-
data->data.length = sizeof(*range);
memset(range, 0, sizeof(*range));
unsigned long flags;
size_t len;
- wx_enter();
-
spin_lock_irqsave(&bcm->lock, flags);
len = min((size_t)data->data.length, (size_t)IW_ESSID_MAX_SIZE);
memcpy(bcm->nick, extra, len);
unsigned long flags;
size_t len;
- wx_enter();
-
spin_lock_irqsave(&bcm->lock, flags);
len = strlen(bcm->nick) + 1;
memcpy(extra, bcm->nick, len);
unsigned long flags;
int err = -EINVAL;
- wx_enter();
-
spin_lock_irqsave(&bcm->lock, flags);
if (data->rts.disabled) {
bcm->rts_threshold = BCM43xx_MAX_RTS_THRESHOLD;
struct bcm43xx_private *bcm = bcm43xx_priv(net_dev);
unsigned long flags;
- wx_enter();
-
spin_lock_irqsave(&bcm->lock, flags);
data->rts.value = bcm->rts_threshold;
data->rts.fixed = 0;
unsigned long flags;
int err = -EINVAL;
- wx_enter();
-
spin_lock_irqsave(&bcm->lock, flags);
if (data->frag.disabled) {
bcm->ieee->fts = MAX_FRAG_THRESHOLD;
struct bcm43xx_private *bcm = bcm43xx_priv(net_dev);
unsigned long flags;
- wx_enter();
-
spin_lock_irqsave(&bcm->lock, flags);
data->frag.value = bcm->ieee->fts;
data->frag.fixed = 0;
int err = -ENODEV;
u16 maxpower;
- wx_enter();
-
if ((data->txpower.flags & IW_TXPOW_TYPE) != IW_TXPOW_DBM) {
printk(PFX KERN_ERR "TX power not in dBm.\n");
return -EOPNOTSUPP;
unsigned long flags;
int err = -ENODEV;
- wx_enter();
-
spin_lock_irqsave(&bcm->lock, flags);
if (!bcm->initialized)
goto out_unlock;
union iwreq_data *data,
char *extra)
{
- wx_enter();
/*TODO*/
return 0;
}
union iwreq_data *data,
char *extra)
{
- wx_enter();
/*TODO*/
return 0;
}
struct bcm43xx_private *bcm = bcm43xx_priv(net_dev);
int err;
- wx_enter();
-
err = ieee80211_wx_set_encode(bcm->ieee, info, data, extra);
return err;
struct bcm43xx_private *bcm = bcm43xx_priv(net_dev);
int err;
- wx_enter();
-
err = ieee80211_wx_set_encodeext(bcm->ieee, info, data, extra);
return err;
struct bcm43xx_private *bcm = bcm43xx_priv(net_dev);
int err;
- wx_enter();
-
err = ieee80211_wx_get_encode(bcm->ieee, info, data, extra);
return err;
struct bcm43xx_private *bcm = bcm43xx_priv(net_dev);
int err;
- wx_enter();
-
err = ieee80211_wx_get_encodeext(bcm->ieee, info, data, extra);
return err;
union iwreq_data *data,
char *extra)
{
- wx_enter();
/*TODO*/
return 0;
}
union iwreq_data *data,
char *extra)
{
- wx_enter();
/*TODO*/
return 0;
}
unsigned long flags;
int mode, err = 0;
- wx_enter();
-
mode = *((int *)extra);
switch (mode) {
case 0:
unsigned long flags;
int mode;
- wx_enter();
-
spin_lock_irqsave(&bcm->lock, flags);
mode = bcm->current_core->radio->interfmode;
spin_unlock_irqrestore(&bcm->lock, flags);
unsigned long flags;
int on;
- wx_enter();
-
on = *((int *)extra);
spin_lock_irqsave(&bcm->lock, flags);
bcm->short_preamble = !!on;
unsigned long flags;
int on;
- wx_enter();
-
spin_lock_irqsave(&bcm->lock, flags);
on = bcm->short_preamble;
spin_unlock_irqrestore(&bcm->lock, flags);
unsigned long flags;
int on;
- wx_enter();
-
on = *((int *)extra);
spin_lock_irqsave(&bcm->lock, flags);
bcm->ieee->host_encrypt = !!on;
unsigned long flags;
int on;
- wx_enter();
-
spin_lock_irqsave(&bcm->lock, flags);
on = bcm->ieee->host_encrypt;
spin_unlock_irqrestore(&bcm->lock, flags);