From: Sebastian Reichel <sre@kernel.org>
To: "Pali Rohár" <pali.rohar@gmail.com>
Cc: Gery Kahn <gery.kahn@gmail.com>, Shahar Lev <shahar@wizery.com>,
Kalle Valo <kvalo@codeaurora.org>,
linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
Pavel Machek <pavel@ucw.cz>,
Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Subject: Re: wl1251 NVS calibration data format
Date: Sat, 17 Dec 2016 13:03:50 +0100 [thread overview]
Message-ID: <20161217120350.phnlfhklwfqqgbjr@earth> (raw)
In-Reply-To: <201612171214.50820@pali>
[-- Attachment #1: Type: text/plain, Size: 2595 bytes --]
Hi,
On Sat, Dec 17, 2016 at 12:14:50PM +0100, Pali Rohár wrote:
> On Saturday 17 December 2016 10:37:05 Sebastian Reichel wrote:
> > On Fri, Dec 16, 2016 at 12:01:48PM +0100, Pali Rohár wrote:
> > > Hi! Do you know format of wl1251 NVS calibration data file?
> > >
> > > I found that there is tool for changing NVS file for wl1271 and
> > > newer chips (so not for wl1251!) at:
> > > https://github.com/gxk/ti-utils
> > >
> > > And wl1271 has in NVS data already place for MAC address. And in
> > > wlcore (for wl1271 and newer) there is really kernel code which is
> > > doing something with MAC address in NVS, see:
> > > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tre
> > > e/drivers/net/wireless/ti/wlcore/boot.c#n352
> > >
> > > So... I would like to know if in wl1251 NVS calibration file is
> > > also some place for MAC address or not.
> > >
> > > Default wl1251 NVS calibration file is available in linux-firmware:
> > > https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmwar
> > > e.git/tree/ti-connectivity/wl1251-nvs.bin
> >
> > Pandora people [0] have a description of the format at [1].
> >
> > [0] https://pandorawiki.org/WiFi
> > [1] http://notaz.gp2x.de/misc/pnd/wl1251/nvs_map.txt
>
> Thank you very very much!
You are welcome.
> I tried to search for something, but I have not find anything.
> In that description is something about STA mac address:
>
> 01a 6d //STA_ADDR_L Register Address. (STA MAC Address)
> 01b 54 //
> 01c 00 //STA_ADDR_L Register
> 01d 00 //
> 01e 32 //
> 01f 28 //
> 020 00 //STA_ADDR_H Register Data.
>
> STA would be abbreviation for station and so it should be really set to
> mac address of that chip?
Yes, STA is a common abbreviation:
https://en.wikipedia.org/wiki/Station_(networking)
> If yes, that could allow us to set permanent MAC address at time when
> loading & sending NVS calibration data... Exactly same as wl1271 and new
> drivers are working.
>
> I will try to play with driver if it is really truth!
Thanks for your work.
> I already looked into original TI's multiplatform HAL driver for wl1251
> chip (big mess) and found there that there is wl1251 command to read mac
> address from chip. It could be done by this wl1251 function:
>
> wl1251_cmd_interrogate(wl, DOT11_STATION_ID, mac, sizeof(*mac))
>
> (same id as for setting permanent mac address, but opposite to read it)
-- Sebastian
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2016-12-17 12:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-16 11:01 wl1251 NVS calibration data format Pali Rohár
2016-12-16 11:12 ` Pali Rohár
2016-12-17 9:37 ` Sebastian Reichel
2016-12-17 11:14 ` Pali Rohár
2016-12-17 12:03 ` Sebastian Reichel [this message]
2016-12-17 13:10 ` MAC address in wl1251 NVS data (Was: Re: wl1251 NVS calibration data format) Pali Rohár
2016-12-24 12:57 ` wl1251 NVS calibration data format Pali Rohár
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161217120350.phnlfhklwfqqgbjr@earth \
--to=sre@kernel.org \
--cc=gery.kahn@gmail.com \
--cc=ivo.g.dimitrov.75@gmail.com \
--cc=kvalo@codeaurora.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=pali.rohar@gmail.com \
--cc=pavel@ucw.cz \
--cc=shahar@wizery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox