<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Which command does association?<br>I do not see any commands of both wireless extension and iw for scan, associate.<br><br>--- On <b>Wed, 4/27/11, Tchang Chen (ST-CO/ENG1.3) <i><Chen.Tchang@nl.bosch.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Tchang Chen (ST-CO/ENG1.3) <Chen.Tchang@nl.bosch.com><br>Subject: RE: mac80211 questions<br>To: "hong zhang" <henryzhang62@yahoo.com><br>Cc: "libnl@lists.infradead.org" <libnl@lists.infradead.org><br>Date: Wednesday, April 27, 2011, 5:23 AM<br><br><div id="yiv62061886">
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2">Hello Hong,</font></span></div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2">Thanks for your reply to my libnl
questions.</font></span></div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2">I currently use the old Wireless Extensions to configure my
link.</font></span></div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2">I don't think using Wireless Extensions (in stead of iw) is
the problem, but more the mac80211</font></span></div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2">or even the link to the hardware
signals.</font></span></div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2">After loading the modules (mac80211, rt2x00lib, rt2x00pci
and rt61pci) for a </font></span></div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2">Ralink RT2561 mini-PCI wireless card, I tried to setup a
wireless link</font></span></div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2">(essid, channel, rate, end key off, ap have been
correctly set).</font></span></div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2">I get the following feedback:</font></span></div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2">~ # ifconfig wlan0 192.168.2.2 up<br>phy0 ->
rt2x00lib_request_firmware: Info - Loading firmware file 'rt2561.bin'.<br>phy0
-> rt2x00lib_request_firmware: Info - Firmware detected - version:
0.8.<br>phy0 -> rt2x00lib_request_firmware: Info - Firmware checked -
FW_OK<br>phy0 -> rt2x00lib_load_firmware: Info - Firmware loaded, retval =
0.<br>phy0 -> rt2x00lib_start: Info - Device has been initialized
'0'.<br>phy0 -> rt2x00lib_start: Info - Radio has been enabled
'0'.<br>ieee80211 phy0: device now idle<br>phy0 -> rt2x00mac_conf_tx: Info -
Configured TX queue 0 - CWmin: 3, CWmax: 4, Aifs: 2, TXop: 102.<br>phy0 ->
rt2x00mac_conf_tx: Info - Configured TX queue 1 - CWmin: 4, CWmax: 5, Aifs: 2,
TXop: 188.<br>phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 2 -
CWmin: 5, CWmax: 10, Aifs: 3, TXop: 0.<br>phy0 -> rt2x00mac_conf_tx: Info -
Configured TX queue 3 - CWmin: 5, CWmax: 10, Aifs: 7, TXop: 0.<br><strong><font color="#ff0000">ieee80211 phy0: device no longer idle - scanning<br>ieee80211
phy0: device now idle</font></strong></font></span></div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#800080" face="Arial" size="2"><strong></strong></font></span> </div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2">iwconfig<br>lo no
wireless extensions.</font></span></div>
<div><font color="#0000ff" face="Arial" size="2"></font> </div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2">eth0 no wireless
extensions.</font></span></div>
<div><font color="#0000ff" face="Arial" size="2"></font> </div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2">wlan0 IEEE 802.11bg
ESSID:"CTC"<br>
Mode:Managed Frequency:2.437 GHz <font color="#ff0000">Access Point:
Not-Associated<br></font>
Tx-Power=20 dBm<br>
Retry long limit:7 RTS thr:off Fragment
thr:off<br> Encryption
key:off<br> Power
Management:off</font></span></div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2">The system did not manage to associate with the
AP.</font></span></div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2">Q1: What can be the reason(s) for not obtaining an
association with the AP ?</font></span></div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2">Q2: </font> <font color="#0000ff" face="Arial" size="2">Where can I find more detailed information about the corresponding action
sequences ?</font></span></div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2">Q3: Which source files in mac80211 are involved
?</font></span></div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2"> I could not locate
net/mac80211/ieee80211_sta.c in 2.6.37-4.</font></span></div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2">Q4: Do you perhaps have any further suggestions how to
debug this issue ?</font></span></div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2">Hope you can help me again,</font></span></div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2">Best regards,</font></span></div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2">Chen</font></span></div>
<div dir="ltr" align="left"><span class="yiv62061886007040010-27042011"><font color="#0000ff" face="Arial" size="2"></font></span> </div><font color="#0000ff" face="Arial" size="2"></font><font color="#0000ff" face="Arial" size="2"></font><font color="#0000ff" face="Arial" size="2"></font><br>
<div class="yiv62061886OutlookMessageHeader" dir="ltr" lang="en-us" align="left">
<hr tabindex="-1">
<font face="Tahoma" size="2"><b>From:</b> hong zhang [mailto:henryzhang62@yahoo.com]
<br><b>Sent:</b> Wednesday, April 27, 2011 3:10 AM<br><b>To:</b>
libnl@lists.infradead.org; Tchang Chen (ST-CO/ENG1.3)<br><b>Subject:</b> Re:
Libnl questions<br></font><br></div>
<div></div>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td valign="top"><font color="#0000ff" face="Arial" size="2"></font><br><br>--- On
<b>Tue, 4/26/11, Tchang Chen (ST-CO/ENG1.3)
<i><Chen.Tchang@nl.bosch.com></i></b> wrote:<br>
<blockquote style="padding-left: 5px; margin-left: 5px; border-left: 2px solid rgb(16, 16, 255);"><font color="#0000ff" face="Arial" size="2"></font><br>From: Tchang Chen
(ST-CO/ENG1.3) <Chen.Tchang@nl.bosch.com><br>Subject: Libnl
questions<br>To: "libnl@lists.infradead.org"
<libnl@lists.infradead.org><br>Date: Tuesday, April 26, 2011, 4:16
AM<br><br>
<div id="yiv62061886">
<style>#yiv62061886 .yiv62061886EmailQuote {
PADDING-LEFT:4pt;MARGIN-LEFT:1pt;BORDER-LEFT:#800000 2px solid;}
</style>
<font face="Arial, sans-serif" size="2">
<div>Hi,</div>
<div><font color="#0000ff"></font> </div>
<div>I would like to use iw-0.9.22 in combination with cfg80211, libnl
and Linux kernel 2.6.37-4.</div>
<div>I noticed that cfg80211 is part of the Linux kernel distribution
2.6.37-4.</div>
<div><font color="#0000ff"></font> </div>
<div>Q1: Can I use the latest libnl-3.0 in combination with the
software mentioned above ?</div>
<div> Or do I have to apply an earlier
version ? If so, which version will fit best ?<br><br>ANS: Yes, you
should be able to do it.<br></div>
<div> </div>
<div>Q2: I understand that nl80211 and cfg80211 are intended to replace
Wireless-Extensions.</div>
<div> Do is the additional value of
nl80211 ? Will cfg80211 be sufficient for setup and configuration
?</div>
<div><br>ANS: Yes, iw is degined to communicate with wireless driver
using nl80211/cfg80211 and wireless stack. <br><br></div>
<div>Q3: I suspect that libnl should be implemented as user kernel
module in kernel space.</div>
<div> Is this assumption correct ?</div>
<div><br> ANS: Actually, libnl is used for user space and kernel
space.<br><br></div>
<div>Q4: Are there any other issues, which should be taken in mind
for achieving a succesful implementation ?</div>
<div><br>ANS: You use it and tell us what you find
out.<br> <br></div>
<div>My hardware platform: </div>
<div>PetaLinux v2.1 (embedded Linux 2.6.37-4 for a MicroBlaze softcore
processor on a FPGA)</div>
<div> <br></div>
<div>Hope you can help me with these questions,</div>
<div> </div>
<div>Thx and best regards,</div>
<div> </div>
<div>Chen</div>
<div> </div>
<div> </div>
<div>Chen C. Tchang</div>
<div>BOSCH Security systems B.V.</div>
<div>ST-CO/ENG1.3 Development</div>
<div>Kapittelweg 10,</div>
<div>4827 HG Breda</div>
<div>The Netherlands</div>
<div> </div>
<div> </div></font></div><br>-----Inline Attachment
Follows-----<br><br>
<div class="yiv62061886plainMail">_______________________________________________<br>libnl
mailing list<br><a rel="nofollow">libnl@lists.infradead.org</a><br><a rel="nofollow" target="_blank" href="http://lists.infradead.org/mailman/listinfo/libnl">http://lists.infradead.org/mailman/listinfo/libnl</a><br></div></blockquote></td></tr></tbody></table></div></blockquote></td></tr></table>