jalavoui Posted June 1, 2007 Author Share Posted June 1, 2007 jalavoui, this version will auto switch from mode 0 to mode 1 when creating a network, but it has a bug, it won't create an network the first time if it needs to switch, maybe you can find the bug there ? this can be because of firmware reload - i'll look at it and update the svn tree iwi3945 rev 455 http://code.google.com/p/iwidarwin/ i've seen in logs that the driver starts with radio off, but after a while it aparently switch state by itself this version as the radio hack disabled. previous release seems to hang mac os please post logs/pictures for iwi2100/iwi3945 moses, i'm unable to download this, can you place it in the iwidarwin downloads? Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/96/#findComment-376880 Share on other sites More sharing options...
moseschrist Posted June 1, 2007 Share Posted June 1, 2007 i'm uploading as we speak... but until i'm done with that, i'll post here the changes i made to the code. here is what i added to iwi2200.cpp: if (opt==5) //create adhoc network: { IWI_DEBUG("nsGUI/network selector called network create"); if (clone->priv->ieee->iw_mode == IW_MODE_ADHOC && clone->priv->config & CFG_ADHOC_CREATE && !list_empty(&clone->priv->ieee->network_free_list)) { struct ieee80211_network *network = NULL; struct ipw_network_match match = {NULL}; struct ipw_supported_rates *rates; struct list_head *element; if ((clone->priv->config & CFG_ASSOCIATE)) { list_for_each_entry(network, &clone->priv->ieee->network_list, list) clone->ipw_best_network(clone->priv, &match, network, 0); } network = match.network; rates = &match.rates; element = clone->priv->ieee->network_free_list.next; network = list_entry(element, struct ieee80211_network, list); clone->ipw_adhoc_create(clone->priv, network); char cc[strlen((char*)data)]; sprintf(cc,(char*)data); memcpy(network->ssid,cc,sizeof(cc)); network->ssid_len=strlen((char*)data); rates = &clone->priv->rates; list_del(element); list_add_tail(&network->list, &clone->priv->ieee->network_list); clone->queue_td(0,OSMemberFunctionCast(thread_call_func_t,clone,&darwin_iwi2200::ipw_scan)); clone->ipw_associate_network(clone->priv, network, rates, 0); } } and here is the function which calls the creation of the new network: - (IBAction)createAdHoc:(id)sender { [cr_networkDialog orderOut:nil]; [NSApp endSheet:cr_networkDialog]; if ([sender tag]) { [networkName setStringValue:@""]; return; } [self preAction]; if (priv.ieee->iw_mode!=1) { if (!(priv.status & (STATUS_RF_KILL_HW | STATUS_RF_KILL_SW))) [self PowerAction:self]; int sel0 = 2; int *i = (int*) malloc(sizeof (int)); *i=(int)sel0; b=sizeof(int); setsockopt(fd,SYSPROTO_CONTROL,4,i,; [self preAction]; [self PowerAction:self]; } if (priv.status & (STATUS_RF_KILL_HW | STATUS_RF_KILL_SW)) [self PowerAction:self]; char *ssid = (char*) malloc(sizeof (char)*128); [[networkName stringValue] getCString:ssid]; cout<<ssid; setsockopt(fd,SYSPROTO_CONTROL,5,ssid,sizeof(ssid)+3); [textOutlet setHidden:false]; [self cancelModeChange:nil]; } as you can see, i made a lot of things transparent to the user in this function, things like if the card is on or off, and the card's mode, all are dealt inside the function, i believe it makes nsGUI more userfriendly and frees him from having to turn the card on and off everytime. yes, i know it's available in windows and every other OS, but it doesn't make it ok, the user should not be seeing a grayed button just because the card is turned off, he should see an alert telling him that the selected action will turn the card on/off Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/96/#findComment-376901 Share on other sites More sharing options...
Airfly Posted June 2, 2007 Share Posted June 2, 2007 log for iwi3945 rev 455 boot with -s Great work! Guys. dmesg.txt Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/96/#findComment-376936 Share on other sites More sharing options...
J.Picard Posted June 3, 2007 Share Posted June 3, 2007 Sorry for the late reply. I've tested with the latest revision, but it's the same error. Kernel panic after starting the selector or try to setup in preferences. Meanwhile the led for wlan is flashing. My Hackintosh: Thinkpad R40 everthing is working fine... Wlan not working Ati Radeon 7500 QE not working dmesg.txt ioreg.txt system.txt Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/96/#findComment-377025 Share on other sites More sharing options...
doniv Posted June 3, 2007 Share Posted June 3, 2007 Unfortunately, the behaviour is the same as reported before. Attaching the logs. dmesg.txt ioreg.txt system.txt Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/96/#findComment-377036 Share on other sites More sharing options...
evis Posted June 3, 2007 Share Posted June 3, 2007 Hi moseschrist I saw in your sign that you have Hebrew Hacintosh?! How? and Another question - does the Sleep function is working for you? Becuase It'smworks for me, but after installing the USB Fix that EHCI don't let the computer to sleep and wake it up... can you help to the little south israeli guy here? thanks, evi. Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/96/#findComment-377163 Share on other sites More sharing options...
moseschrist Posted June 3, 2007 Share Posted June 3, 2007 evis, check your PM box. Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/96/#findComment-377178 Share on other sites More sharing options...
moseschrist Posted June 4, 2007 Share Posted June 4, 2007 jalavoui, have you added the sources i sent you via email to the svn ? Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/96/#findComment-377500 Share on other sites More sharing options...
Airfly Posted June 4, 2007 Share Posted June 4, 2007 why something likes interrupt recieved happends when boot with -s ,but not in normal booting? what different between -s mode and normal one? what happend to hardware in -s mode? keep on the great and hard work. Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/96/#findComment-377716 Share on other sites More sharing options...
asstastic Posted June 4, 2007 Share Posted June 4, 2007 I was thinking about giving up trying to get my 3945abg working and started browsing around ebay for a new wireless card. Then I noticed, none of the cards look anything like mine. So I worked it out, unlike most of the cards advertised, mine uses the PCI Express Mini interface while the older intel cards and most others use Mini PCI. I have no idea how apple handles PCI Express in relation to PCI but it could be the root of some of the driver problems. Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/96/#findComment-377796 Share on other sites More sharing options...
james2mart Posted June 5, 2007 Share Posted June 5, 2007 I was thinking about giving up trying to get my 3945abg working and started browsing around ebay for a new wireless card. Then I noticed, none of the cards look anything like mine. So I worked it out, unlike most of the cards advertised, mine uses the PCI Express Mini interface while the older intel cards and most others use Mini PCI. I have no idea how apple handles PCI Express in relation to PCI but it could be the root of some of the driver problems. dell 1490. based on broadcom. detected as airport, all fine and dandy. mini PCIE. less than $20 shipped. Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/96/#findComment-378001 Share on other sites More sharing options...
jalavoui Posted June 5, 2007 Author Share Posted June 5, 2007 moses, i'm looking at your changes and see the diffs to upload to svn. i'll put new rev here when i finish checking the files iwi3945, please post the picture of the kernel panic to do this boot with -s option iwi2200 rev 456 moses i've notice you've commited some changes to svn - can you check if this are ok. looks like nsgui misses the "create network" code - maybe you've uploaded a old version? i've changed the .pmproj to include the readme.rtf deleted a .html file - do you want to use this file for rev record? how? build the new .dmg file - do you have any problem creating this file or uploading it to svn? moses i've looked at the files you've mailed - i find changes in nsgui only i've commited to svn to iwi2200 rev 457 you should update your copy and commit new changes - this code still looks old to me i forgot some files (mainmenu.nib, etc) - this should be right - iwi2200 rev 458 there are some things in nsgui: - closing the window closes nsgui. on previous releases it only hides it - the create network button should only appear when power is off and mode=1. - is it possible to create a bss network? Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/96/#findComment-378236 Share on other sites More sharing options...
moseschrist Posted June 5, 2007 Share Posted June 5, 2007 jalavoui, the files i've sent you are the newest, you can see the changes in the function: int configureConnection(kern_ctl_ref ctlref, u_int unit, void *userdata, int opt, void *data, size_t len) {..} where i added the create network part (opt 5). and of course there are the changes to NSGUI where i added the option to create a network. as i said before, i would like you to take a look at the way i have implemented the create network in nsGUI, as this is the first time we have tried to allow it to auto switch modes and turn on and off the card without having to ask to user to do it himself. but we have a slight trouble [maybe firmware error] because somewhere in the process it stopes and only when we try again it works... so if you can just take a look at it, maybe you can fix it... about nsGUI closing even when we choose hide, it seems like it crashes for some reason, i'll try and find the bug... i don't know what are the specifics of creating a bss network, but we can create an adhoc network with connection sharing (via apple's network properties) but it is not tested... Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/96/#findComment-378314 Share on other sites More sharing options...
jalavoui Posted June 5, 2007 Author Share Posted June 5, 2007 turn on and off the card without having to ask to user to do it himself. unless the driver takes a iodelay() it will be unstable - but if it pauses for some time it can cause firmware errors... - i'll try to do something with the code try this: change to ibss mode, power on - start scanning i see that, in the scan list i get the same network that shows in bss mode (association always fails) in windows you always get a distinct list for bss/ibss networks - can you do this in nsgui? iwi2200 can someone post reports on creating networks? we can use some feedback here Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/96/#findComment-378342 Share on other sites More sharing options...
moseschrist Posted June 5, 2007 Share Posted June 5, 2007 try this:change to ibss mode, power on - start scanning i see that, in the scan list i get the same network that shows in bss mode (association always fails) in windows you always get a distinct list for bss/ibss networks - can you do this in nsgui? i have made the changes needed for this in nsGUI. but i haven't uploaded a dmg with the new nsGUI since i don't have any networks here to test with. if somebody could download compile and test plz post back here to let me know if it works or not. Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/96/#findComment-378442 Share on other sites More sharing options...
reeiit Posted June 6, 2007 Share Posted June 6, 2007 hi, i have not kernel panic. my logs with the last iwi3945. thenks My 3945 abg with HW switch, i don't know on miniPCI it or on PCI-E Edited: Everest shows 3945 on PCI-Express x1, ID 8086-4222, version 02 dmesg.txt ioreg.txt system.txt Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/96/#findComment-378586 Share on other sites More sharing options...
jalavoui Posted June 6, 2007 Author Share Posted June 6, 2007 i have made the changes needed for this in nsGUI. iwi2200 rev 460 http://code.google.com/p/iwidarwin/ i've rewritten some of your changes with new code - please check the code and rewrite if needed -fix the window close bug -change the create network (not as mac user friendly as it should be) -add adhoc detection -add iodelay for power off i notice that the radio hack cause some bugs - need to hack it better i need feedback on adhoc detection. if this code works it's possible to change to code to do auto-switch mode. i haven't done this yet because i don't know how the detection will work for adhoc networks maybe you like to merge the adhoc column with the secure network picture? when you commit to svn, build the .dmg - we have lots of people willing to test new versions iwi2100 rev 461 iwi3945 rev 462 fixes for freepacket call networkselector and use option (1) to turn the card on/off Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/96/#findComment-378851 Share on other sites More sharing options...
moseschrist Posted June 6, 2007 Share Posted June 6, 2007 jalavoui, before we do auto switch for associate we should get it working for create network since we will have the same bugs [firmware error] i didn't uploaded the dmg since i couldn't test my code to see if it's working or not and i didn't want to upload a bugged version of nsGUI. about making it more user friendly, i will look how it works on a real mac and copy off it the interface... Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/96/#findComment-378858 Share on other sites More sharing options...
reeiit Posted June 6, 2007 Share Posted June 6, 2007 logs for 3945 v4.62 networkselector shows right mac address, but when i try to turn on radio it shows: Jun 7 01:32:49 ree-rss-computer kernel[0]: iwi3945: Microcode HW error detected. Restarting. Jun 7 01:32:49 ree-rss-computer kernel[0]: iwi3945: Restarting adapter due to uCode error. Jun 7 01:32:49 ree-rss-computer kernel[0]: iwi3945: ipw going down Jun 7 01:32:49 ree-rss-computer kernel[0]: iwi3945: stop master Jun 7 01:32:49 ree-rss-computer kernel[0]: iwi3945: stop master Thanks dmesg.txt ioreg.txt system.txt Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/96/#findComment-378895 Share on other sites More sharing options...
jalavoui Posted June 6, 2007 Author Share Posted June 6, 2007 about making it more user friendly, i will look how it works on a real mac and copy off it the interface... after nsgui detects the network type (bss or ibss) and secure/not secure the driver should do the switch mode automatically - this is more user friendly, and should be easy to do. at this point we appreciate feedback on: - network list.i think it doesn't show all the available networks. test it by scanning in bss (normal mode) and ibss (adhoc) - create adhoc networks (for user's with routers) - nsgui/iwi2200 bugs/crashes - should not happen logs for 3945 v4.62 what happens if you keep trying option (1) in networkselector? Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/96/#findComment-379067 Share on other sites More sharing options...
J.Picard Posted June 6, 2007 Share Posted June 6, 2007 Sorry, rev 461 IWI2100 didn't work for me. LED is on, but on activating ethernet adapter comes the kernel panic. Same with the networkselector. Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/96/#findComment-379126 Share on other sites More sharing options...
reeiit Posted June 7, 2007 Share Posted June 7, 2007 what happens if you keep trying option (1) in networkselector? in console (system.log): 1. when i run networkselector Jun 7 11:14:23 ree-rss-computer kernel[0]: iwi3945: connect 2. when i try to turn on radio (option 1) Jun 7 11:14:37 ree-rss-computer kernel[0]: hannel Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ieee80211_unmask_channel Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ieee80211_unmask_channel Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ieee80211_unmask_channel Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ieee80211_unmask_channel Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ieee80211_unmask_channel Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ieee80211_unmask_channel Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ieee80211_unmask_channel Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ieee80211_unmask_channel Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ieee80211_unmask_channel Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ieee80211_unmask_channel Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ieee80211_unmask_channel Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ieee80211_unmask_channel Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ieee80211_unmask_channel Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ieee80211_unmask_channel Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ieee80211_unmask_channel Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ieee80211_unmask_channel Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ieee80211_unmask_channel Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ieee80211_unmask_channel Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ieee80211_unmask_channel Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ieee80211_unmask_channel Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ieee80211_unmask_channel Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ieee80211_unmask_channel Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ieee80211_rate_control_register Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ieee80211_register_hw Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ipw_reset_channel_flag Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ipw_set_supported_rates_mask Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ipw_set_rate Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ipw_send_power_mode Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: Flags value = 0x00000008 Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: Tx timeout = 0 Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: Rx timeout = 0 Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: Sleep interval vector = { 0 , 0 , 0 , 0 , 0 } Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ipw_connection_init_rx_config Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ipw_send_bt_config Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ipw_commit_rxon Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: interrupt recieved 0x82000008 masked 0xaa000003 card mask 0xaa000003 Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: Microcode SW error detected. Restarting 0x82000000. Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: Restarting adapter due to uCode error. Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: Command RXON failed: FW Error Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: Removing STA ID 24: ff:ff:ff:ff:ff:ff Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: Adding STA ID 24: ff:ff:ff:ff:ff:ff Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ipw_rxon_add_station Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: Removing STA ID 24: ff:ff:ff:ff:ff:ff Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: Adding STA ID 24: ff:ff:ff:ff:ff:ff Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ipw_init_rate_scaling Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: Select G mode rate scale Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: reg_txpower_periodic Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: ipw going down Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: Rx interrupt Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: Received ERROR (#1c59bdb8) Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: Error Reply type 0x00000000 cmd (0x32850CAC) seq 0x0001 ser 0x000043FB Jun 7 11:14:37 ree-rss-computer kernel[0]: iwi3945: flushing Input Queue Jun 7 11:14:38 ree-rss-computer kernel[0]: iwi3945: Can't stop Rx DMA. Jun 7 11:14:38 ree-rss-computer kernel[0]: iwi3945: stop master Jun 7 11:14:38 ree-rss-computer kernel[0]: iwi3945: stop master Jun 7 11:14:38 ree-rss-computer kernel[0]: iwi3945: 0 frames on pre-allocated heap on clear. Jun 7 11:14:43 ree-rss-computer kernel[0]: iwi3945: No space for Tx Jun 7 11:14:43 ree-rss-computer kernel[0]: iwi3945: Error sending TX_PWR_TABLE_CMD: ipw_queue_tx_hcmd failed: -28 3. When i try to turn OFF radio (option 1 again) Jun 7 11:16:03 ree-rss-computer kernel[0]: iwi3945: radio off 0x40000 = 0x0 Jun 7 11:16:03 ree-rss-computer kernel[0]: iwi3945: ipw going down Jun 7 11:16:03 ree-rss-computer kernel[0]: iwi3945: 0 frames on pre-allocated heap on clear. 4. when i exit from terminal Jun 7 11:16:18 ree-rss-computer kernel[0]: iwi3945: disconnect 5. When i try other options, after turn on radio, nothing happen. Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/96/#findComment-379167 Share on other sites More sharing options...
Airfly Posted June 7, 2007 Share Posted June 7, 2007 logs for iwi3945 rev 462 dmesg.txt ioreg.txt system.txt Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/96/#findComment-379423 Share on other sites More sharing options...
doniv Posted June 7, 2007 Share Posted June 7, 2007 Hi, There's an improvement since the last time. Switching on and off the card doesn't go into an infinite loop. I'm attaching the logs and also an extract of the system.log messages that come when I switch on the card. BTW, this is for the latest version of iwi3945. dmesg.txt ioreg.txt system.txt system_log.txt Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/96/#findComment-379506 Share on other sites More sharing options...
endlesssnowfall Posted June 8, 2007 Share Posted June 8, 2007 After around 3 hours of uptime, I checked Activity Monitor and saw that nsGUI had taken 175 mb of system memory, and it was steadily rising. Does this means that there is a memory leak, or hopefully it is just not showing the correct memory usage? I'm using the latest ipi2200 as of June 6, from the google code page. Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/96/#findComment-380057 Share on other sites More sharing options...
Recommended Posts