Merge some comment changes from madwifi-dfs
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 17 Jul 2008 04:50:29 +0000 (04:50 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 17 Jul 2008 04:50:29 +0000 (04:50 +0000)
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3787 0192ed92-7a03-0410-a25b-9323aeb14dbd

net80211/ieee80211.c
net80211/ieee80211_scan.c
net80211/ieee80211_var.h

index ad026a924da670e0a3f08871e1ae42ec9f822a6e..1695a040d5cfb653cb5711e6e6a8fe62885706af 100644 (file)
@@ -804,12 +804,12 @@ ieee80211_media_setup(struct ieee80211com *ic,
 }
 
 /*
- * Perform the dfs action (channel switch) using scan cache or a randomly
- * chosen channel. The choice of the fallback random channel is done in
- * ieee80211_scan_dfs_action, when there are no scan cache results.
+ * Perform the DFS action (channel switch) using scan cache or a randomly
+ * chosen channel. The choice of the random channel is done in
+ * ieee80211_scan_dfs_action().
  *
- * This was moved out of ieee80211_mark_dfs, because the same functionality is
- * used also in ieee80211_ioctl_chanswitch.
+ * This was moved out of ieee80211_mark_dfs(), because the same functionality
+ * is used also in ieee80211_ioctl_chanswitch().
  */
 void
 ieee80211_dfs_action(struct ieee80211com *ic) {
@@ -1140,7 +1140,7 @@ ieee80211_dfs_test_return(struct ieee80211com *ic, u_int8_t ieeeChan)
 {
        struct net_device *dev = ic->ic_dev;
 
-       /* Return to the original channel we were on before the test mute */
+       /* Return to the original channel we were on before the test mute. */
        if_printf(dev, "Returning to channel %d\n", ieeeChan);
        printk(KERN_DEBUG "Returning to chan %d\n", ieeeChan);
        ic->ic_chanchange_chan = ieeeChan;
index 3ab7428fc0da1add2998cf860e3d8d07e65f379e..4c586a5d0f256c72c138d466ed11fc21d97bc588 100644 (file)
@@ -291,13 +291,13 @@ scan_restart_pwrsav(unsigned long arg)
        struct ieee80211com *ic = vap->iv_ic;
        int delay;
 
-       /* Handle PS stuff, if required. */
        ieee80211_sta_pwrsave(vap, 1);
-
-       /* Use an initial 1ms delay to ensure the null
+       /*
+        * Use an initial 1ms delay to ensure the null
         * data frame has a chance to go out.
         * XXX: 1ms is a lot, better to trigger scan
-        * on TX complete. */
+        * on TX complete.
+        */
        delay = msecs_to_jiffies(1);
        if (delay < 1)
                delay = 1;
index abf4f2520cfabc2ce651238a5abecfe1bfe426e2..546124854283e8d239cc7e08fa8fed68416cb8a3 100644 (file)
@@ -424,7 +424,7 @@ struct ieee80211com {
        int ic_country_outdoor;
        struct ieee80211_ie_country ic_country_ie; /* country info element */
 
-       /* current channel max power, used to compute Power Constraint IE.
+       /* Current channel max. power, used to compute Power Constraint IE.
         *
         * NB: local power constraint depends on the channel, but assuming it must
         *     be detected dynamically, we cannot maintain a table (i.e., will not
@@ -586,7 +586,7 @@ MALLOC_DECLARE(M_80211_VAP);
 #define IEEE80211_F_NOBRIDGE    0x10000000             /* CONF: disable internal bridge */
 
 #define        IEEE80211_F_WMEUPDATE   0x20000000              /* STATUS: update beacon wme */
-#define IEEE80211_F_DOTH       0x40000000              /* enable 11.h */
+#define IEEE80211_F_DOTH       0x40000000              /* CONF: enable 11.h (dot11SpectrumManagementRequired) */
 #define IEEE80211_F_CHANSWITCH 0x80000000              /* force chanswitch */
 
 /* ic_flags_ext */