hostapd: fix radius problem due to invalid attributes
authorJohn Crispin <john@phrozen.org>
Thu, 3 Jun 2021 13:57:07 +0000 (15:57 +0200)
committerJohn Crispin <john@phrozen.org>
Thu, 3 Jun 2021 14:00:51 +0000 (16:00 +0200)
commit96e9c81aabe9e14d6ec75c3f238c4ca7389b92a8
treecf0fbdc47ae3ba9783deb351f09339eded7339f9
parent4f2243d40a400aa1ce6ae5d06325f93b4d9463a5
hostapd: fix radius problem due to invalid attributes

The offending commit caused the configuration file to contain:
  radius_auth_req_attr=
  radius_acct_req_attr=
which cause hostapd to add an ATTR of type 0 into the messages.

hostapd: RADIUS message: code=4 (Accounting-Request) identifier=0 length=93
hostapd:    Attribute 40 (Acct-Status-Type) length=6
hostapd:       Value: 7
hostapd:    Attribute 30 (Called-Station-Id) length=28
hostapd:       Value: 'C4-41-1E-F5-2D-55:OpenWifi'
hostapd:    Attribute 61 (NAS-Port-Type) length=6
hostapd:       Value: 19
hostapd:    Attribute 0 (?Unknown?) length=3    <----------------
hostapd:    Attribute 55 (Event-Timestamp) length=6
hostapd:       Value: 1622726457
hostapd:    Attribute 41 (Acct-Delay-Time) length=6
hostapd:       Value: 0
hostapd:    Attribute 44 (Acct-Session-Id) length=18
hostapd:       Value: '9B5961E7235AAEC6'

Fixes: 3bd6c8c728e (hostapd: add additional radius options)
Signed-off-by: John Crispin <john@phrozen.org>
package/network/services/hostapd/files/hostapd.sh