Bug 16768

Summary: wpa_supplicant isn't installed with Wireless USB plugged in b/c of missing firmwares
Product: Mageia Reporter: Alket Rexhepi <alketii>
Component: InstallerAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: alketii, marja11, thierry.vignaud, tmb
Version: 5Keywords: NEEDINFO
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: ldetect, drakx-installer-stage2 CVE:
Status comment:
Attachments: The required file, report.bug.xz

Description Alket Rexhepi 2015-09-17 19:58:46 CEST
Description of problem:
wpa_supplicant isn't installed with Wireless USB plugged in.

Version-Release number of selected component (if applicable):
Atheros Communications, Inc. AR9271 802.11n

How reproducible:
Install Mageia with a Wireless USB plugged in

Steps to Reproduce:
1. On first run, you can't connect to a wifi since it requires wpa_supplicant

Error Log:
/root/drakx/report.bug.xz
http://s000.tinyupload.com/index.php?file_id=21723489908222912681


Reproducible: 

Steps to Reproduce:
Alket Rexhepi 2015-09-17 20:07:37 CEST

CC: (none) => alketii

Comment 1 Alket Rexhepi 2015-09-17 21:01:04 CEST
Created attachment 7013 [details]
The required file, report.bug.xz
Comment 2 Samuel Verschelde 2015-09-17 21:04:12 CEST
Thierry, Thomas, during classical installation wpa_supplicant was not installed, according to Alket. Could you have a look at the logs and see if there's a bug?
Comment 3 Samuel Verschelde 2015-09-17 21:04:38 CEST
Thierry, Thomas, during classical installation wpa_supplicant was not installed, according to Alket. Could you have a look at the logs and see if there's a bug?

CC: (none) => thierry.vignaud, tmb

Comment 4 Thomas Backlund 2015-10-13 12:17:32 CEST
Hm,
thats probably because we didn't detect it properly:

unknown         : ATHEROS|USB2.0 WLAN [(Defined at Interface level)]


I wonder if we should start needed parts for wireless on all default installs regardless of detecting it's need during install or not ...

We get more and more use-cases that would need wireless support
Comment 5 Thierry Vignaud 2015-10-13 12:49:08 CEST
Or we could like the harddrake GUI does and install the needed parts when description matches some keywords (eg: "WLAN")

Btw I've locally fixed this bogus commit:
http://gitweb.mageia.org/software/drakx/commit/perl-install/harddrake/data.pm?id=5debe867e12c9b062ee15fe59f09e8a7b34627b2


I'm curious: what does report lspcidrake -v|grep ATHEROS on the installed system?
The output might have missed the driver during installation time b/c we only have a subset of kernel modules at that stage.

Keywords: (none) => NEEDINFO

Comment 6 Thomas Backlund 2015-10-13 13:19:43 CEST
(In reply to Thierry Vignaud from comment #5)
> Or we could like the harddrake GUI does and install the needed parts when
> description matches some keywords (eg: "WLAN")


Yeah, but when people then have a system installed that did not have that hw available at install time, they may think "oh, I could plug a usb wifi" and oops :)

So we should somehow better support that case too :)
Comment 7 Marja Van Waes 2016-06-05 14:46:06 CEST
(In reply to Thierry Vignaud from comment #5)

> 
> 
> I'm curious: what does report lspcidrake -v|grep ATHEROS on the installed
> system?


@ Alket

Can you please reply to that question: what do you see when entering (in a terminal or konsole):

  lspcidrake -v|grep ATHEROS

CC: (none) => marja11

Comment 8 Thierry Vignaud 2016-06-18 07:28:49 CEST
Marja: We already have it in report.bug.xz
Thierry Vignaud 2016-06-18 07:28:57 CEST

Summary: wpa_supplicant isn't installed with Wireless USB plugged in. => wpa_supplicant isn't installed with Wireless USB plugged in

Comment 9 Marja Van Waes 2016-06-18 08:34:15 CEST
(In reply to Thierry Vignaud from comment #8)
> Marja: We already have it in report.bug.xz

Yeah, but :

(In reply to Thierry Vignaud from comment #5)
<snip>
> 
> 
> I'm curious: what does report lspcidrake -v|grep ATHEROS on the installed
> system?
> The output might have missed the driver during installation time b/c we only
> have a subset of kernel modules at that stage.
Comment 10 Thierry Vignaud 2016-06-18 10:30:48 CEST
argh. Indeed.
Alket?
Comment 11 Alket Rexhepi 2016-06-20 09:43:38 CEST
(In reply to Thierry Vignaud from comment #10)
> argh. Indeed.
> Alket?

Hi,
I am very sorry for late reply, I reinstalled the system like 2 times up until now (for various reasons because of my experiments :p) also I got a direct cable.
I will try tonight to install in another disk and report back.

Thanks
Comment 12 Thierry Vignaud 2016-06-30 17:02:42 CEST
I've altered rpmsrate so that we do pull the wireless packages even if we miss the actual driver in the installer (which would break the detection).
Supposed fixed.

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 13 Mageia Robot 2016-06-30 17:21:07 CEST
commit 089ae961e698a7ed88d000fa1d1478e8780c0804
Author: Thierry Vignaud <thierry.vignaud@...>
Date:   Thu Jun 30 17:13:47 2016 +0200

    include some missing wireless drivers (mga#16768)
---
 Commit Link:
   http://gitweb.mageia.org/software/drakx/commit/?id=089ae961e698a7ed88d000fa1d1478e8780c0804
Comment 14 Thierry Vignaud 2016-06-30 17:24:51 CEST
Though ath9k_htc did got loaded so that would be the right driver and we included in the installer.
I don't understand why lspcidrake failed to list this driver during install...

Source RPM: (none) => ldetect, drakx-installer-stage2

Comment 15 Thierry Vignaud 2016-06-30 17:26:36 CEST
Actually, I think it's because firmwares were not included and thus the driver eventually got unloaded:
usb 3-10: ath9k_htc: Firmware htc_9271.fw requested
usb 3-10: Direct firmware load for htc_9271.fw failed with error -2
usb 3-10: ath9k_htc: Failed to get firmware htc_9271.fw
usb 3-10: ath9k_htc: USB layer deinitialized

It would have worked if doing a network install with boot-nonfree.iso (which includes those firmwares)
Thierry Vignaud 2016-06-30 17:30:50 CEST

Summary: wpa_supplicant isn't installed with Wireless USB plugged in => wpa_supplicant isn't installed with Wireless USB plugged in b/c of missing firmwares