<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>7253</bug_id>
          
          <creation_ts>2015-01-26 20:26:15 +0000</creation_ts>
          <short_desc>connman wifi scans faulty in combination with wpa-supplicant and autoscan</short_desc>
          <delta_ts>2015-02-19 09:57:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>connectivity</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>possible backport for 1.7 (maybe 1.6 if needed)</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.8 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>tkorthals</reporter>
          <assigned_to name="Cristian Iorga">cristian.iorga</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>48291</commentid>
    <comment_count>0</comment_count>
    <who name="">tkorthals</who>
    <bug_when>2015-01-26 20:26:15 +0000</bug_when>
    <thetext>As mentioned by this [1] eMail conversation, wpa-supplicant itself is faulty in scanning especially hidden networks.
In combination with the current version of connman, this results into the problem that it&apos;ll never connects to hidden networks until one scans explicitly by using &quot;iwlist&quot; command.
Tomasz Bursztyka recommended to disable CONFIG_AUTOSCAN in wpa_supplicant, so that connman can use it&apos;s own method for scanning networks.
We tested his proposal with the current daisy branch by disabling &quot;CONFIG_AUTOSCAN_EXPONENTIAL&quot; in &quot;meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/defconfig&quot; and now our wifi works like a charm.
After the conversation he also removed his recommendations for setting up wpa_supplicant with this faulty defconfig [2], [3].

Additionally, Tomasz removed the scanning method via wpa_supplicant over dbus at all [4].

All patches are already applied by Patrik Flykt in the connman master branch.

So I see two possibilities:
1. One can disable CONFIG_AUTOSCAN* in the defconfig of wpa_supplicant if connman is choosen.
2. Backporting the patch of [4], so that no changes needs to be done for wpa_supplicant.

[1] https://lists.connman.net/pipermail/connman/2015-January/018691.html
[2] https://lists.connman.net/pipermail/connman/2015-January/018692.html
[3] https://lists.connman.net/pipermail/connman/2015-January/018697.html
[4] https://lists.connman.net/pipermail/connman/2015-January/018698.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48582</commentid>
    <comment_count>1</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-02-05 12:37:18 +0000</bug_when>
    <thetext>Investigation started.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48583</commentid>
    <comment_count>2</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-02-05 12:39:28 +0000</bug_when>
    <thetext>In connman 1.28, wpa_supplicant autoscan support has been removed.
As such, after the upgrade, problem will be, most probably, solved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48584</commentid>
    <comment_count>3</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-02-05 12:40:26 +0000</bug_when>
    <thetext>Put on hold until after connman upgrade to v1.28 in poky master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48731</commentid>
    <comment_count>4</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-02-11 16:17:49 +0000</bug_when>
    <thetext>Patch sent for review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48920</commentid>
    <comment_count>5</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-02-19 09:57:32 +0000</bug_when>
    <thetext>Fixed with commit: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=9e938033722519a620f3d1b267024e33de924388</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>