Return-path: Received: from mail-fx0-f218.google.com ([209.85.220.218]:65102 "EHLO mail-fx0-f218.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752108AbZGIR5a convert rfc822-to-8bit (ORCPT ); Thu, 9 Jul 2009 13:57:30 -0400 Received: by fxm18 with SMTP id 18so354735fxm.37 for ; Thu, 09 Jul 2009 10:57:28 -0700 (PDT) From: Max Filippov To: Alexander Wenzel Subject: Re: Problem with p54 driver and ibss mode Date: Thu, 9 Jul 2009 21:57:20 +0400 Cc: linux-wireless@vger.kernel.org References: <4A55DB91.2070305@fgan.de> <73aaf0dd0907090620i752b7f9cq60563f8e22c02d75@mail.gmail.com> <4A560E4B.6080209@fgan.de> In-Reply-To: <4A560E4B.6080209@fgan.de> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Message-Id: <200907092157.21784.jcmvbkbc@gmail.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: В сообщении от Thursday 09 July 2009 Alexander Wenzel написал(a): > Hi! > >> I'm trying to get the latest p54 wireless drivers (ad-hoc mode) > >> to work on a Nokia N810... So far, without any success. > >> [ 3905.535125] WARNING: at /home/wen/work/NokiaN810/compat-wireless-2009-07-09/net/mac80211/sta_info.c:339 sta_info_insert+0x7c/0x15c [mac80211]() > > As far as I can see, this is check that incoming STA and your STA have > > different MAC addresses. If you don't set up MAC manually on both > > devices and make it unique, chances high that they are equal. > > You saved my day :D Finally it works...! Thanks for the hint. > > [ 214.478668] wlan0: Selected IBSS BSSID 56:97:1a:24:11:6c based on configured SSID > > # iw dev wlan0 station dump > Station 00:02:ee:c0:ff:ee (on wlan0) > inactive time: 429 ms > rx bytes: 8964 > tx bytes: 408 > signal: 55 dBm > tx bitrate: 1.0 MBit/s > > I just checked the other N810 devices and every device has > the same mac address. And here we go... [p54spi_eeprom.h:39] > 0x00, 0x02, 0xee, 0xc0, 0xff, 0xee, > > The original kernel with default os shows the correct address. > When booting a different os with the with the original or custom > kernel it shows the 'coffee' address. > So is there a way to let the kernel receive and set the > correct mac address of the wlan device? > I guess my problem is this line: > [ 3685.320800] cx3110x spi2.0: loading default eeprom... You're right. I guess that easiest way to deal with it is to save blob from p54spi_eeprom.h into a file 3826.eeprom in the same directory as 3826.arm and fix MAC address in it, according to comments in p54spi_eeprom.h These data for sure must reside on /dev/mtdblk1 partition, but they're probably somehow coded/obfuscated. I couldn't find anything similar to MAC of my own n810 there. Thanks. -- Max