Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35095
b: refs/heads/master
c: 67fd6b4
h: refs/heads/master
i:
  35093: 066f73e
  35091: 741ccc4
  35087: 15b0232
v: v3
  • Loading branch information
Pavel Machek authored and John W. Linville committed Jul 27, 2006
1 parent c08a9e4 commit cd16bc9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 26 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: 13dca9b87edebd5aa1d9ea5811bcf0fa1e975b52
refs/heads/master: 67fd6b45231362a2f1ed6c74281a901105ae7d3e
29 changes: 4 additions & 25 deletions trunk/drivers/net/wireless/ipw2200.c
Original file line number Diff line number Diff line change
Expand Up @@ -2667,7 +2667,7 @@ static void ipw_fw_dma_abort(struct ipw_priv *priv)

IPW_DEBUG_FW(">> :\n");

//set the Stop and Abort bit
/* set the Stop and Abort bit */
control = DMA_CONTROL_SMALL_CB_CONST_VALUE | DMA_CB_STOP_AND_ABORT;
ipw_write_reg32(priv, IPW_DMA_I_DMA_CONTROL, control);
priv->sram_desc.last_cb_index = 0;
Expand Down Expand Up @@ -3002,8 +3002,6 @@ static int ipw_load_ucode(struct ipw_priv *priv, u8 * data, size_t len)
if (rc < 0)
return rc;

// spin_lock_irqsave(&priv->lock, flags);

for (addr = IPW_SHARED_LOWER_BOUND;
addr < IPW_REGISTER_DOMAIN1_END; addr += 4) {
ipw_write32(priv, addr, 0);
Expand Down Expand Up @@ -3097,8 +3095,6 @@ static int ipw_load_ucode(struct ipw_priv *priv, u8 * data, size_t len)
firmware have problem getting alive resp. */
ipw_write_reg8(priv, IPW_BASEBAND_CONTROL_STATUS, 0);

// spin_unlock_irqrestore(&priv->lock, flags);

return rc;
}

Expand Down Expand Up @@ -6387,13 +6383,6 @@ static int ipw_wx_set_genie(struct net_device *dev,
(wrqu->data.length && extra == NULL))
return -EINVAL;

//mutex_lock(&priv->mutex);

//if (!ieee->wpa_enabled) {
// err = -EOPNOTSUPP;
// goto out;
//}

if (wrqu->data.length) {
buf = kmalloc(wrqu->data.length, GFP_KERNEL);
if (buf == NULL) {
Expand All @@ -6413,7 +6402,6 @@ static int ipw_wx_set_genie(struct net_device *dev,

ipw_wpa_assoc_frame(priv, ieee->wpa_ie, ieee->wpa_ie_len);
out:
//mutex_unlock(&priv->mutex);
return err;
}

Expand All @@ -6426,13 +6414,6 @@ static int ipw_wx_get_genie(struct net_device *dev,
struct ieee80211_device *ieee = priv->ieee;
int err = 0;

//mutex_lock(&priv->mutex);

//if (!ieee->wpa_enabled) {
// err = -EOPNOTSUPP;
// goto out;
//}

if (ieee->wpa_ie_len == 0 || ieee->wpa_ie == NULL) {
wrqu->data.length = 0;
goto out;
Expand All @@ -6447,7 +6428,6 @@ static int ipw_wx_get_genie(struct net_device *dev,
memcpy(extra, ieee->wpa_ie, ieee->wpa_ie_len);

out:
//mutex_unlock(&priv->mutex);
return err;
}

Expand Down Expand Up @@ -6558,7 +6538,6 @@ static int ipw_wx_set_auth(struct net_device *dev,
ieee->ieee802_1x = param->value;
break;

//case IW_AUTH_ROAMING_CONTROL:
case IW_AUTH_PRIVACY_INVOKED:
ieee->privacy_invoked = param->value;
break;
Expand Down Expand Up @@ -6680,7 +6659,7 @@ static int ipw_wx_set_mlme(struct net_device *dev,

switch (mlme->cmd) {
case IW_MLME_DEAUTH:
// silently ignore
/* silently ignore */
break;

case IW_MLME_DISASSOC:
Expand Down Expand Up @@ -9766,7 +9745,7 @@ static int ipw_wx_set_monitor(struct net_device *dev,
return 0;
}

#endif // CONFIG_IPW2200_MONITOR
#endif /* CONFIG_IPW2200_MONITOR */

static int ipw_wx_reset(struct net_device *dev,
struct iw_request_info *info,
Expand Down Expand Up @@ -10009,7 +9988,7 @@ static void init_sys_config(struct ipw_sys_config *sys_config)
sys_config->dot11g_auto_detection = 0;
sys_config->enable_cts_to_self = 0;
sys_config->bt_coexist_collision_thr = 0;
sys_config->pass_noise_stats_to_host = 1; //1 -- fix for 256
sys_config->pass_noise_stats_to_host = 1; /* 1 -- fix for 256 */
sys_config->silence_threshold = 0x1e;
}

Expand Down

0 comments on commit cd16bc9

Please sign in to comment.