This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

wpa_supplicant in pandabaord

Other Parts Discussed in Thread: WL1271

Hi,

     I have ported a linux based OS for pandaboard. The board boots fine and is able to work as a STA. But when i use wpa_supplicant, i get some error while its scanning.. where can i find the updated driver code for wl1271.

Thanks in advance

Sheriff Manzoor

  • Hello,

    The following link contains source trees for OMAP3 & OMAP4 devices:
    http://omappedia.org/wiki/Source_Trees

    Other source trees are:

    For the latest android kernels (git trees) for OMAP4 (blaze & blaze tablet) see the release notes in the following link:
    http://omappedia.org/wiki/Android:_Working_with_pre-built_binaries

    Best Regards,

    Yordan

  • Thanks Yordan,

                        The OS which i am using is Openwrt and I have ported it to the pandaboard. The pandaboard boots fine and the wifi is enabled . Now i have inlcuded the Wpa_supplicant code in the for the STA capability. When I give "Wifi up" command the wifi turns ON and it generates a wpa_supplicant-wlan0.conf file in the /var/run/ . I need to enable one more functionality from the default wpa_supplicant.conf file , so i copied the wpa_supplicant.conf file from the build directory and uncommented the required functionalities. But when i ran the wpa_supplicant.conf using the command wpa_supplicant -Dnl80211 -iwlan0 -c wpa_supplicant.conf, i get error mentionoing that i have to manually remove the /var/run/wpa_supplicant-wlan0/wlan0 inorder to make it work. So i removed the file and tried to rerun the command. But the command is not giving any  effect. What ever command i give takes no effect like reboot,wifi ,etc. I tried giving logread and there is no log after the wifi has gone to Wlcore down.

    Can you tell me if the procedure iam following to build and execute the code is right?

    Thanks in advance

    Sheriff

  • Sheriff,

    why are you using wpa-suplicant, the newer version of the openwrt use hostapd or even wpad? I suggest you try with one of the following  packets.

    Regards,

    Boyko

  • Hi Boyko,

                 I want my device to work as an STA, will the hostapd have the complete support for to handle the STA capability? But even then if i use hostapd or wpad, the download that is happening is only hostapd-20130405.tar.bz2 and is extracted completely in the proper place.

                 I compared this because i am using pandaboard as an AP and also a STA. So in one board i have build the code with hostapd (AP property) selected from the make menuconfig and in the other i have selected the wpa_supplicant for the STA capability.

                And finally i will boot the board and run the hostapd.conf file with hostapd command in one board and wpa_supplicant.conf file with wpa_supplicant command in other board.

               For the first 1 or 2 time the wpa_supplicant works fine. But after that when i give the wpa_supplicant nothing happens. Even reboot command doesnot happens. it remains ideal. 

               I havent used wpad completely, i will update you on that result ASAP.

              I would really need your support in this.

    Please find the error code that i usually get

     

    *******************************************************************************************************************************************

    oot@OpenWrt:/# f[ 1259.267883] wlcore: ERROR command complete timeout
    [ 1259.273101] ------------[ cut here ]------------
    [ 1259.278045] WARNING: at /home/user/Desktop/panda_images/attitude/attitude_adjustment/build_dir/linux-omap4/compat-wireless-2013-06-27/drivers/net/wireless/ti/wlcore/main.c:777 0xbf0f0f60()
    [ 1259.295745] Modules linked in: wl12xx(O) wlcore_sdio(O) wlcore(O) ppp_async ppp_generic slhc mac80211(O) lib80211_crypt_tkip(O) lib80211_crypt_ccmp(O) lib80211_crypt_wep(O) lib80211(O) crc_ccitt ipv6 cfg80211(O) compat(O) arc4 aes_generic crypto_algapi
    [ 1259.318054] Backtrace:
    [ 1259.322082] Function entered at [<c0011050>] from [<c02d80d8>]
    [ 1259.328247]  r6:00000309 r5:bf103714 r4:00000000 r3:c0379284
    [ 1259.334259] Function entered at [<c02d80c0>] from [<c002d578>]
    [ 1259.340423] Function entered at [<c002d524>] from [<c002d5b4>]
    [ 1259.343749]  r8:c037e0c0 r7:ecb06c00 r6:ffffff92 r5:0000007d r4:ed27d520
    [ 1259.349090] r3:00000009
    [ 1259.356201] Function entered at [<c002d590>] from [<bf0f0f60>]
    [ 1259.362426] Function entered at [<bf0f0f38>] from [<bf0f41a0>]
    [ 1259.368713]  r4:ed27d520 r3:c0379284
    [ 1259.371826] Function entered at [<bf0f3e28>] from [<bf0f522c>]
    [ 1259.378723] Function entered at [<bf0f51c4>] from [<bf0f5270>]
    [ 1259.384887]  r7:00000001 r6:ecaa3b6a r5:ecb06c00 r4:00000000
    [ 1259.390899] Function entered at [<bf0f5254>] from [<bf0fab1c>]
    [ 1259.397064] Function entered at [<bf0faa7c>] from [<bf11012c>]
    [ 1259.403228]  r8:ed111af0 r7:00102005 r6:ed27d520 r5:ed111ae8 r4:00000000
    [ 1259.403228] r3:00000001
    [ 1259.410156] Function entered at [<bf110118>] from [<bf0efd00>]
    [ 1259.415405] Function entered at [<bf0ef1b0>] from [<bf096500>]
    [ 1259.425262] Function entered at [<bf09640c>] from [<bf0cf7d4>]
    [ 1259.431396]  r6:ed27cb20 r5:ed111440 r4:ed27d24c
    [ 1259.436309] Function entered at [<bf0cf110>] from [<bf0bd100>]
    [ 1259.436309] Function entered at [<bf0bcf44>] from [<bf0bd600>]
    [ 1259.448608] Function entered at [<bf0bd1ec>] from [<bf0a2568>]
    [ 1259.449066] Function entered at [<bf0a2350>] from [<c0042ca0>]
    [ 1259.461090] Function entered at [<c0042a74>] from [<c0043224>]
    [ 1259.467285] Function entered at [<c0042ff8>] from [<c00474b8>]
    [ 1259.473449] Function entered at [<c004742c>] from [<c003093c>]
    [ 1259.479614]  r6:c003093c r5:c004742c r4:ed03decc
    [ 1259.482116] ---[ end trace 41a9245a525cff12 ]---
    [ 1259.484527] wlcore: WARNING CONFIGURE command NOK
    [ 1259.494354] wlcore: WARNING acx ht capabilities setting failed: -110
    [ 1259.501068] wlcore: WARNING Set ht cap failed -110
    [ 1259.506164] wlan0: associated
    [ 1259.509338] wlcore: Reading FW panic log
    [ 1259.509338] wlan0: deauthenticating from 00:13:46:9a:92:5c by local choice (reason=3)
    [ 1259.521728] ------------[ cut here ]------------
    [ 1259.526641] WARNING: at /home/user/Desktop/panda_images/attitude/attitude_adjustment/build_dir/linux-omap4/compat-wireless-2013-06-27/drivers/net/wireless/ti/wlcore/cmd.c:63 0xbf0f3e5c()
    [ 1259.544158] Modules linked in: wl12xx(O) wlcore_sdio(O) wlcore(O) ppp_async ppp_generic slhc mac80211(O) lib80211_crypt_tkip(O) lib80211_crypt_ccmp(O) lib80211_crypt_wep(O) lib80211(O) crc_ccitt ipv6 cfg80211(O) compat(O) arc4 aes_generic crypto_algapi
    [ 1259.566955] Backtrace:
    [ 1259.566955] Function entered at [<c0011050>] from [<c02d80d8>]
    [ 1259.573699]  r6:0000003f r5:bf1053c8 r4:00000000 r3:c0379284
    [ 1259.577148] Function entered at [<c02d80c0>] from [<c002d578>]
    [ 1259.577148] Function entered at [<c002d524>] from [<c002d5b4>]
    [ 1259.595123]  r8:ed1ffe80 r7:ecaf1c80 r6:ed27d520 r5:00000004 r4:ed27d520
    [ 1259.597656] r3:00000009
    [ 1259.604827] Function entered at [<c002d590>] from [<bf0f3e5c>]
    [ 1259.604980] Function entered at [<bf0f3e28>] from [<bf0f41e0>]
    [ 1259.617156] Function entered at [<bf0f41bc>] from [<bf0f66a8>]
    [ 1259.623321] Function entered at [<bf0f6644>] from [<bf0f146c>]
    [ 1259.629486]  r5:ed27d7c0 r4:ed27d7c0
    [ 1259.632812] Function entered at [<bf0f13bc>] from [<c0042ca0>]
    [ 1259.639434] Function entered at [<c0042a74>] from [<c0043224>]
    [ 1259.645629] Function entered at [<c0042ff8>] from [<c00474b8>]
    [ 1259.647613] Function entered at [<c004742c>] from [<c003093c>]
    [ 1259.647613]  r6:c003093c r5:c004742c r4:ed03decc
    [ 1259.662994] ---[ end trace 41a9245a525cff13 ]---
    [ 1259.663238] ------------[ cut here ]------------
    [ 1259.663238] WARNING: at /home/user/Desktop/panda_images/attitude/attitude_adjustment/build_dir/linux-omap4/compat-wireless-2013-06-27/drivers/net/wireless/ti/wlcore/main.c:777 0xbf0f0f60()
    [ 1259.690460] Modules linked in: wl12xx(O) wlcore_sdio(O) wlcore(O) ppp_async ppp_generic slhc mac80211(O) lib80211_crypt_tkip(O) lib80211_crypt_ccmp(O) lib80211_crypt_wep(O) lib80211(O) crc_ccitt ipv6 cfg80211(O) compat(O) arc4 aes_generic crypto_algapi
    [ 1259.714202] Backtrace:
    [ 1259.714202] Function entered at [<c0011050>] from [<c02d80d8>]
    [ 1259.719329]  r6:00000309 r5:bf103714 r4:00000000 r3:c0379284
    [ 1259.725463] Function entered at [<c02d80c0>] from [<c002d578>]
    [ 1259.735107] Function entered at [<c002d524>] from [<c002d5b4>]
    [ 1259.741302]  r8:ed1ffe80 r7:ecaf1c80 r6:fffffffb r5:00000004 r4:ed27d520
    [ 1259.746215] r3:00000009
    [ 1259.746215] Function entered at [<c002d590>] from [<bf0f0f60>]
    [ 1259.757324] Function entered at [<bf0f0f38>] from [<bf0f41a0>]
    [ 1259.763488]  r4:ed27d520 r3:00000009
    [ 1259.763519] Function entered at [<bf0f3e28>] from [<bf0f41e0>]
    [ 1259.773437] Function entered at [<bf0f41bc>] from [<bf0f66a8>]
    [ 1259.773864] Function entered at [<bf0f6644>] from [<bf0f146c>]
    [ 1259.773864]  r5:ed27d7c0 r4:ed27d7c0
    [ 1259.789520] Function entered at [<bf0f13bc>] from [<c0042ca0>]
    [ 1259.795715] Function entered at [<c0042a74>] from [<c0043224>]
    [ 1259.795837] Function entered at [<c0042ff8>] from [<c00474b8>]
    [ 1259.804046] Function entered at [<c004742c>] from [<c003093c>]
    [ 1259.814178]  r6:c003093c r5:c004742c r4:ed03decc
    [ 1259.816711] ---[ end trace 41a9245a525cff14 ]---
    [ 1259.823974] wlcore: ERROR failed to send stop firmware logger command
    [ 1259.831024] wlcore: Hardware recovery in progress. FW ver: Rev 6.3.10.0.133
    [ 1259.838897] wlcore: pc: 0x97a6, hint_sts: 0x00000000 count: 1
    [ 1259.845184] wlcore: down
    [ 1259.850006] ieee80211 phy0: Hardware restart was requested

    *****************************************************************************************************************************************

     

     

    Thanks Boyko

    Sheriff