Results 1 to 4 of 4

Thread: Creating a WiFi network from LAN

  1. #1
    Join Date
    Dec 2008
    Location
    Antwerp, Belgium
    Posts
    140

    Default Creating a WiFi network from LAN

    I am running OpenSuse linux 13.1, it has KNetworkmanager to control the network.
    Now this seems like an eay task (my cell phone can do it with 1 push on a button). I am connected by cable and I want my phone to be able to access the internet through WiFi.
    I googled around and I found out this is sometimes called an ad-hoc network. So I created a new wireless network, set mode to ad-hoc, no security (for now). But nothing happens, it just stands there between all my other configured networks... Am I missing a simple button press (I surely hope so).
    I googled a bit further and found hostapd. I was reluctant to start scripting for this, it should be able to be done through the gui no? Anyway, based on the instructions found here, I checked some things.
    >lspci -k | grep -A 3 -i "network"
    01:00.0 Network controller: Intel Corporation Centrino Advanced-N 6235 (rev 24)
    Subsystem: Intel Corporation Centrino Advanced-N 6235 AGN
    Kernel driver in use: iwlwifi
    Kernel modules: iwlwifi

    >modinfo ath9k | grep 'depend'
    depends: ath9k_hw,ath9k_common,mac80211,ath,cfg80211

    >hostapd /home/dorien/.hostapd-test.conf
    Configuration file: /home/dorien/.hostapd-test.conf
    nl80211: Failed to set interface wlp1s0 into AP mode
    nl80211 driver initialization failed.
    Probably my driver is not supported? was not the way to go? Did I use a wrong driver?
    with .hostapd-test.conf being:
    interface=wlp1s0
    driver=nl80211
    ssid=test
    channel=1
    Is the latter the way to go or can I get ad-hoc to work?
    Thanks for any suggestions.


    ps: this post was also done at http://superuser.com/questions/73083...twork-from-lan

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,324
    Blog Entries
    15

    Default Re: Creating a WiFi network from LAN

    On Wed 19 Mar 2014 02:46:02 PM CDT, Dorax wrote:


    I am running
    OpenSuse linux 13.1, it has KNetworkmanager to control the network.
    Now this seems like an eay task (my cell phone can do it with 1 push
    on a button). I am connected by cable and I want my phone to be able to
    access the internet through WiFi.
    <snip>
    Hi
    The hostapd application;
    Code:
    Information for package hostapd:
    --------------------------------
    Repository: openSUSE 13.1 OSS
    Name: hostapd
    Version: 2.0-2.2.1
    Arch: x86_64
    Vendor: openSUSE
    Installed: No
    Status: not installed
    Installed Size: 1.2 MiB
    Summary: Turns Your WLAN Card into a WPA capable Access Point
    Description:
    hostapd is a user space daemon for access point and authentication
    servers. It implements IEEE 802.11 access point management, IEEE
    802.1X/WPA/WPA2/EAP Authenticators, RADIUS client, EAP server, and
    RADIUS authentication server. Currently, hostapd supports HostAP,
    madwifi, and prism54 drivers. It also supports wired IEEE 802.1X
    authentication via any ethernet driver.
    http://forums.opensuse.org/showthrea...n-Access-Point

    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.1 Kernel 3.11.10-7-desktop
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!


  3. #3
    Join Date
    Dec 2008
    Location
    Antwerp, Belgium
    Posts
    140

    Default Re: Creating a WiFi network from LAN

    This seems to be a real problem with my driver in opensuse.

    Here is some extra information about my problem.

    When I try to start hostapd it says:

    hostapd /etc/hostapd.conf

    Configuration file: /etc/hostapd.conf nl80211: Failed to set interface wlp1s0 into AP mode nl80211 driver initialization failed


    So I guess my card does not support AP mode, so what to do now? How do I get a hotspot?

  4. #4
    Join Date
    Jun 2008
    Location
    Kansas City Area, Missouri, USA
    Posts
    7,236

    Default Re: Creating a WiFi network from LAN

    On 04/18/2014 07:06 PM, Dorax wrote:
    >
    > This seems to be a real problem with my driver in opensuse.
    >
    > Here is some extra information about my problem.
    >
    > When I try to start hostapd it says:
    >
    > hostapd /etc/hostapd.conf
    >
    > Configuration file: /etc/hostapd.conf nl80211: Failed to set interface
    > wlp1s0 into AP mode nl80211 driver initialization failed
    >
    >
    > So I guess my card does not support AP mode, so what to do now? How do I
    > get a hotspot?


    As you know, not all wireless drivers support nl80211 commands. As you failed to
    specify what device you have, I can only guess.

    As always, I recommend that you spend the money to buy an actual AP if you want
    to set up a hot spot. There is a Linksys WRT54G V8 on E-bay for $15 with free
    shipping. That one can not run openWRT, but the standard firmware works OK.



Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •