Re: [ath5k-devel] [PATCH 1/1] Ath5k: add AP mode

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Gregory Nietsky
Date: Sunday, September 28, 2008 - 4:06 am

Quick Observation  ...

it appears IEEE80211 types have been replaced with NL80211 types in 
kernel ... so would the following not be more correct and is opmode not 
defined as

struct ath5k_softc {
....
        enum nl80211_iftype     opmode;
.....

@@ -2130,14 +2129,15 @@ ath5k_beacon_config(struct ath5k_softc *sc)

                sc->imask |= AR5K_INT_SWBA;

-               if (ath5k_hw_hasveol(ah)) {
-                       spin_lock(&sc->block);
-                       ath5k_beacon_send(sc);
-                       spin_unlock(&sc->block);
-               }
+               if (sc->opmode == NL80211_IFTYPE_ADHOC) {
+                       if (ath5k_hw_hasveol(ah)) {
+                               spin_lock(&sc->block);
+                               ath5k_beacon_send(sc);
+                               spin_unlock(&sc->block);
+                       }
+               } else
+                       ath5k_beacon_update_timers(sc, -1);
        }
-       /* TODO else AP */
-
        ath5k_hw_set_imr(ah, sc->imask);
 }



Jiri Slaby wrote:

--
This message has been scanned for viruses and
dangerous content by Network Sentry, and 
is believed to be clean.
http://www.dialandsave.co.za

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/1] Ath5k: add AP mode, Jiri Slaby, (Sat Sep 27, 5:48 am)
Re: [ath5k-devel] [PATCH 1/1] Ath5k: add AP mode, Gregory Nietsky, (Sun Sep 28, 3:44 am)
Re: [ath5k-devel] [PATCH 1/1] Ath5k: add AP mode, Gregory Nietsky, (Sun Sep 28, 4:06 am)
Re: [ath5k-devel] [PATCH 1/1] Ath5k: add AP mode, Jiri Slaby, (Sun Sep 28, 9:14 am)