aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ipw2x00/ipw2100.c
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2009-08-20 14:48:03 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-28 14:40:28 -0400
commitb0a4e7d8a291de63f35b04464de9ab4a83d38a7c (patch)
treec95a79b15483070bf1ca92ddf7b7e9ba4d4af026 /drivers/net/wireless/ipw2x00/ipw2100.c
parent01a0ac417ce9b4f1216a266f2fd454cffefc5aee (diff)
libipw: switch from ieee80211_* to libipw_* naming policy
This eliminates the dual definition of ieee80211_channel (and possibly others), further clarifying who defines what and paving the way for inclusion of cfg80211.h. Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ipw2x00/ipw2100.c')
-rw-r--r--drivers/net/wireless/ipw2x00/ipw2100.c198
1 files changed, 99 insertions, 99 deletions
diff --git a/drivers/net/wireless/ipw2x00/ipw2100.c b/drivers/net/wireless/ipw2x00/ipw2100.c
index dee50ed0897d..33bdb20e9f1e 100644
--- a/drivers/net/wireless/ipw2x00/ipw2100.c
+++ b/drivers/net/wireless/ipw2x00/ipw2100.c
@@ -1673,7 +1673,7 @@ static int ipw2100_start_scan(struct ipw2100_priv *priv)
1673 return err; 1673 return err;
1674} 1674}
1675 1675
1676static const struct ieee80211_geo ipw_geos[] = { 1676static const struct libipw_geo ipw_geos[] = {
1677 { /* Restricted */ 1677 { /* Restricted */
1678 "---", 1678 "---",
1679 .bg_channels = 14, 1679 .bg_channels = 14,
@@ -1694,7 +1694,7 @@ static int ipw2100_up(struct ipw2100_priv *priv, int deferred)
1694 1694
1695 /* Age scan list entries found before suspend */ 1695 /* Age scan list entries found before suspend */
1696 if (priv->suspend_time) { 1696 if (priv->suspend_time) {
1697 ieee80211_networks_age(priv->ieee, priv->suspend_time); 1697 libipw_networks_age(priv->ieee, priv->suspend_time);
1698 priv->suspend_time = 0; 1698 priv->suspend_time = 0;
1699 } 1699 }
1700 1700
@@ -1752,11 +1752,11 @@ static int ipw2100_up(struct ipw2100_priv *priv, int deferred)
1752 } 1752 }
1753 1753
1754 /* Initialize the geo */ 1754 /* Initialize the geo */
1755 if (ieee80211_set_geo(priv->ieee, &ipw_geos[0])) { 1755 if (libipw_set_geo(priv->ieee, &ipw_geos[0])) {
1756 printk(KERN_WARNING DRV_NAME "Could not set geo\n"); 1756 printk(KERN_WARNING DRV_NAME "Could not set geo\n");
1757 return 0; 1757 return 0;
1758 } 1758 }
1759 priv->ieee->freq_band = IEEE80211_24GHZ_BAND; 1759 priv->ieee->freq_band = LIBIPW_24GHZ_BAND;
1760 1760
1761 lock = LOCK_NONE; 1761 lock = LOCK_NONE;
1762 if (ipw2100_set_ordinal(priv, IPW_ORD_PERS_DB_LOCK, &lock, &ord_len)) { 1762 if (ipw2100_set_ordinal(priv, IPW_ORD_PERS_DB_LOCK, &lock, &ord_len)) {
@@ -1817,7 +1817,7 @@ static int ipw2100_up(struct ipw2100_priv *priv, int deferred)
1817/* Called by register_netdev() */ 1817/* Called by register_netdev() */
1818static int ipw2100_net_init(struct net_device *dev) 1818static int ipw2100_net_init(struct net_device *dev)
1819{ 1819{
1820 struct ipw2100_priv *priv = ieee80211_priv(dev); 1820 struct ipw2100_priv *priv = libipw_priv(dev);
1821 return ipw2100_up(priv, 1); 1821 return ipw2100_up(priv, 1);
1822} 1822}
1823 1823
@@ -2340,8 +2340,8 @@ static u32 ipw2100_match_buf(struct ipw2100_priv *priv, u8 * in_buf,
2340 * 2340 *
2341 * When packet is provided by the firmware, it contains the following: 2341 * When packet is provided by the firmware, it contains the following:
2342 * 2342 *
2343 * . ieee80211_hdr 2343 * . libipw_hdr
2344 * . ieee80211_snap_hdr 2344 * . libipw_snap_hdr
2345 * 2345 *
2346 * The size of the constructed ethernet 2346 * The size of the constructed ethernet
2347 * 2347 *
@@ -2396,7 +2396,7 @@ static void ipw2100_corruption_detected(struct ipw2100_priv *priv, int i)
2396} 2396}
2397 2397
2398static void isr_rx(struct ipw2100_priv *priv, int i, 2398static void isr_rx(struct ipw2100_priv *priv, int i,
2399 struct ieee80211_rx_stats *stats) 2399 struct libipw_rx_stats *stats)
2400{ 2400{
2401 struct net_device *dev = priv->net_dev; 2401 struct net_device *dev = priv->net_dev;
2402 struct ipw2100_status *status = &priv->status_queue.drv[i]; 2402 struct ipw2100_status *status = &priv->status_queue.drv[i];
@@ -2435,13 +2435,13 @@ static void isr_rx(struct ipw2100_priv *priv, int i,
2435 2435
2436#ifdef IPW2100_RX_DEBUG 2436#ifdef IPW2100_RX_DEBUG
2437 /* Make a copy of the frame so we can dump it to the logs if 2437 /* Make a copy of the frame so we can dump it to the logs if
2438 * ieee80211_rx fails */ 2438 * libipw_rx fails */
2439 skb_copy_from_linear_data(packet->skb, packet_data, 2439 skb_copy_from_linear_data(packet->skb, packet_data,
2440 min_t(u32, status->frame_size, 2440 min_t(u32, status->frame_size,
2441 IPW_RX_NIC_BUFFER_LENGTH)); 2441 IPW_RX_NIC_BUFFER_LENGTH));
2442#endif 2442#endif
2443 2443
2444 if (!ieee80211_rx(priv->ieee, packet->skb, stats)) { 2444 if (!libipw_rx(priv->ieee, packet->skb, stats)) {
2445#ifdef IPW2100_RX_DEBUG 2445#ifdef IPW2100_RX_DEBUG
2446 IPW_DEBUG_DROP("%s: Non consumed packet:\n", 2446 IPW_DEBUG_DROP("%s: Non consumed packet:\n",
2447 dev->name); 2447 dev->name);
@@ -2449,7 +2449,7 @@ static void isr_rx(struct ipw2100_priv *priv, int i,
2449#endif 2449#endif
2450 dev->stats.rx_errors++; 2450 dev->stats.rx_errors++;
2451 2451
2452 /* ieee80211_rx failed, so it didn't free the SKB */ 2452 /* libipw_rx failed, so it didn't free the SKB */
2453 dev_kfree_skb_any(packet->skb); 2453 dev_kfree_skb_any(packet->skb);
2454 packet->skb = NULL; 2454 packet->skb = NULL;
2455 } 2455 }
@@ -2470,7 +2470,7 @@ static void isr_rx(struct ipw2100_priv *priv, int i,
2470#ifdef CONFIG_IPW2100_MONITOR 2470#ifdef CONFIG_IPW2100_MONITOR
2471 2471
2472static void isr_rx_monitor(struct ipw2100_priv *priv, int i, 2472static void isr_rx_monitor(struct ipw2100_priv *priv, int i,
2473 struct ieee80211_rx_stats *stats) 2473 struct libipw_rx_stats *stats)
2474{ 2474{
2475 struct net_device *dev = priv->net_dev; 2475 struct net_device *dev = priv->net_dev;
2476 struct ipw2100_status *status = &priv->status_queue.drv[i]; 2476 struct ipw2100_status *status = &priv->status_queue.drv[i];
@@ -2528,10 +2528,10 @@ static void isr_rx_monitor(struct ipw2100_priv *priv, int i,
2528 2528
2529 skb_put(packet->skb, status->frame_size + sizeof(struct ipw_rt_hdr)); 2529 skb_put(packet->skb, status->frame_size + sizeof(struct ipw_rt_hdr));
2530 2530
2531 if (!ieee80211_rx(priv->ieee, packet->skb, stats)) { 2531 if (!libipw_rx(priv->ieee, packet->skb, stats)) {
2532 dev->stats.rx_errors++; 2532 dev->stats.rx_errors++;
2533 2533
2534 /* ieee80211_rx failed, so it didn't free the SKB */ 2534 /* libipw_rx failed, so it didn't free the SKB */
2535 dev_kfree_skb_any(packet->skb); 2535 dev_kfree_skb_any(packet->skb);
2536 packet->skb = NULL; 2536 packet->skb = NULL;
2537 } 2537 }
@@ -2615,7 +2615,7 @@ static void __ipw2100_rx_process(struct ipw2100_priv *priv)
2615 u16 frame_type; 2615 u16 frame_type;
2616 u32 r, w, i, s; 2616 u32 r, w, i, s;
2617 struct ipw2100_rx *u; 2617 struct ipw2100_rx *u;
2618 struct ieee80211_rx_stats stats = { 2618 struct libipw_rx_stats stats = {
2619 .mac_time = jiffies, 2619 .mac_time = jiffies,
2620 }; 2620 };
2621 2621
@@ -2661,8 +2661,8 @@ static void __ipw2100_rx_process(struct ipw2100_priv *priv)
2661 2661
2662 stats.mask = 0; 2662 stats.mask = 0;
2663 if (stats.rssi != 0) 2663 if (stats.rssi != 0)
2664 stats.mask |= IEEE80211_STATMASK_RSSI; 2664 stats.mask |= LIBIPW_STATMASK_RSSI;
2665 stats.freq = IEEE80211_24GHZ_BAND; 2665 stats.freq = LIBIPW_24GHZ_BAND;
2666 2666
2667 IPW_DEBUG_RX("%s: '%s' frame type received (%d).\n", 2667 IPW_DEBUG_RX("%s: '%s' frame type received (%d).\n",
2668 priv->net_dev->name, frame_types[frame_type], 2668 priv->net_dev->name, frame_types[frame_type],
@@ -2686,11 +2686,11 @@ static void __ipw2100_rx_process(struct ipw2100_priv *priv)
2686 break; 2686 break;
2687 } 2687 }
2688#endif 2688#endif
2689 if (stats.len < sizeof(struct ieee80211_hdr_3addr)) 2689 if (stats.len < sizeof(struct libipw_hdr_3addr))
2690 break; 2690 break;
2691 switch (WLAN_FC_GET_TYPE(le16_to_cpu(u->rx_data.header.frame_ctl))) { 2691 switch (WLAN_FC_GET_TYPE(le16_to_cpu(u->rx_data.header.frame_ctl))) {
2692 case IEEE80211_FTYPE_MGMT: 2692 case IEEE80211_FTYPE_MGMT:
2693 ieee80211_rx_mgt(priv->ieee, 2693 libipw_rx_mgt(priv->ieee,
2694 &u->rx_data.header, &stats); 2694 &u->rx_data.header, &stats);
2695 break; 2695 break;
2696 2696
@@ -2884,7 +2884,7 @@ static int __ipw2100_tx_process(struct ipw2100_priv *priv)
2884 tbd->buf_length, PCI_DMA_TODEVICE); 2884 tbd->buf_length, PCI_DMA_TODEVICE);
2885 } 2885 }
2886 2886
2887 ieee80211_txb_free(packet->info.d_struct.txb); 2887 libipw_txb_free(packet->info.d_struct.txb);
2888 packet->info.d_struct.txb = NULL; 2888 packet->info.d_struct.txb = NULL;
2889 2889
2890 list_add_tail(element, &priv->tx_free_list); 2890 list_add_tail(element, &priv->tx_free_list);
@@ -3028,7 +3028,7 @@ static void ipw2100_tx_send_data(struct ipw2100_priv *priv)
3028 int next = txq->next; 3028 int next = txq->next;
3029 int i = 0; 3029 int i = 0;
3030 struct ipw2100_data_header *ipw_hdr; 3030 struct ipw2100_data_header *ipw_hdr;
3031 struct ieee80211_hdr_3addr *hdr; 3031 struct libipw_hdr_3addr *hdr;
3032 3032
3033 while (!list_empty(&priv->tx_pend_list)) { 3033 while (!list_empty(&priv->tx_pend_list)) {
3034 /* if there isn't enough space in TBD queue, then 3034 /* if there isn't enough space in TBD queue, then
@@ -3062,7 +3062,7 @@ static void ipw2100_tx_send_data(struct ipw2100_priv *priv)
3062 packet->index = txq->next; 3062 packet->index = txq->next;
3063 3063
3064 ipw_hdr = packet->info.d_struct.data; 3064 ipw_hdr = packet->info.d_struct.data;
3065 hdr = (struct ieee80211_hdr_3addr *)packet->info.d_struct.txb-> 3065 hdr = (struct libipw_hdr_3addr *)packet->info.d_struct.txb->
3066 fragments[0]->data; 3066 fragments[0]->data;
3067 3067
3068 if (priv->ieee->iw_mode == IW_MODE_INFRA) { 3068 if (priv->ieee->iw_mode == IW_MODE_INFRA) {
@@ -3086,7 +3086,7 @@ static void ipw2100_tx_send_data(struct ipw2100_priv *priv)
3086 if (packet->info.d_struct.txb->nr_frags > 1) 3086 if (packet->info.d_struct.txb->nr_frags > 1)
3087 ipw_hdr->fragment_size = 3087 ipw_hdr->fragment_size =
3088 packet->info.d_struct.txb->frag_size - 3088 packet->info.d_struct.txb->frag_size -
3089 IEEE80211_3ADDR_LEN; 3089 LIBIPW_3ADDR_LEN;
3090 else 3090 else
3091 ipw_hdr->fragment_size = 0; 3091 ipw_hdr->fragment_size = 0;
3092 3092
@@ -3119,13 +3119,13 @@ static void ipw2100_tx_send_data(struct ipw2100_priv *priv)
3119 IPW_BD_STATUS_TX_FRAME_NOT_LAST_FRAGMENT; 3119 IPW_BD_STATUS_TX_FRAME_NOT_LAST_FRAGMENT;
3120 3120
3121 tbd->buf_length = packet->info.d_struct.txb-> 3121 tbd->buf_length = packet->info.d_struct.txb->
3122 fragments[i]->len - IEEE80211_3ADDR_LEN; 3122 fragments[i]->len - LIBIPW_3ADDR_LEN;
3123 3123
3124 tbd->host_addr = pci_map_single(priv->pci_dev, 3124 tbd->host_addr = pci_map_single(priv->pci_dev,
3125 packet->info.d_struct. 3125 packet->info.d_struct.
3126 txb->fragments[i]-> 3126 txb->fragments[i]->
3127 data + 3127 data +
3128 IEEE80211_3ADDR_LEN, 3128 LIBIPW_3ADDR_LEN,
3129 tbd->buf_length, 3129 tbd->buf_length,
3130 PCI_DMA_TODEVICE); 3130 PCI_DMA_TODEVICE);
3131 3131
@@ -3330,10 +3330,10 @@ static irqreturn_t ipw2100_interrupt(int irq, void *data)
3330 return IRQ_NONE; 3330 return IRQ_NONE;
3331} 3331}
3332 3332
3333static int ipw2100_tx(struct ieee80211_txb *txb, struct net_device *dev, 3333static int ipw2100_tx(struct libipw_txb *txb, struct net_device *dev,
3334 int pri) 3334 int pri)
3335{ 3335{
3336 struct ipw2100_priv *priv = ieee80211_priv(dev); 3336 struct ipw2100_priv *priv = libipw_priv(dev);
3337 struct list_head *element; 3337 struct list_head *element;
3338 struct ipw2100_tx_packet *packet; 3338 struct ipw2100_tx_packet *packet;
3339 unsigned long flags; 3339 unsigned long flags;
@@ -4488,7 +4488,7 @@ static void ipw2100_tx_initialize(struct ipw2100_priv *priv)
4488 /* We simply drop any SKBs that have been queued for 4488 /* We simply drop any SKBs that have been queued for
4489 * transmit */ 4489 * transmit */
4490 if (priv->tx_buffers[i].info.d_struct.txb) { 4490 if (priv->tx_buffers[i].info.d_struct.txb) {
4491 ieee80211_txb_free(priv->tx_buffers[i].info.d_struct. 4491 libipw_txb_free(priv->tx_buffers[i].info.d_struct.
4492 txb); 4492 txb);
4493 priv->tx_buffers[i].info.d_struct.txb = NULL; 4493 priv->tx_buffers[i].info.d_struct.txb = NULL;
4494 } 4494 }
@@ -4527,7 +4527,7 @@ static void ipw2100_tx_free(struct ipw2100_priv *priv)
4527 4527
4528 for (i = 0; i < TX_PENDED_QUEUE_LENGTH; i++) { 4528 for (i = 0; i < TX_PENDED_QUEUE_LENGTH; i++) {
4529 if (priv->tx_buffers[i].info.d_struct.txb) { 4529 if (priv->tx_buffers[i].info.d_struct.txb) {
4530 ieee80211_txb_free(priv->tx_buffers[i].info.d_struct. 4530 libipw_txb_free(priv->tx_buffers[i].info.d_struct.
4531 txb); 4531 txb);
4532 priv->tx_buffers[i].info.d_struct.txb = NULL; 4532 priv->tx_buffers[i].info.d_struct.txb = NULL;
4533 } 4533 }
@@ -5558,9 +5558,9 @@ static void ipw2100_security_work(struct work_struct *work)
5558} 5558}
5559 5559
5560static void shim__set_security(struct net_device *dev, 5560static void shim__set_security(struct net_device *dev,
5561 struct ieee80211_security *sec) 5561 struct libipw_security *sec)
5562{ 5562{
5563 struct ipw2100_priv *priv = ieee80211_priv(dev); 5563 struct ipw2100_priv *priv = libipw_priv(dev);
5564 int i, force_update = 0; 5564 int i, force_update = 0;
5565 5565
5566 mutex_lock(&priv->action_mutex); 5566 mutex_lock(&priv->action_mutex);
@@ -5753,7 +5753,7 @@ static int ipw2100_adapter_setup(struct ipw2100_priv *priv)
5753 * method as well) to talk to the firmware */ 5753 * method as well) to talk to the firmware */
5754static int ipw2100_set_address(struct net_device *dev, void *p) 5754static int ipw2100_set_address(struct net_device *dev, void *p)
5755{ 5755{
5756 struct ipw2100_priv *priv = ieee80211_priv(dev); 5756 struct ipw2100_priv *priv = libipw_priv(dev);
5757 struct sockaddr *addr = p; 5757 struct sockaddr *addr = p;
5758 int err = 0; 5758 int err = 0;
5759 5759
@@ -5781,7 +5781,7 @@ static int ipw2100_set_address(struct net_device *dev, void *p)
5781 5781
5782static int ipw2100_open(struct net_device *dev) 5782static int ipw2100_open(struct net_device *dev)
5783{ 5783{
5784 struct ipw2100_priv *priv = ieee80211_priv(dev); 5784 struct ipw2100_priv *priv = libipw_priv(dev);
5785 unsigned long flags; 5785 unsigned long flags;
5786 IPW_DEBUG_INFO("dev->open\n"); 5786 IPW_DEBUG_INFO("dev->open\n");
5787 5787
@@ -5797,7 +5797,7 @@ static int ipw2100_open(struct net_device *dev)
5797 5797
5798static int ipw2100_close(struct net_device *dev) 5798static int ipw2100_close(struct net_device *dev)
5799{ 5799{
5800 struct ipw2100_priv *priv = ieee80211_priv(dev); 5800 struct ipw2100_priv *priv = libipw_priv(dev);
5801 unsigned long flags; 5801 unsigned long flags;
5802 struct list_head *element; 5802 struct list_head *element;
5803 struct ipw2100_tx_packet *packet; 5803 struct ipw2100_tx_packet *packet;
@@ -5818,7 +5818,7 @@ static int ipw2100_close(struct net_device *dev)
5818 list_del(element); 5818 list_del(element);
5819 DEC_STAT(&priv->tx_pend_stat); 5819 DEC_STAT(&priv->tx_pend_stat);
5820 5820
5821 ieee80211_txb_free(packet->info.d_struct.txb); 5821 libipw_txb_free(packet->info.d_struct.txb);
5822 packet->info.d_struct.txb = NULL; 5822 packet->info.d_struct.txb = NULL;
5823 5823
5824 list_add_tail(element, &priv->tx_free_list); 5824 list_add_tail(element, &priv->tx_free_list);
@@ -5836,7 +5836,7 @@ static int ipw2100_close(struct net_device *dev)
5836 */ 5836 */
5837static void ipw2100_tx_timeout(struct net_device *dev) 5837static void ipw2100_tx_timeout(struct net_device *dev)
5838{ 5838{
5839 struct ipw2100_priv *priv = ieee80211_priv(dev); 5839 struct ipw2100_priv *priv = libipw_priv(dev);
5840 5840
5841 dev->stats.tx_errors++; 5841 dev->stats.tx_errors++;
5842 5842
@@ -5861,8 +5861,8 @@ static int ipw2100_wpa_enable(struct ipw2100_priv *priv, int value)
5861static int ipw2100_wpa_set_auth_algs(struct ipw2100_priv *priv, int value) 5861static int ipw2100_wpa_set_auth_algs(struct ipw2100_priv *priv, int value)
5862{ 5862{
5863 5863
5864 struct ieee80211_device *ieee = priv->ieee; 5864 struct libipw_device *ieee = priv->ieee;
5865 struct ieee80211_security sec = { 5865 struct libipw_security sec = {
5866 .flags = SEC_AUTH_MODE, 5866 .flags = SEC_AUTH_MODE,
5867 }; 5867 };
5868 int ret = 0; 5868 int ret = 0;
@@ -5907,7 +5907,7 @@ static void ipw2100_wpa_assoc_frame(struct ipw2100_priv *priv,
5907static void ipw_ethtool_get_drvinfo(struct net_device *dev, 5907static void ipw_ethtool_get_drvinfo(struct net_device *dev,
5908 struct ethtool_drvinfo *info) 5908 struct ethtool_drvinfo *info)
5909{ 5909{
5910 struct ipw2100_priv *priv = ieee80211_priv(dev); 5910 struct ipw2100_priv *priv = libipw_priv(dev);
5911 char fw_ver[64], ucode_ver[64]; 5911 char fw_ver[64], ucode_ver[64];
5912 5912
5913 strcpy(info->driver, DRV_NAME); 5913 strcpy(info->driver, DRV_NAME);
@@ -5924,7 +5924,7 @@ static void ipw_ethtool_get_drvinfo(struct net_device *dev,
5924 5924
5925static u32 ipw2100_ethtool_get_link(struct net_device *dev) 5925static u32 ipw2100_ethtool_get_link(struct net_device *dev)
5926{ 5926{
5927 struct ipw2100_priv *priv = ieee80211_priv(dev); 5927 struct ipw2100_priv *priv = libipw_priv(dev);
5928 return (priv->status & STATUS_ASSOCIATED) ? 1 : 0; 5928 return (priv->status & STATUS_ASSOCIATED) ? 1 : 0;
5929} 5929}
5930 5930
@@ -6011,8 +6011,8 @@ static void ipw2100_irq_tasklet(struct ipw2100_priv *priv);
6011static const struct net_device_ops ipw2100_netdev_ops = { 6011static const struct net_device_ops ipw2100_netdev_ops = {
6012 .ndo_open = ipw2100_open, 6012 .ndo_open = ipw2100_open,
6013 .ndo_stop = ipw2100_close, 6013 .ndo_stop = ipw2100_close,
6014 .ndo_start_xmit = ieee80211_xmit, 6014 .ndo_start_xmit = libipw_xmit,
6015 .ndo_change_mtu = ieee80211_change_mtu, 6015 .ndo_change_mtu = libipw_change_mtu,
6016 .ndo_init = ipw2100_net_init, 6016 .ndo_init = ipw2100_net_init,
6017 .ndo_tx_timeout = ipw2100_tx_timeout, 6017 .ndo_tx_timeout = ipw2100_tx_timeout,
6018 .ndo_set_mac_address = ipw2100_set_address, 6018 .ndo_set_mac_address = ipw2100_set_address,
@@ -6032,7 +6032,7 @@ static struct net_device *ipw2100_alloc_device(struct pci_dev *pci_dev,
6032 dev = alloc_ieee80211(sizeof(struct ipw2100_priv)); 6032 dev = alloc_ieee80211(sizeof(struct ipw2100_priv));
6033 if (!dev) 6033 if (!dev)
6034 return NULL; 6034 return NULL;
6035 priv = ieee80211_priv(dev); 6035 priv = libipw_priv(dev);
6036 priv->ieee = netdev_priv(dev); 6036 priv->ieee = netdev_priv(dev);
6037 priv->pci_dev = pci_dev; 6037 priv->pci_dev = pci_dev;
6038 priv->net_dev = dev; 6038 priv->net_dev = dev;
@@ -6046,7 +6046,7 @@ static struct net_device *ipw2100_alloc_device(struct pci_dev *pci_dev,
6046 dev->netdev_ops = &ipw2100_netdev_ops; 6046 dev->netdev_ops = &ipw2100_netdev_ops;
6047 dev->ethtool_ops = &ipw2100_ethtool_ops; 6047 dev->ethtool_ops = &ipw2100_ethtool_ops;
6048 dev->wireless_handlers = &ipw2100_wx_handler_def; 6048 dev->wireless_handlers = &ipw2100_wx_handler_def;
6049 priv->wireless_data.ieee80211 = priv->ieee; 6049 priv->wireless_data.libipw = priv->ieee;
6050 dev->wireless_data = &priv->wireless_data; 6050 dev->wireless_data = &priv->wireless_data;
6051 dev->watchdog_timeo = 3 * HZ; 6051 dev->watchdog_timeo = 3 * HZ;
6052 dev->irq = 0; 6052 dev->irq = 0;
@@ -6202,7 +6202,7 @@ static int ipw2100_pci_init_one(struct pci_dev *pci_dev,
6202 return err; 6202 return err;
6203 } 6203 }
6204 6204
6205 priv = ieee80211_priv(dev); 6205 priv = libipw_priv(dev);
6206 6206
6207 pci_set_master(pci_dev); 6207 pci_set_master(pci_dev);
6208 pci_set_drvdata(pci_dev, priv); 6208 pci_set_drvdata(pci_dev, priv);
@@ -6629,7 +6629,7 @@ static int ipw2100_wx_get_name(struct net_device *dev,
6629 * This can be called at any time. No action lock required 6629 * This can be called at any time. No action lock required
6630 */ 6630 */
6631 6631
6632 struct ipw2100_priv *priv = ieee80211_priv(dev); 6632 struct ipw2100_priv *priv = libipw_priv(dev);
6633 if (!(priv->status & STATUS_ASSOCIATED)) 6633 if (!(priv->status & STATUS_ASSOCIATED))
6634 strcpy(wrqu->name, "unassociated"); 6634 strcpy(wrqu->name, "unassociated");
6635 else 6635 else
@@ -6643,7 +6643,7 @@ static int ipw2100_wx_set_freq(struct net_device *dev,
6643 struct iw_request_info *info, 6643 struct iw_request_info *info,
6644 union iwreq_data *wrqu, char *extra) 6644 union iwreq_data *wrqu, char *extra)
6645{ 6645{
6646 struct ipw2100_priv *priv = ieee80211_priv(dev); 6646 struct ipw2100_priv *priv = libipw_priv(dev);
6647 struct iw_freq *fwrq = &wrqu->freq; 6647 struct iw_freq *fwrq = &wrqu->freq;
6648 int err = 0; 6648 int err = 0;
6649 6649
@@ -6693,7 +6693,7 @@ static int ipw2100_wx_get_freq(struct net_device *dev,
6693 * This can be called at any time. No action lock required 6693 * This can be called at any time. No action lock required
6694 */ 6694 */
6695 6695
6696 struct ipw2100_priv *priv = ieee80211_priv(dev); 6696 struct ipw2100_priv *priv = libipw_priv(dev);
6697 6697
6698 wrqu->freq.e = 0; 6698 wrqu->freq.e = 0;
6699 6699
@@ -6714,7 +6714,7 @@ static int ipw2100_wx_set_mode(struct net_device *dev,
6714 struct iw_request_info *info, 6714 struct iw_request_info *info,
6715 union iwreq_data *wrqu, char *extra) 6715 union iwreq_data *wrqu, char *extra)
6716{ 6716{
6717 struct ipw2100_priv *priv = ieee80211_priv(dev); 6717 struct ipw2100_priv *priv = libipw_priv(dev);
6718 int err = 0; 6718 int err = 0;
6719 6719
6720 IPW_DEBUG_WX("SET Mode -> %d \n", wrqu->mode); 6720 IPW_DEBUG_WX("SET Mode -> %d \n", wrqu->mode);
@@ -6757,7 +6757,7 @@ static int ipw2100_wx_get_mode(struct net_device *dev,
6757 * This can be called at any time. No action lock required 6757 * This can be called at any time. No action lock required
6758 */ 6758 */
6759 6759
6760 struct ipw2100_priv *priv = ieee80211_priv(dev); 6760 struct ipw2100_priv *priv = libipw_priv(dev);
6761 6761
6762 wrqu->mode = priv->ieee->iw_mode; 6762 wrqu->mode = priv->ieee->iw_mode;
6763 IPW_DEBUG_WX("GET Mode -> %d\n", wrqu->mode); 6763 IPW_DEBUG_WX("GET Mode -> %d\n", wrqu->mode);
@@ -6792,7 +6792,7 @@ static int ipw2100_wx_get_range(struct net_device *dev,
6792 * This can be called at any time. No action lock required 6792 * This can be called at any time. No action lock required
6793 */ 6793 */
6794 6794
6795 struct ipw2100_priv *priv = ieee80211_priv(dev); 6795 struct ipw2100_priv *priv = libipw_priv(dev);
6796 struct iw_range *range = (struct iw_range *)extra; 6796 struct iw_range *range = (struct iw_range *)extra;
6797 u16 val; 6797 u16 val;
6798 int i, level; 6798 int i, level;
@@ -6913,7 +6913,7 @@ static int ipw2100_wx_set_wap(struct net_device *dev,
6913 struct iw_request_info *info, 6913 struct iw_request_info *info,
6914 union iwreq_data *wrqu, char *extra) 6914 union iwreq_data *wrqu, char *extra)
6915{ 6915{
6916 struct ipw2100_priv *priv = ieee80211_priv(dev); 6916 struct ipw2100_priv *priv = libipw_priv(dev);
6917 int err = 0; 6917 int err = 0;
6918 6918
6919 static const unsigned char any[] = { 6919 static const unsigned char any[] = {
@@ -6962,7 +6962,7 @@ static int ipw2100_wx_get_wap(struct net_device *dev,
6962 * This can be called at any time. No action lock required 6962 * This can be called at any time. No action lock required
6963 */ 6963 */
6964 6964
6965 struct ipw2100_priv *priv = ieee80211_priv(dev); 6965 struct ipw2100_priv *priv = libipw_priv(dev);
6966 6966
6967 /* If we are associated, trying to associate, or have a statically 6967 /* If we are associated, trying to associate, or have a statically
6968 * configured BSSID then return that; otherwise return ANY */ 6968 * configured BSSID then return that; otherwise return ANY */
@@ -6980,7 +6980,7 @@ static int ipw2100_wx_set_essid(struct net_device *dev,
6980 struct iw_request_info *info, 6980 struct iw_request_info *info,
6981 union iwreq_data *wrqu, char *extra) 6981 union iwreq_data *wrqu, char *extra)
6982{ 6982{
6983 struct ipw2100_priv *priv = ieee80211_priv(dev); 6983 struct ipw2100_priv *priv = libipw_priv(dev);
6984 char *essid = ""; /* ANY */ 6984 char *essid = ""; /* ANY */
6985 int length = 0; 6985 int length = 0;
6986 int err = 0; 6986 int err = 0;
@@ -7035,7 +7035,7 @@ static int ipw2100_wx_get_essid(struct net_device *dev,
7035 * This can be called at any time. No action lock required 7035 * This can be called at any time. No action lock required
7036 */ 7036 */
7037 7037
7038 struct ipw2100_priv *priv = ieee80211_priv(dev); 7038 struct ipw2100_priv *priv = libipw_priv(dev);
7039 DECLARE_SSID_BUF(ssid); 7039 DECLARE_SSID_BUF(ssid);
7040 7040
7041 /* If we are associated, trying to associate, or have a statically 7041 /* If we are associated, trying to associate, or have a statically
@@ -7063,7 +7063,7 @@ static int ipw2100_wx_set_nick(struct net_device *dev,
7063 * This can be called at any time. No action lock required 7063 * This can be called at any time. No action lock required
7064 */ 7064 */
7065 7065
7066 struct ipw2100_priv *priv = ieee80211_priv(dev); 7066 struct ipw2100_priv *priv = libipw_priv(dev);
7067 7067
7068 if (wrqu->data.length > IW_ESSID_MAX_SIZE) 7068 if (wrqu->data.length > IW_ESSID_MAX_SIZE)
7069 return -E2BIG; 7069 return -E2BIG;
@@ -7085,7 +7085,7 @@ static int ipw2100_wx_get_nick(struct net_device *dev,
7085 * This can be called at any time. No action lock required 7085 * This can be called at any time. No action lock required
7086 */ 7086 */
7087 7087
7088 struct ipw2100_priv *priv = ieee80211_priv(dev); 7088 struct ipw2100_priv *priv = libipw_priv(dev);
7089 7089
7090 wrqu->data.length = strlen(priv->nick); 7090 wrqu->data.length = strlen(priv->nick);
7091 memcpy(extra, priv->nick, wrqu->data.length); 7091 memcpy(extra, priv->nick, wrqu->data.length);
@@ -7100,7 +7100,7 @@ static int ipw2100_wx_set_rate(struct net_device *dev,
7100 struct iw_request_info *info, 7100 struct iw_request_info *info,
7101 union iwreq_data *wrqu, char *extra) 7101 union iwreq_data *wrqu, char *extra)
7102{ 7102{
7103 struct ipw2100_priv *priv = ieee80211_priv(dev); 7103 struct ipw2100_priv *priv = libipw_priv(dev);
7104 u32 target_rate = wrqu->bitrate.value; 7104 u32 target_rate = wrqu->bitrate.value;
7105 u32 rate; 7105 u32 rate;
7106 int err = 0; 7106 int err = 0;
@@ -7140,7 +7140,7 @@ static int ipw2100_wx_get_rate(struct net_device *dev,
7140 struct iw_request_info *info, 7140 struct iw_request_info *info,
7141 union iwreq_data *wrqu, char *extra) 7141 union iwreq_data *wrqu, char *extra)
7142{ 7142{
7143 struct ipw2100_priv *priv = ieee80211_priv(dev); 7143 struct ipw2100_priv *priv = libipw_priv(dev);
7144 int val; 7144 int val;
7145 unsigned int len = sizeof(val); 7145 unsigned int len = sizeof(val);
7146 int err = 0; 7146 int err = 0;
@@ -7192,7 +7192,7 @@ static int ipw2100_wx_set_rts(struct net_device *dev,
7192 struct iw_request_info *info, 7192 struct iw_request_info *info,
7193 union iwreq_data *wrqu, char *extra) 7193 union iwreq_data *wrqu, char *extra)
7194{ 7194{
7195 struct ipw2100_priv *priv = ieee80211_priv(dev); 7195 struct ipw2100_priv *priv = libipw_priv(dev);
7196 int value, err; 7196 int value, err;
7197 7197
7198 /* Auto RTS not yet supported */ 7198 /* Auto RTS not yet supported */
@@ -7231,7 +7231,7 @@ static int ipw2100_wx_get_rts(struct net_device *dev,
7231 * This can be called at any time. No action lock required 7231 * This can be called at any time. No action lock required
7232 */ 7232 */
7233 7233
7234 struct ipw2100_priv *priv = ieee80211_priv(dev); 7234 struct ipw2100_priv *priv = libipw_priv(dev);
7235 7235
7236 wrqu->rts.value = priv->rts_threshold & ~RTS_DISABLED; 7236 wrqu->rts.value = priv->rts_threshold & ~RTS_DISABLED;
7237 wrqu->rts.fixed = 1; /* no auto select */ 7237 wrqu->rts.fixed = 1; /* no auto select */
@@ -7248,7 +7248,7 @@ static int ipw2100_wx_set_txpow(struct net_device *dev,
7248 struct iw_request_info *info, 7248 struct iw_request_info *info,
7249 union iwreq_data *wrqu, char *extra) 7249 union iwreq_data *wrqu, char *extra)
7250{ 7250{
7251 struct ipw2100_priv *priv = ieee80211_priv(dev); 7251 struct ipw2100_priv *priv = libipw_priv(dev);
7252 int err = 0, value; 7252 int err = 0, value;
7253 7253
7254 if (ipw_radio_kill_sw(priv, wrqu->txpower.disabled)) 7254 if (ipw_radio_kill_sw(priv, wrqu->txpower.disabled))
@@ -7293,7 +7293,7 @@ static int ipw2100_wx_get_txpow(struct net_device *dev,
7293 * This can be called at any time. No action lock required 7293 * This can be called at any time. No action lock required
7294 */ 7294 */
7295 7295
7296 struct ipw2100_priv *priv = ieee80211_priv(dev); 7296 struct ipw2100_priv *priv = libipw_priv(dev);
7297 7297
7298 wrqu->txpower.disabled = (priv->status & STATUS_RF_KILL_MASK) ? 1 : 0; 7298 wrqu->txpower.disabled = (priv->status & STATUS_RF_KILL_MASK) ? 1 : 0;
7299 7299
@@ -7320,7 +7320,7 @@ static int ipw2100_wx_set_frag(struct net_device *dev,
7320 * This can be called at any time. No action lock required 7320 * This can be called at any time. No action lock required
7321 */ 7321 */
7322 7322
7323 struct ipw2100_priv *priv = ieee80211_priv(dev); 7323 struct ipw2100_priv *priv = libipw_priv(dev);
7324 7324
7325 if (!wrqu->frag.fixed) 7325 if (!wrqu->frag.fixed)
7326 return -EINVAL; 7326 return -EINVAL;
@@ -7350,7 +7350,7 @@ static int ipw2100_wx_get_frag(struct net_device *dev,
7350 * This can be called at any time. No action lock required 7350 * This can be called at any time. No action lock required
7351 */ 7351 */
7352 7352
7353 struct ipw2100_priv *priv = ieee80211_priv(dev); 7353 struct ipw2100_priv *priv = libipw_priv(dev);
7354 wrqu->frag.value = priv->frag_threshold & ~FRAG_DISABLED; 7354 wrqu->frag.value = priv->frag_threshold & ~FRAG_DISABLED;
7355 wrqu->frag.fixed = 0; /* no auto select */ 7355 wrqu->frag.fixed = 0; /* no auto select */
7356 wrqu->frag.disabled = (priv->frag_threshold & FRAG_DISABLED) ? 1 : 0; 7356 wrqu->frag.disabled = (priv->frag_threshold & FRAG_DISABLED) ? 1 : 0;
@@ -7364,7 +7364,7 @@ static int ipw2100_wx_set_retry(struct net_device *dev,
7364 struct iw_request_info *info, 7364 struct iw_request_info *info,
7365 union iwreq_data *wrqu, char *extra) 7365 union iwreq_data *wrqu, char *extra)
7366{ 7366{
7367 struct ipw2100_priv *priv = ieee80211_priv(dev); 7367 struct ipw2100_priv *priv = libipw_priv(dev);
7368 int err = 0; 7368 int err = 0;
7369 7369
7370 if (wrqu->retry.flags & IW_RETRY_LIFETIME || wrqu->retry.disabled) 7370 if (wrqu->retry.flags & IW_RETRY_LIFETIME || wrqu->retry.disabled)
@@ -7412,7 +7412,7 @@ static int ipw2100_wx_get_retry(struct net_device *dev,
7412 * This can be called at any time. No action lock required 7412 * This can be called at any time. No action lock required
7413 */ 7413 */
7414 7414
7415 struct ipw2100_priv *priv = ieee80211_priv(dev); 7415 struct ipw2100_priv *priv = libipw_priv(dev);
7416 7416
7417 wrqu->retry.disabled = 0; /* can't be disabled */ 7417 wrqu->retry.disabled = 0; /* can't be disabled */
7418 7418
@@ -7440,7 +7440,7 @@ static int ipw2100_wx_set_scan(struct net_device *dev,
7440 struct iw_request_info *info, 7440 struct iw_request_info *info,
7441 union iwreq_data *wrqu, char *extra) 7441 union iwreq_data *wrqu, char *extra)
7442{ 7442{
7443 struct ipw2100_priv *priv = ieee80211_priv(dev); 7443 struct ipw2100_priv *priv = libipw_priv(dev);
7444 int err = 0; 7444 int err = 0;
7445 7445
7446 mutex_lock(&priv->action_mutex); 7446 mutex_lock(&priv->action_mutex);
@@ -7472,8 +7472,8 @@ static int ipw2100_wx_get_scan(struct net_device *dev,
7472 * This can be called at any time. No action lock required 7472 * This can be called at any time. No action lock required
7473 */ 7473 */
7474 7474
7475 struct ipw2100_priv *priv = ieee80211_priv(dev); 7475 struct ipw2100_priv *priv = libipw_priv(dev);
7476 return ieee80211_wx_get_scan(priv->ieee, info, wrqu, extra); 7476 return libipw_wx_get_scan(priv->ieee, info, wrqu, extra);
7477} 7477}
7478 7478
7479/* 7479/*
@@ -7487,8 +7487,8 @@ static int ipw2100_wx_set_encode(struct net_device *dev,
7487 * No check of STATUS_INITIALIZED required 7487 * No check of STATUS_INITIALIZED required
7488 */ 7488 */
7489 7489
7490 struct ipw2100_priv *priv = ieee80211_priv(dev); 7490 struct ipw2100_priv *priv = libipw_priv(dev);
7491 return ieee80211_wx_set_encode(priv->ieee, info, wrqu, key); 7491 return libipw_wx_set_encode(priv->ieee, info, wrqu, key);
7492} 7492}
7493 7493
7494static int ipw2100_wx_get_encode(struct net_device *dev, 7494static int ipw2100_wx_get_encode(struct net_device *dev,
@@ -7499,15 +7499,15 @@ static int ipw2100_wx_get_encode(struct net_device *dev,
7499 * This can be called at any time. No action lock required 7499 * This can be called at any time. No action lock required
7500 */ 7500 */
7501 7501
7502 struct ipw2100_priv *priv = ieee80211_priv(dev); 7502 struct ipw2100_priv *priv = libipw_priv(dev);
7503 return ieee80211_wx_get_encode(priv->ieee, info, wrqu, key); 7503 return libipw_wx_get_encode(priv->ieee, info, wrqu, key);
7504} 7504}
7505 7505
7506static int ipw2100_wx_set_power(struct net_device *dev, 7506static int ipw2100_wx_set_power(struct net_device *dev,
7507 struct iw_request_info *info, 7507 struct iw_request_info *info,
7508 union iwreq_data *wrqu, char *extra) 7508 union iwreq_data *wrqu, char *extra)
7509{ 7509{
7510 struct ipw2100_priv *priv = ieee80211_priv(dev); 7510 struct ipw2100_priv *priv = libipw_priv(dev);
7511 int err = 0; 7511 int err = 0;
7512 7512
7513 mutex_lock(&priv->action_mutex); 7513 mutex_lock(&priv->action_mutex);
@@ -7556,7 +7556,7 @@ static int ipw2100_wx_get_power(struct net_device *dev,
7556 * This can be called at any time. No action lock required 7556 * This can be called at any time. No action lock required
7557 */ 7557 */
7558 7558
7559 struct ipw2100_priv *priv = ieee80211_priv(dev); 7559 struct ipw2100_priv *priv = libipw_priv(dev);
7560 7560
7561 if (!(priv->power_mode & IPW_POWER_ENABLED)) 7561 if (!(priv->power_mode & IPW_POWER_ENABLED))
7562 wrqu->power.disabled = 1; 7562 wrqu->power.disabled = 1;
@@ -7580,8 +7580,8 @@ static int ipw2100_wx_set_genie(struct net_device *dev,
7580 union iwreq_data *wrqu, char *extra) 7580 union iwreq_data *wrqu, char *extra)
7581{ 7581{
7582 7582
7583 struct ipw2100_priv *priv = ieee80211_priv(dev); 7583 struct ipw2100_priv *priv = libipw_priv(dev);
7584 struct ieee80211_device *ieee = priv->ieee; 7584 struct libipw_device *ieee = priv->ieee;
7585 u8 *buf; 7585 u8 *buf;
7586 7586
7587 if (!ieee->wpa_enabled) 7587 if (!ieee->wpa_enabled)
@@ -7615,8 +7615,8 @@ static int ipw2100_wx_get_genie(struct net_device *dev,
7615 struct iw_request_info *info, 7615 struct iw_request_info *info,
7616 union iwreq_data *wrqu, char *extra) 7616 union iwreq_data *wrqu, char *extra)
7617{ 7617{
7618 struct ipw2100_priv *priv = ieee80211_priv(dev); 7618 struct ipw2100_priv *priv = libipw_priv(dev);
7619 struct ieee80211_device *ieee = priv->ieee; 7619 struct libipw_device *ieee = priv->ieee;
7620 7620
7621 if (ieee->wpa_ie_len == 0 || ieee->wpa_ie == NULL) { 7621 if (ieee->wpa_ie_len == 0 || ieee->wpa_ie == NULL) {
7622 wrqu->data.length = 0; 7622 wrqu->data.length = 0;
@@ -7637,8 +7637,8 @@ static int ipw2100_wx_set_auth(struct net_device *dev,
7637 struct iw_request_info *info, 7637 struct iw_request_info *info,
7638 union iwreq_data *wrqu, char *extra) 7638 union iwreq_data *wrqu, char *extra)
7639{ 7639{
7640 struct ipw2100_priv *priv = ieee80211_priv(dev); 7640 struct ipw2100_priv *priv = libipw_priv(dev);
7641 struct ieee80211_device *ieee = priv->ieee; 7641 struct libipw_device *ieee = priv->ieee;
7642 struct iw_param *param = &wrqu->param; 7642 struct iw_param *param = &wrqu->param;
7643 struct lib80211_crypt_data *crypt; 7643 struct lib80211_crypt_data *crypt;
7644 unsigned long flags; 7644 unsigned long flags;
@@ -7682,7 +7682,7 @@ static int ipw2100_wx_set_auth(struct net_device *dev,
7682 * can use this to determine if the CAP_PRIVACY_ON bit should 7682 * can use this to determine if the CAP_PRIVACY_ON bit should
7683 * be set. 7683 * be set.
7684 */ 7684 */
7685 struct ieee80211_security sec = { 7685 struct libipw_security sec = {
7686 .flags = SEC_ENABLED, 7686 .flags = SEC_ENABLED,
7687 .enabled = param->value, 7687 .enabled = param->value,
7688 }; 7688 };
@@ -7730,8 +7730,8 @@ static int ipw2100_wx_get_auth(struct net_device *dev,
7730 struct iw_request_info *info, 7730 struct iw_request_info *info,
7731 union iwreq_data *wrqu, char *extra) 7731 union iwreq_data *wrqu, char *extra)
7732{ 7732{
7733 struct ipw2100_priv *priv = ieee80211_priv(dev); 7733 struct ipw2100_priv *priv = libipw_priv(dev);
7734 struct ieee80211_device *ieee = priv->ieee; 7734 struct libipw_device *ieee = priv->ieee;
7735 struct lib80211_crypt_data *crypt; 7735 struct lib80211_crypt_data *crypt;
7736 struct iw_param *param = &wrqu->param; 7736 struct iw_param *param = &wrqu->param;
7737 int ret = 0; 7737 int ret = 0;
@@ -7792,8 +7792,8 @@ static int ipw2100_wx_set_encodeext(struct net_device *dev,
7792 struct iw_request_info *info, 7792 struct iw_request_info *info,
7793 union iwreq_data *wrqu, char *extra) 7793 union iwreq_data *wrqu, char *extra)
7794{ 7794{
7795 struct ipw2100_priv *priv = ieee80211_priv(dev); 7795 struct ipw2100_priv *priv = libipw_priv(dev);
7796 return ieee80211_wx_set_encodeext(priv->ieee, info, wrqu, extra); 7796 return libipw_wx_set_encodeext(priv->ieee, info, wrqu, extra);
7797} 7797}
7798 7798
7799/* SIOCGIWENCODEEXT */ 7799/* SIOCGIWENCODEEXT */
@@ -7801,8 +7801,8 @@ static int ipw2100_wx_get_encodeext(struct net_device *dev,
7801 struct iw_request_info *info, 7801 struct iw_request_info *info,
7802 union iwreq_data *wrqu, char *extra) 7802 union iwreq_data *wrqu, char *extra)
7803{ 7803{
7804 struct ipw2100_priv *priv = ieee80211_priv(dev); 7804 struct ipw2100_priv *priv = libipw_priv(dev);
7805 return ieee80211_wx_get_encodeext(priv->ieee, info, wrqu, extra); 7805 return libipw_wx_get_encodeext(priv->ieee, info, wrqu, extra);
7806} 7806}
7807 7807
7808/* SIOCSIWMLME */ 7808/* SIOCSIWMLME */
@@ -7810,7 +7810,7 @@ static int ipw2100_wx_set_mlme(struct net_device *dev,
7810 struct iw_request_info *info, 7810 struct iw_request_info *info,
7811 union iwreq_data *wrqu, char *extra) 7811 union iwreq_data *wrqu, char *extra)
7812{ 7812{
7813 struct ipw2100_priv *priv = ieee80211_priv(dev); 7813 struct ipw2100_priv *priv = libipw_priv(dev);
7814 struct iw_mlme *mlme = (struct iw_mlme *)extra; 7814 struct iw_mlme *mlme = (struct iw_mlme *)extra;
7815 __le16 reason; 7815 __le16 reason;
7816 7816
@@ -7841,7 +7841,7 @@ static int ipw2100_wx_set_promisc(struct net_device *dev,
7841 struct iw_request_info *info, 7841 struct iw_request_info *info,
7842 union iwreq_data *wrqu, char *extra) 7842 union iwreq_data *wrqu, char *extra)
7843{ 7843{
7844 struct ipw2100_priv *priv = ieee80211_priv(dev); 7844 struct ipw2100_priv *priv = libipw_priv(dev);
7845 int *parms = (int *)extra; 7845 int *parms = (int *)extra;
7846 int enable = (parms[0] > 0); 7846 int enable = (parms[0] > 0);
7847 int err = 0; 7847 int err = 0;
@@ -7872,7 +7872,7 @@ static int ipw2100_wx_reset(struct net_device *dev,
7872 struct iw_request_info *info, 7872 struct iw_request_info *info,
7873 union iwreq_data *wrqu, char *extra) 7873 union iwreq_data *wrqu, char *extra)
7874{ 7874{
7875 struct ipw2100_priv *priv = ieee80211_priv(dev); 7875 struct ipw2100_priv *priv = libipw_priv(dev);
7876 if (priv->status & STATUS_INITIALIZED) 7876 if (priv->status & STATUS_INITIALIZED)
7877 schedule_reset(priv); 7877 schedule_reset(priv);
7878 return 0; 7878 return 0;
@@ -7884,7 +7884,7 @@ static int ipw2100_wx_set_powermode(struct net_device *dev,
7884 struct iw_request_info *info, 7884 struct iw_request_info *info,
7885 union iwreq_data *wrqu, char *extra) 7885 union iwreq_data *wrqu, char *extra)
7886{ 7886{
7887 struct ipw2100_priv *priv = ieee80211_priv(dev); 7887 struct ipw2100_priv *priv = libipw_priv(dev);
7888 int err = 0, mode = *(int *)extra; 7888 int err = 0, mode = *(int *)extra;
7889 7889
7890 mutex_lock(&priv->action_mutex); 7890 mutex_lock(&priv->action_mutex);
@@ -7912,7 +7912,7 @@ static int ipw2100_wx_get_powermode(struct net_device *dev,
7912 * This can be called at any time. No action lock required 7912 * This can be called at any time. No action lock required
7913 */ 7913 */
7914 7914
7915 struct ipw2100_priv *priv = ieee80211_priv(dev); 7915 struct ipw2100_priv *priv = libipw_priv(dev);
7916 int level = IPW_POWER_LEVEL(priv->power_mode); 7916 int level = IPW_POWER_LEVEL(priv->power_mode);
7917 s32 timeout, period; 7917 s32 timeout, period;
7918 7918
@@ -7948,7 +7948,7 @@ static int ipw2100_wx_set_preamble(struct net_device *dev,
7948 struct iw_request_info *info, 7948 struct iw_request_info *info,
7949 union iwreq_data *wrqu, char *extra) 7949 union iwreq_data *wrqu, char *extra)
7950{ 7950{
7951 struct ipw2100_priv *priv = ieee80211_priv(dev); 7951 struct ipw2100_priv *priv = libipw_priv(dev);
7952 int err, mode = *(int *)extra; 7952 int err, mode = *(int *)extra;
7953 7953
7954 mutex_lock(&priv->action_mutex); 7954 mutex_lock(&priv->action_mutex);
@@ -7981,7 +7981,7 @@ static int ipw2100_wx_get_preamble(struct net_device *dev,
7981 * This can be called at any time. No action lock required 7981 * This can be called at any time. No action lock required
7982 */ 7982 */
7983 7983
7984 struct ipw2100_priv *priv = ieee80211_priv(dev); 7984 struct ipw2100_priv *priv = libipw_priv(dev);
7985 7985
7986 if (priv->config & CFG_LONG_PREAMBLE) 7986 if (priv->config & CFG_LONG_PREAMBLE)
7987 snprintf(wrqu->name, IFNAMSIZ, "long (1)"); 7987 snprintf(wrqu->name, IFNAMSIZ, "long (1)");
@@ -7996,7 +7996,7 @@ static int ipw2100_wx_set_crc_check(struct net_device *dev,
7996 struct iw_request_info *info, 7996 struct iw_request_info *info,
7997 union iwreq_data *wrqu, char *extra) 7997 union iwreq_data *wrqu, char *extra)
7998{ 7998{
7999 struct ipw2100_priv *priv = ieee80211_priv(dev); 7999 struct ipw2100_priv *priv = libipw_priv(dev);
8000 int err, mode = *(int *)extra; 8000 int err, mode = *(int *)extra;
8001 8001
8002 mutex_lock(&priv->action_mutex); 8002 mutex_lock(&priv->action_mutex);
@@ -8028,7 +8028,7 @@ static int ipw2100_wx_get_crc_check(struct net_device *dev,
8028 * This can be called at any time. No action lock required 8028 * This can be called at any time. No action lock required
8029 */ 8029 */
8030 8030
8031 struct ipw2100_priv *priv = ieee80211_priv(dev); 8031 struct ipw2100_priv *priv = libipw_priv(dev);
8032 8032
8033 if (priv->config & CFG_CRC_CHECK) 8033 if (priv->config & CFG_CRC_CHECK)
8034 snprintf(wrqu->name, IFNAMSIZ, "CRC checked (1)"); 8034 snprintf(wrqu->name, IFNAMSIZ, "CRC checked (1)");
@@ -8181,7 +8181,7 @@ static struct iw_statistics *ipw2100_wx_wireless_stats(struct net_device *dev)
8181 int beacon_qual; 8181 int beacon_qual;
8182 int quality; 8182 int quality;
8183 8183
8184 struct ipw2100_priv *priv = ieee80211_priv(dev); 8184 struct ipw2100_priv *priv = libipw_priv(dev);
8185 struct iw_statistics *wstats; 8185 struct iw_statistics *wstats;
8186 u32 rssi, tx_retries, missed_beacons, tx_failures; 8186 u32 rssi, tx_retries, missed_beacons, tx_failures;
8187 u32 ord_len = sizeof(u32); 8187 u32 ord_len = sizeof(u32);