]> git.hungrycats.org Git - linux/commitdiff
[netdrvr airo] add missing lines for Wireless Extensions 16
authorJavier Achirica <achirica@telefonica.net>
Thu, 7 Aug 2003 13:17:38 +0000 (09:17 -0400)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 7 Aug 2003 13:17:38 +0000 (09:17 -0400)
drivers/net/wireless/airo.c

index efc72a53b66fdadf7545453adfb158a4127e145f..3fe180ab1a4b0d90ff98e3c186f1c4c09617abbd 100644 (file)
@@ -1043,11 +1043,15 @@ struct airo_info {
        struct iw_statistics    wstats;         // wireless stats
        unsigned long           scan_timestamp; /* Time started to scan */
        struct work_struct      event_task;
+#if WIRELESS_EXT > 15
+       struct iw_spy_data      spy_data;
+#else /* WIRELESS_EXT > 15 */
 #ifdef WIRELESS_SPY
        int                     spy_number;
        u_char                  spy_address[IW_MAX_SPY][ETH_ALEN];
        struct iw_quality       spy_stat[IW_MAX_SPY];
 #endif /* WIRELESS_SPY */
+#endif /* WIRELESS_EXT > 15 */
 #endif /* WIRELESS_EXT */
        /* MIC stuff */
        mic_module              mod[2];
@@ -5286,7 +5290,7 @@ static inline char *airo_translate_scan(struct net_device *dev,
        capabilities = le16_to_cpu(list->cap);
        if(capabilities & (CAP_ESS | CAP_IBSS)) {
                if(capabilities & CAP_ESS)
-                       iwe.u.mode = IW_MODE_INFRA;
+                       iwe.u.mode = IW_MODE_MASTER;
                else
                        iwe.u.mode = IW_MODE_ADHOC;
                current_ev = iwe_stream_add_event(current_ev, end_buf, &iwe, IW_EV_UINT_LEN);