Configuring hotspot for android 4.4.2

Hi,
I am new to opensuse,using 13.2 with KDE 4.14.I am using wired LAN connection for it.Now I want to make the laptop as wifi hotspot for my android 4.4.2 phone.I have tried in many ways like hostapd,networkManager etc. but no result at all.
Can anyone help me with this problem? :frowning:

Whenever you’ve tried something (like hostapd) and failed, you need to describe in detail what you’ve attempted step by step.
Then, you should post any errors exactly if you encounter any or describe how you attempted something (like configure your Android) and your failed result.

TSU

I have followed the procedure given in the link Hostapd : The Linux Way to create Virtual Wifi Access Point | Foo, Bar and Foobar but after giving

sudo hostapd ~/hostapd-test.conf

gives me the following error:


Configuration file: /root/hostapd-test.conf
Could not read interface wlan0 flags: No such device
nl80211: Driver does not support authentication/association or connect commands
Could not read interface wlan0 flags: No such device
nl80211 driver initialization failed.
hostapd_free_hapd_data: Interface wlan0 wasn’t started

I didn’t get any clue to solve it :frowning:

It seems like a bizarre requirement but I guess there must be some strange situation that means the internet available to your laptop isn’t also available to your phone?
I seem to recall seeing something like this last time I booted up a gnome install of openSUSE

caf4926
It happens. For instance, you may have only a wired connection available and no easy way to connect your phone except by WiFi or Bluetooh, particularly if you’re trying to avoid wireless carrier data usage.

saptarshi1994
Nowadays, traditional interface names like “wlan0” are not used anymore, replaced by hardware-descriptive interface names.

To discover what your wireless interface name is run

ip addr

Substitute the proper interface name (from the above command) for “wlan0” in your ~/hostapd-test.conf file. According to the guide you’re following, after the test verifies a correct configuration you should make the same adjustment in your /etc/hostapd/hostapd.conf file.

HTH,
TSU

I have given

ip addr

and the o/p is-

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: wlp5s0: <NO-CARRIER,BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state DORMANT group default qlen 1000
    link/ether b8:ee:65:ca:20:c3 brd ff:ff:ff:ff:ff:ff
3: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether c4:54:44:5a:20:f2 brd ff:ff:ff:ff:ff:ff
    inet 172.27.11.30/24 brd 172.27.11.255 scope global enp1s0
       valid_lft forever preferred_lft forever
    inet6 fe80::c654:44ff:fe5a:20f2/64 scope link 
       valid_lft forever preferred_lft forever


and

iwconfig

gives

lo        no wireless extensions.

enp1s0    no wireless extensions.

wlp5s0    IEEE 802.11abg  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=200 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off


So I replaced wlan0 with wlp5s0 and ran

sudo hostapd ~/hostapd-test.conf

and gives the following error

Configuration file: /root/hostapd-test.conf
Could not read interface wl5so flags: No such device
nl80211: Driver does not support authentication/association or connect commands
Could not read interface wl5so flags: No such device
nl80211 driver initialization failed.
hostapd_free_hapd_data: Interface wl5so wasn't started



ip addr

wlp5s0 IEEE 802.11abg ESSID:off/any

Error:

Could not read interface wl5so flags: No such device

Add the right Name of the Inteface.

If Saurland’s post wasn’t entirely clear, you have a typo, missing a “p” in your interface name.

TSU

You also have an “o” in place of an"0".

I have typo mistake,so I replaced wlp5so with wlp5s0 but got this o/p

Configuration file: /home/saptarshi/hostapd-test.conf
nl80211: Could not configure driver mode
nl80211 driver initialization failed.
hostapd_free_hapd_data: Interface wlp5s0 wasn't started