kemenaran / iwidarwin

Automatically exported from code.google.com/p/iwidarwin
4 stars 4 forks source link

relation with nonets #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
jalavoui,
what is routine realted with notets ?

@@ -722,7 +709,6 @@ bool darwin_iwi2200::start(IOService *pr

                if (!spin) return false;
                if (!mutex) return false;*/
-               spin=IOSimpleLockAlloc();
                //IW_SCAN_TYPE_ACTIVE

queue_te(0,OSMemberFunctionCast(thread_call_func_t,this,&darwin_iwi2200::ipw_sc
an),NULL,NULL,false);

queue_te(1,OSMemberFunctionCast(thread_call_func_t,this,&darwin_iwi2200::ipw_ad
apter_restart),NULL,NULL,false);
@@ -735,7 +721,11 @@ bool darwin_iwi2200::start(IOService *pr

queue_te(8,OSMemberFunctionCast(thread_call_func_t,this,&darwin_iwi2200::ipw_ad
hoc_check),NULL,NULL,false);

queue_te(9,OSMemberFunctionCast(thread_call_func_t,this,&darwin_iwi2200::ipw_bg
_qos_activate),NULL,NULL,false);

queue_te(10,OSMemberFunctionCast(thread_call_func_t,this,&darwin_iwi2200::ipw_l
ed_activity_off),NULL,NULL,false);
-               
+
+
+               countnonet=0;
+               countb=0;
+               for (int i=0;i<20;i++) memset(&nonets[i],0,sizeof(struct
ieee80211_network));

@@ -1489,6 +1480,9 @@ void darwin_iwi2200::ipw_adapter_restart

        IWI_DEBUG("ipw_adapter_restart\n");
        priv->ieee->scans=0;
+       for (int i=0;i<20;i++) if (nonets[i].bssid)
memset(&nonets[i],0,sizeof(struct ieee80211
_network));
+       //INIT_LIST_HEAD(&nonet);       
+       //INIT_LIST_HEAD(&nonet);

@@ -5726,10 +5643,29 @@ int darwin_iwi2200::ipw_best_network(str
     IWI_DEBUG("Network '%s (%02x:%02x:%02x:%02x:%02x:%02x)' \n",
          escape_essid((const char*)network->ssid, network->ssid_len),
          MAC_ARG(network->bssid));
-
+       
+       //check if the network should be excluded
+       if (priv->ieee->iw_mode == IW_MODE_INFRA)
+       if (network->bssid)
+       {
+               for (int i=0;i<20;i++) 
+               {
+                       if (nonets[i].bssid)
+                       if (!memcmp(nonets[i].bssid, network->bssid,
ETH_ALEN)) 
+                       {
+                               IWI_DEBUG("Network '%s
(%02x:%02x:%02x:%02x:%02x:%02x)' in excl
ude list. "
+                               "restart card to include.\n",
+                               escape_essid((const char*)network->ssid,
network->ssid_len),
+                               MAC_ARG(network->bssid));
+                               return 0;
+                       }
+               }
+       }

etc...

plz explain theses.
theses is not merged now.

Original issue reported on code.google.com by kazuh...@gmail.com on 12 Feb 2007 at 7:26

GoogleCodeExporter commented 9 years ago
they're used to do the 169.254.xxx ip filtering

Original comment by jalav...@gmail.com on 13 Feb 2007 at 5:07

GoogleCodeExporter commented 9 years ago
ok. 
but i dont understand what part  is related 169.254 filtering.
would you make diff file with only 169.254 filtering.

Original comment by kazuh...@gmail.com on 13 Feb 2007 at 8:32

GoogleCodeExporter commented 9 years ago
ok. 
but i dont understand what part  is related 169.254 filtering.
would you make diff file with only 169.254 filtering?

Original comment by kazuh...@gmail.com on 13 Feb 2007 at 8:32

GoogleCodeExporter commented 9 years ago
i'll make the changes in svn trunk after the new features are implemented

Original comment by jalav...@gmail.com on 13 Feb 2007 at 10:38

GoogleCodeExporter commented 9 years ago
ok.thnx.

Original comment by kazuh...@gmail.com on 16 Feb 2007 at 5:01