Hostapd on a Raspberry Pi 3 with external WiFi card

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I am trying to set an AP on a Raspberry Pi 3 using an external USB WiFi card and hostapd and dsnmasq. I have managed to achieve it using the internal WiFi card but when I try to switch to my external one I got the following error:



$ sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
nl80211: Could not configure driver mode
nl80211: deinit ifname=wlan1 disabled_11b_rates=0
nl80211 driver initialization failed.
wlan1: interface state UNINITIALIZED->DISABLED
wlan1: AP-DISABLED
hostapd_free_hapd_data: Interface wlan1 wasn't started


I believe it is because by default the hostapd is using nl80211 driver. This is the output of lsusb - Bus 001 Device 004: ID 148f:3072 Ralink Technology, Corp. RT3072 Wireless Adapter. And this is the output of lshw



 *-network:1
description: Wireless interface
physical id: 3
bus info: usb@1:1.4
logical name: wlan1
serial: 98:3f:9f:24:a2:00
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=rt2800usb driverversion=4.14.71-v7+ firmware=0.36 ip=10.100.100.254 link=no m
ulticast=yes wireless=IEEE 802.11


So apparently this card is using the rt2080usb driver but when I try to put it inside the hostapd.conf and start manually the hostapd I got the following error:



$ sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
Line 3: invalid/unknown driver 'rt2080usb'
1 errors found in configuration file '/etc/hostapd/hostapd.conf'
Failed to set up interface with /etc/hostapd/hostapd.conf
Failed to initialize interface


And this is my hostapd.conf file:



interface=wlan1
ssid=WiPi
driver=rt2080usb
hw_mode=g
ieee80211n=1
wmm_enabled=1
channel=4
macaddr_acl=0
auth_algs=3
ignore_broadcast_ssid=0
wpa=3
wpa_passphrase=wifipasswordhere
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
ht_capab=[HT20][SHORT-GI-20]









share|improve this question

























    up vote
    0
    down vote

    favorite












    I am trying to set an AP on a Raspberry Pi 3 using an external USB WiFi card and hostapd and dsnmasq. I have managed to achieve it using the internal WiFi card but when I try to switch to my external one I got the following error:



    $ sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf
    Configuration file: /etc/hostapd/hostapd.conf
    nl80211: Could not configure driver mode
    nl80211: deinit ifname=wlan1 disabled_11b_rates=0
    nl80211 driver initialization failed.
    wlan1: interface state UNINITIALIZED->DISABLED
    wlan1: AP-DISABLED
    hostapd_free_hapd_data: Interface wlan1 wasn't started


    I believe it is because by default the hostapd is using nl80211 driver. This is the output of lsusb - Bus 001 Device 004: ID 148f:3072 Ralink Technology, Corp. RT3072 Wireless Adapter. And this is the output of lshw



     *-network:1
    description: Wireless interface
    physical id: 3
    bus info: usb@1:1.4
    logical name: wlan1
    serial: 98:3f:9f:24:a2:00
    capabilities: ethernet physical wireless
    configuration: broadcast=yes driver=rt2800usb driverversion=4.14.71-v7+ firmware=0.36 ip=10.100.100.254 link=no m
    ulticast=yes wireless=IEEE 802.11


    So apparently this card is using the rt2080usb driver but when I try to put it inside the hostapd.conf and start manually the hostapd I got the following error:



    $ sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf
    Configuration file: /etc/hostapd/hostapd.conf
    Line 3: invalid/unknown driver 'rt2080usb'
    1 errors found in configuration file '/etc/hostapd/hostapd.conf'
    Failed to set up interface with /etc/hostapd/hostapd.conf
    Failed to initialize interface


    And this is my hostapd.conf file:



    interface=wlan1
    ssid=WiPi
    driver=rt2080usb
    hw_mode=g
    ieee80211n=1
    wmm_enabled=1
    channel=4
    macaddr_acl=0
    auth_algs=3
    ignore_broadcast_ssid=0
    wpa=3
    wpa_passphrase=wifipasswordhere
    wpa_key_mgmt=WPA-PSK
    wpa_pairwise=TKIP
    rsn_pairwise=CCMP
    ht_capab=[HT20][SHORT-GI-20]









    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I am trying to set an AP on a Raspberry Pi 3 using an external USB WiFi card and hostapd and dsnmasq. I have managed to achieve it using the internal WiFi card but when I try to switch to my external one I got the following error:



      $ sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf
      Configuration file: /etc/hostapd/hostapd.conf
      nl80211: Could not configure driver mode
      nl80211: deinit ifname=wlan1 disabled_11b_rates=0
      nl80211 driver initialization failed.
      wlan1: interface state UNINITIALIZED->DISABLED
      wlan1: AP-DISABLED
      hostapd_free_hapd_data: Interface wlan1 wasn't started


      I believe it is because by default the hostapd is using nl80211 driver. This is the output of lsusb - Bus 001 Device 004: ID 148f:3072 Ralink Technology, Corp. RT3072 Wireless Adapter. And this is the output of lshw



       *-network:1
      description: Wireless interface
      physical id: 3
      bus info: usb@1:1.4
      logical name: wlan1
      serial: 98:3f:9f:24:a2:00
      capabilities: ethernet physical wireless
      configuration: broadcast=yes driver=rt2800usb driverversion=4.14.71-v7+ firmware=0.36 ip=10.100.100.254 link=no m
      ulticast=yes wireless=IEEE 802.11


      So apparently this card is using the rt2080usb driver but when I try to put it inside the hostapd.conf and start manually the hostapd I got the following error:



      $ sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf
      Configuration file: /etc/hostapd/hostapd.conf
      Line 3: invalid/unknown driver 'rt2080usb'
      1 errors found in configuration file '/etc/hostapd/hostapd.conf'
      Failed to set up interface with /etc/hostapd/hostapd.conf
      Failed to initialize interface


      And this is my hostapd.conf file:



      interface=wlan1
      ssid=WiPi
      driver=rt2080usb
      hw_mode=g
      ieee80211n=1
      wmm_enabled=1
      channel=4
      macaddr_acl=0
      auth_algs=3
      ignore_broadcast_ssid=0
      wpa=3
      wpa_passphrase=wifipasswordhere
      wpa_key_mgmt=WPA-PSK
      wpa_pairwise=TKIP
      rsn_pairwise=CCMP
      ht_capab=[HT20][SHORT-GI-20]









      share|improve this question













      I am trying to set an AP on a Raspberry Pi 3 using an external USB WiFi card and hostapd and dsnmasq. I have managed to achieve it using the internal WiFi card but when I try to switch to my external one I got the following error:



      $ sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf
      Configuration file: /etc/hostapd/hostapd.conf
      nl80211: Could not configure driver mode
      nl80211: deinit ifname=wlan1 disabled_11b_rates=0
      nl80211 driver initialization failed.
      wlan1: interface state UNINITIALIZED->DISABLED
      wlan1: AP-DISABLED
      hostapd_free_hapd_data: Interface wlan1 wasn't started


      I believe it is because by default the hostapd is using nl80211 driver. This is the output of lsusb - Bus 001 Device 004: ID 148f:3072 Ralink Technology, Corp. RT3072 Wireless Adapter. And this is the output of lshw



       *-network:1
      description: Wireless interface
      physical id: 3
      bus info: usb@1:1.4
      logical name: wlan1
      serial: 98:3f:9f:24:a2:00
      capabilities: ethernet physical wireless
      configuration: broadcast=yes driver=rt2800usb driverversion=4.14.71-v7+ firmware=0.36 ip=10.100.100.254 link=no m
      ulticast=yes wireless=IEEE 802.11


      So apparently this card is using the rt2080usb driver but when I try to put it inside the hostapd.conf and start manually the hostapd I got the following error:



      $ sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf
      Configuration file: /etc/hostapd/hostapd.conf
      Line 3: invalid/unknown driver 'rt2080usb'
      1 errors found in configuration file '/etc/hostapd/hostapd.conf'
      Failed to set up interface with /etc/hostapd/hostapd.conf
      Failed to initialize interface


      And this is my hostapd.conf file:



      interface=wlan1
      ssid=WiPi
      driver=rt2080usb
      hw_mode=g
      ieee80211n=1
      wmm_enabled=1
      channel=4
      macaddr_acl=0
      auth_algs=3
      ignore_broadcast_ssid=0
      wpa=3
      wpa_passphrase=wifipasswordhere
      wpa_key_mgmt=WPA-PSK
      wpa_pairwise=TKIP
      rsn_pairwise=CCMP
      ht_capab=[HT20][SHORT-GI-20]






      linux wifi hostapd access-point






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      Georgе Stoyanov

      16519




      16519

























          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f480431%2fhostapd-on-a-raspberry-pi-3-with-external-wifi-card%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f480431%2fhostapd-on-a-raspberry-pi-3-with-external-wifi-card%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)