Naipaul Ojar | 17 Apr 02:54 2013
Picon

Support for intel 6300 AGN, hostapd 1.0-3 Fedora 18

I want to configure a hotspot on my laptop using hostapd and I have the following configuration:-
http://nims11.wordpress.com/2012/04/27/hostapd-the-linux-way-to-create-virtual-wifi-access-point/

1) lspci -k | grep -A 3 -i "network"
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
    Subsystem: Lenovo Device 21ce
    Kernel driver in use: e1000e
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
--
03:00.0 Network controller: Intel Corporation Centrino Ultimate-N 6300 (rev 35)
    Subsystem: Intel Corporation Centrino Ultimate-N 6300 3x3 AGN
    Kernel driver in use: iwlwifi

2) modinfo iwlwifi | grep depend
depends:        cfg80211

3) uname -r
3.8.6-203.fc18.x86_64
 - Fedora does not have the kernel or header files to support hostapd v2.0, without the netlink header files.
=========
  CC  ../src/drivers/driver_hostap.c
../src/drivers/driver_nl80211.c:19:31: fatal error: netlink/genl/genl.h: No such file or directory
compilation terminated.
make: *** [../src/drivers/driver_nl80211.o] Error 1
=========

4) cat hostapd-naipsHotSpot.conf
#change wlan0 to your wireless device
interface=wlan0
#driver=iwlwifi
driver=cfg80211
ssid=naipsHotSpot
channel=1

5) rpm -qa | grep hostapd
hostapd-1.0-3.fc18.x86_64

When I run the command:-
sudo hostapd ~/hostapd-naipsHotSpot.conf
Configuration file: /home/nojar/hostapd-naipsHotSpot.conf
Line 3: invalid/unknown driver 'iwlwifi'
1 errors found in configuration file '/home/nojar/hostapd-naipsHotSpot.conf'

I was quite surprised to see that other users have gotten this device to work.

Can anyone point out what I am doing wrong.

  ~~0~0~0~~
_______________________________________________
HostAP mailing list
HostAP <at> lists.shmoo.com
http://lists.shmoo.com/mailman/listinfo/hostap
Dan Williams | 17 Apr 15:19 2013
Picon

Re: Support for intel 6300 AGN, hostapd 1.0-3 Fedora 18

On Wed, 2013-04-17 at 00:54 +0000, Naipaul Ojar wrote:
> I want to configure a hotspot on my laptop using hostapd and I have the following configuration:-
> http://nims11.wordpress.com/2012/04/27/hostapd-the-linux-way-to-create-virtual-wifi-access-point/
> 
> 1) lspci -k | grep -A 3 -i "network"
> 00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
>     Subsystem: Lenovo Device 21ce
>     Kernel driver in use: e1000e
> 00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host
Controller #2 (rev 04)
> --
> 03:00.0 Network controller: Intel Corporation Centrino Ultimate-N 6300 (rev 35)
>     Subsystem: Intel Corporation Centrino Ultimate-N 6300 3x3 AGN
>     Kernel driver in use: iwlwifi
> 
> 2) modinfo iwlwifi | grep depend
> depends:        cfg80211
> 
> 3) uname -r
> 3.8.6-203.fc18.x86_64
>  - Fedora does not have the kernel or header files to support hostapd v2.0, without the netlink header files.
> =========
>   CC  ../src/drivers/driver_hostap.c
> ../src/drivers/driver_nl80211.c:19:31: fatal error: netlink/genl/genl.h: No such file or directory
> compilation terminated.
> make: *** [../src/drivers/driver_nl80211.o] Error 1

Install libnl3-devel and then make sure you have CONFIG_LIBNL20=y in
your build config.

Dan

> =========
> 
> 4) cat hostapd-naipsHotSpot.conf
> #change wlan0 to your wireless device
> interface=wlan0
> #driver=iwlwifi
> driver=cfg80211
> ssid=naipsHotSpot
> channel=1
> 
> 5) rpm -qa | grep hostapd
> hostapd-1.0-3.fc18.x86_64
> 
> When I run the command:-
> sudo hostapd ~/hostapd-naipsHotSpot.conf
> Configuration file: /home/nojar/hostapd-naipsHotSpot.conf
> Line 3: invalid/unknown driver 'iwlwifi'
> 1 errors found in configuration file '/home/nojar/hostapd-naipsHotSpot.conf'
> 
> I was quite surprised to see that other users have gotten this device to work.
> 
> Can anyone point out what I am doing wrong.
> 
>   ~~0~0~0~~
>  		 	   		  
> _______________________________________________
> HostAP mailing list
> HostAP <at> lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
Naipaul Ojar | 17 Apr 18:29 2013
Picon

RE: Support for intel 6300 AGN, hostapd 1.0-3 Fedora 18

Hi Dan,

Thanks for your advice on how to compile the hostapd v2.0. I did install
  1. Package libnl3-devel.x86_64 0:3.2.21-1.fc18 will be installed
  2. I did add the line for CONFIG_LIBNL20=y in the .config to build the hostapd

$ which hostapd
/sbin/hostapd

I copied the following to /sbin   , after backing up the original two files.
   hostapd
   hostapd_cli

I have seen other users stating other issues using 'iwlwifi', but I cannot seem to get
invoking hostapd

Results:-
===========================

sudo hostapd ~/hostapd-naipsHotSpot.conf
Configuration file: /home/nojar/hostapd-naipsHotSpot.conf
Line 3: invalid/unknown driver 'iwlwifi'
1 errors found in configuration file '/home/nojar/hostapd-naipsHotSpot.conf'



$ lspci -k | grep -A 3 -i "network"
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
    Subsystem: Lenovo Device 21ce
    Kernel driver in use: e1000e
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
--
03:00.0 Network controller: Intel Corporation Centrino Ultimate-N 6300 (rev 35)
    Subsystem: Intel Corporation Centrino Ultimate-N 6300 3x3 AGN
    Kernel driver in use: iwlwifi
0d:00.0 System peripheral: Ricoh Co Ltd MMC/SD Host Controller (rev 08)

$ hostapd -v
hostapd v2.0
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2012, Jouni Malinen <j <at> w1.fi> and contributors
[nojar <at> naipaulpc ~]$ modinfo iwlwifi | grep depend
depends:        cfg80211

$ cat hostapd-naipsHotSpot.conf
#change wlan0 to your wireless device
interface=wlan0
driver=iwlwifi
#driver=cfg80211
ssid=naipsHotSpot
channel=1

$ ifconfig -a | egrep "Link|inet|: flag|^$"
em1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.65  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::f2de:f1ff:fe67:8474  prefixlen 64  scopeid 0x20<link>

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>

virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255

virbr0-nic: flags=4098<BROADCAST,MULTICAST>  mtu 1500

vmnet1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.96.1  netmask 255.255.255.0  broadcast 192.168.96.255
        inet6 fe80::250:56ff:fec0:1  prefixlen 64  scopeid 0x20<link>

vmnet8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.100.1  netmask 255.255.255.0  broadcast 192.168.100.255
        inet6 fe80::250:56ff:fec0:8  prefixlen 64  scopeid 0x20<link>

wc0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1348
        inet 9.167.243.31  netmask 255.255.252.0  destination 9.167.243.31

wlan0: flags=4098<BROADCAST,MULTICAST>  mtu 1500



Best Regards
Naipaul Ojar
 
  ~~0~0~0~~
_______________________________________________
HostAP mailing list
HostAP <at> lists.shmoo.com
http://lists.shmoo.com/mailman/listinfo/hostap
Dan Williams | 17 Apr 19:17 2013
Picon

Re: Support for intel 6300 AGN, hostapd 1.0-3 Fedora 18

On Wed, 2013-04-17 at 16:29 +0000, Naipaul Ojar wrote:
> Hi Dan,
> 
> Thanks for your advice on how to compile the hostapd v2.0. I did install
> Package libnl3-devel.x86_64 0:3.2.21-1.fc18 will be installedI did add the line for CONFIG_LIBNL20=y
in the .config to build the hostapd
> 
> $ which hostapd
> /sbin/hostapd
> 
> I copied the following to /sbin   , after backing up the original two files.
>    hostapd
>    hostapd_cli
> 
> I have seen other users stating other issues using 'iwlwifi', but I cannot seem to get
> invoking hostapd

That's the kernel<->hardware driver, but that's not a hostapd driver.
You need a hostap<->kernel driver, which is the "driver" that hostap is
talking about.  For that, the appropriate hostap driver is "nl80211".

Dan

> Results:-
> ===========================
> 
> sudo hostapd ~/hostapd-naipsHotSpot.conf
> Configuration file: /home/nojar/hostapd-naipsHotSpot.conf
> Line 3: invalid/unknown driver 'iwlwifi'
> 1 errors found in configuration file '/home/nojar/hostapd-naipsHotSpot.conf'
> 
> 
> 
> $ lspci -k | grep -A 3 -i "network"
> 00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
>     Subsystem: Lenovo Device 21ce
>     Kernel driver in use: e1000e
> 00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host
Controller #2 (rev 04)
> --
> 03:00.0 Network controller: Intel Corporation Centrino Ultimate-N 6300 (rev 35)
>     Subsystem: Intel Corporation Centrino Ultimate-N 6300 3x3 AGN
>     Kernel driver in use: iwlwifi
> 0d:00.0 System peripheral: Ricoh Co Ltd MMC/SD Host Controller (rev 08)
> 
> $ hostapd -v
> hostapd v2.0
> User space daemon for IEEE 802.11 AP management,
> IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
> Copyright (c) 2002-2012, Jouni Malinen <j <at> w1.fi> and contributors
> [nojar <at> naipaulpc ~]$ modinfo iwlwifi | grep depend
> depends:        cfg80211
> 
> $ cat hostapd-naipsHotSpot.conf
> #change wlan0 to your wireless device
> interface=wlan0
> driver=iwlwifi
> #driver=cfg80211
> ssid=naipsHotSpot
> channel=1
> 
> $ ifconfig -a | egrep "Link|inet|: flag|^$"
> em1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
>         inet 192.168.0.65  netmask 255.255.255.0  broadcast 192.168.0.255
>         inet6 fe80::f2de:f1ff:fe67:8474  prefixlen 64  scopeid 0x20<link>
> 
> lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
>         inet 127.0.0.1  netmask 255.0.0.0
>         inet6 ::1  prefixlen 128  scopeid 0x10<host>
> 
> virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
>         inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
> 
> virbr0-nic: flags=4098<BROADCAST,MULTICAST>  mtu 1500
> 
> vmnet1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
>         inet 192.168.96.1  netmask 255.255.255.0  broadcast 192.168.96.255
>         inet6 fe80::250:56ff:fec0:1  prefixlen 64  scopeid 0x20<link>
> 
> vmnet8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
>         inet 192.168.100.1  netmask 255.255.255.0  broadcast 192.168.100.255
>         inet6 fe80::250:56ff:fec0:8  prefixlen 64  scopeid 0x20<link>
> 
> wc0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1348
>         inet 9.167.243.31  netmask 255.255.252.0  destination 9.167.243.31
> 
> wlan0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
> 
> 
> 
> Best Regards
> 
> Naipaul Ojar
> 
>  
> 
>   ~~0~0~0~~
>  		 	   		  

Gmane