# WAY OFF TOPIC - any RPI wifi gurus here?

**URL:** <https://discourse.nodered.org/t/way-off-topic-any-rpi-wifi-gurus-here/13526>\
**Category:** General\
**Created:** [21 July 2019 21:23 UTC](https://discourse.nodered.org/t/way-off-topic-any-rpi-wifi-gurus-here/13526 "2019-07-21T21:23:29Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [21 July 2019 21:23 UTC](https://discourse.nodered.org/t/way-off-topic-any-rpi-wifi-gurus-here/13526/1 "2019-07-21T21:23:29Z")

</div>

I have a PI running Stretch.  
It has a WiFi dongle and works/worked as a WAP.

Recently I updated it (`sudo apt update` `sudo apt upgrade`)  
It was working.

But it got power rebooted and the WAP stopped working.

I have been looking everywhere and can't really get an answer.

Give: The dongle works. The USB port works. I have tried a different dongle.  
I know the dongle works because I can run a python script to scan for visible WAPS, and it produces a list.  
If the dongle wasn't working, I would not expect to see that.

When I start `hostapd` it locks up.  
(That is with keyboard, mouse and monitor plugged in. Not headless.)

Research has hinted at `wpa_supplicant` and the latest _update_ going backwards with security.  
So the `hostapd` is _masked_ because of (reasons beyond my knowledge).  
I am trying to find how to resolve this, as I am sure there are others who use their RPI as a WAP.

I have uninstalled `hostapd`, `dnsmasq` and other things, then reinstalled them. No luck.  
So I am hoping that it is a _simple_ thing to do with software.  
Simple for people who know what they are doing. Not me.  
Would someone please help me with working out what the problem is?

This is where I am at with the search:  
[WPA supplicant file mentioning](https://www.raspberrypi.org/forums/viewtopic.php?t=235105)  
It looks promising, but not in a way I can understand what needs to be done.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [21 July 2019 21:32 UTC](https://discourse.nodered.org/t/way-off-topic-any-rpi-wifi-gurus-here/13526/2 "2019-07-21T21:32:32Z")

</div>

Raspberry Pi gurus hang out on the raspberry pi forum (link on their website)

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [22 July 2019 02:27 UTC](https://discourse.nodered.org/t/way-off-topic-any-rpi-wifi-gurus-here/13526/3 "2019-07-22T02:27:34Z")

</div>

I fully agree.

But when I ask there I get no reply.

I am hoping someone here could/will help.

---

<div class="post-metadata">

**Author:** ![Bobo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobo/32/8401_2.png) [@Bobo](https://discourse.nodered.org/u/Bobo)\
**Post date:** [22 July 2019 03:23 UTC](https://discourse.nodered.org/t/way-off-topic-any-rpi-wifi-gurus-here/13526/4 "2019-07-22T03:23:00Z")

</div>

> [@Trying\_to\_learn](#):
>
> But when I ask there I get no reply.

Well, _IF_ that issue is related to your problem then it relates to a Debian bug. But it doesn't seem to be affecting many people, judging by the noise.

Have you looked to see what the wpa\_supplicant file contains?

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [22 July 2019 03:44 UTC](https://discourse.nodered.org/t/way-off-topic-any-rpi-wifi-gurus-here/13526/5 "2019-07-22T03:44:39Z")

</div>

I have seen a lot of stuff about "wpa\_supplicant" problems using Stretch.

Alas the replies are written in a language I do not understand.

[Example](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911297)

This is another one which looks like it **may** be what I need.

But I am not skilled enough to understand what is needing to be done:

[Maybe this one?](https://www.raspberrypi.org/forums/viewtopic.php?t=235105)

Be the problem "raspbian" or "debian".... The "gods" who released it did so and idiots like me don't know what to do to get around the problem.

I've asked, searched and tried to understand. I can't.

I get that.

So I am asking for help.

Surely someone here uses a RPI as a WAP.  
Or: knows something about the `wpa_supplicant.conf` file which has been refrenced many times in the searches last night/yesterday/the other day.

I am going around in circles.

I've just had a 10 minute argument with NR and dashboards. (See new thread coming soon!)

I don't see/understand why people who know this stuff don't share it.

---

<div class="post-metadata">

**Author:** ![Bobo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobo/32/8401_2.png) [@Bobo](https://discourse.nodered.org/u/Bobo)\
**Post date:** [22 July 2019 04:09 UTC](https://discourse.nodered.org/t/way-off-topic-any-rpi-wifi-gurus-here/13526/6 "2019-07-22T04:09:51Z")

</div>

> [@Bobo](#):
>
> Have you looked to see what the wpa\_supplicant file contains?

As I said above, have you done this? Login to the rpi, locate the file and open it. Does it contain something like  
tls\_disable\_tlsv1\_0=1  
tls\_disable\_tlsv1\_1=1

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [22 July 2019 04:14 UTC](https://discourse.nodered.org/t/way-off-topic-any-rpi-wifi-gurus-here/13526/7 "2019-07-22T04:14:35Z")

</div>

> [@Bobo](#):
>
> As I said above,

You asked. Ok, I didn't answer.

This is what it is **NOW** :

```auto
pi@TimePi:~ $ sudo cat /etc/wpa_supplicant/wpa_supplicant.conf 
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=AU

# added 2019 07 20
tls_disable_tlsv1_0=1
tls_disable_tlsv1_1=1
openssl_ciphers=DEFAULT@SECLEVEL=2
pi@TimePi:~ $ 

```

Note that I added the last three lines on 20 July.

This is what happens:

```auto
pi@TimePi:~ $ sudo systemctl unmask hostapd
pi@TimePi:~ $ sudo systemctl start hostapd
pi@TimePi:~ $ 

```

Machine locked up.  
Have to power cycle it.

So: I guess the short answer is no. It doesn't seem to fix it.

---

<div class="post-metadata">

**Author:** ![Bobo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobo/32/8401_2.png) [@Bobo](https://discourse.nodered.org/u/Bobo)\
**Post date:** [22 July 2019 04:38 UTC](https://discourse.nodered.org/t/way-off-topic-any-rpi-wifi-gurus-here/13526/8 "2019-07-22T04:38:46Z")

</div>

> [@Trying\_to\_learn](#):
>
> # added 2019 07 20 tls\_disable\_tlsv1\_0=1 tls\_disable\_tlsv1\_1=1 openssl\_ciphers=DEFAULT@SECLEVEL=2

So you added these lines manually, based on reading that forum post?

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [22 July 2019 04:51 UTC](https://discourse.nodered.org/t/way-off-topic-any-rpi-wifi-gurus-here/13526/9 "2019-07-22T04:51:48Z")

</div>

Correct.

They either don't apply to the problem I have... Or I am not doing it correctly.

As soon as I unmask hostapd and start it, the machine locks up - in about 10 seconds.  
(and needs to be power reset to get it working.)  
There is no keyboard/mouse input allowed. The network (Cat-5) is dead.

---

<div class="post-metadata">

**Author:** ![Bobo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobo/32/8401_2.png) [@Bobo](https://discourse.nodered.org/u/Bobo)\
**Post date:** [22 July 2019 04:59 UTC](https://discourse.nodered.org/t/way-off-topic-any-rpi-wifi-gurus-here/13526/10 "2019-07-22T04:59:12Z")

</div>

Indeed, it may well be the case that your problem is unrelated.

And I assume you used this guide initially for hostapd? [https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md](https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md)

The quickest solution (in the end) may be to ... you know the rest I'm sure. 🤯

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [22 July 2019 05:02 UTC](https://discourse.nodered.org/t/way-off-topic-any-rpi-wifi-gurus-here/13526/11 "2019-07-22T05:02:55Z")

</div>

Yes I do know the rest.

Yes, that is how I set about doing the WAP.

I uninstalled hostapd and re-installed it.

No luck.

But I know the hardware is working because I can scan for visible WAPs and the dongle supplies me a list.

It also blinks as it is doing it.

So..... I need a guru how can (kindly) afford me some help.

All this has happened since I did the `sudo apt update` `sudo apt upgrade` a while back.  
As the machine wasn't rebooted......

When I `ssh` into it there was something about the `wpa_supplicant file` (or config) but I didn't really get the jist of it. Until it rebooted.

---

<div class="post-metadata">

**Author:** ![Bobo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobo/32/8401_2.png) [@Bobo](https://discourse.nodered.org/u/Bobo)\
**Post date:** [22 July 2019 06:58 UTC](https://discourse.nodered.org/t/way-off-topic-any-rpi-wifi-gurus-here/13526/12 "2019-07-22T06:58:28Z")

</div>

> [@Trying\_to\_learn](#):
>
> So..... I need a guru how can (kindly) afford me some help.

I wish you well with that, but what I actually meant was ...

In the end it will probably be quicker to revert to your last known good backup. You do have one of those don't you?

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [22 July 2019 07:25 UTC](https://discourse.nodered.org/t/way-off-topic-any-rpi-wifi-gurus-here/13526/13 "2019-07-22T07:25:43Z")

</div>

Yes, but it is difficult when the O/S does updates which stops itself working.

Rolling back in that situation is also beyond my skills.

---

<div class="post-metadata">

**Author:** ![Bobo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobo/32/8401_2.png) [@Bobo](https://discourse.nodered.org/u/Bobo)\
**Post date:** [22 July 2019 07:32 UTC](https://discourse.nodered.org/t/way-off-topic-any-rpi-wifi-gurus-here/13526/14 "2019-07-22T07:32:05Z")

</div>

Raspbian will not automatically update anything, unless you are running some sort of script telling it to.

I am sure that backing up your sd card once you have a working system, then restoring the image back to another sd card if you run into trouble, is NOT beyond your skill set.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [22 July 2019 07:47 UTC](https://discourse.nodered.org/t/way-off-topic-any-rpi-wifi-gurus-here/13526/15 "2019-07-22T07:47:29Z")

</div>

No, backing up the card isn't. But I may need to know how to do it to a USB hard disc with the "dd" command.  
The problem is getting a version of the O/S before the last update.

---

<div class="post-metadata">

**Author:** ![Bobo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobo/32/8401_2.png) [@Bobo](https://discourse.nodered.org/u/Bobo)\
**Post date:** [22 July 2019 08:09 UTC](https://discourse.nodered.org/t/way-off-topic-any-rpi-wifi-gurus-here/13526/16 "2019-07-22T08:09:08Z")

</div>

> [@Trying\_to\_learn](#):
>
> But I may need to know how to do it to a USB hard disc with the "dd" command.

Seriously, abide by the old Chinese proverb that states ...KISS

> [@Trying\_to\_learn](#):
>
> The problem is getting a version of the O/S before the last update.

[https://downloads.raspberrypi.org/raspbian/images/](https://downloads.raspberrypi.org/raspbian/images/)

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [22 July 2019 11:24 UTC](https://discourse.nodered.org/t/way-off-topic-any-rpi-wifi-gurus-here/13526/17 "2019-07-22T11:24:00Z")

</div>

Have you checked that there is no conflict between the settings /etc/network/interfaces and wpa\_supplicant.conf ??

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [22 July 2019 21:35 UTC](https://discourse.nodered.org/t/way-off-topic-any-rpi-wifi-gurus-here/13526/18 "2019-07-22T21:35:11Z")

</div>

To the best of my knowledge, there is no conflict/s.

I added a couple of lines from a thread I found on the net about the problem, but they didn't fix it.
