[WNM-Notification] When and where hostapd sends Remediation Request to the device

Jouni Malinen j
Sat Sep 27 10:03:33 PDT 2014


On Fri, Sep 26, 2014 at 09:24:31PM +0200, Adrian Moran wrote:
> I have tried to put some traces in the code to detect if it is executing
> that function and I have no results. Basing on HS 2.0 R2 specification the
> WNM-Notification should be sent after the AP receive an Access-Accept
> message from AAA server with the RADIUS attribute
> "HS2.0-Subscription-Remediation" (vendor specific attribute from the WFA).

This works fine for me.. You should see it like this in hostapd debug
log:

RADIUS message: code=2 (Access-Accept) identifier=5 length=189
   Attribute 79 (EAP-Message) length=6
      Value: 03fe0004
   Attribute 26 (Vendor-Specific) length=58
      Value: 000001371034f97c69da4809c4f894ef9f04307da4c92bbcff9204e63f52d4ab773425a8b5f3cfba13c36174806f1c5bffd3c00c763db060
   Attribute 26 (Vendor-Specific) length=58
      Value: 000001371134f97d3378d7ac0525611cd2e80c564f0f30640d27b8c63839894d564c1da76602e635c68622a78d44073f6439cb5a78ff2e21
   Attribute 26 (Vendor-Specific) length=29
      Value: 00009f6801170168747470733a2f2f6578616d706c652e636f6d2f
   Attribute 80 (Message-Authenticator) length=18
      Value: 82f1d5f5c14e6689555bf3a21e20b43f
RADIUS packet matching with station 02:00:00:00:00:00
MS-MPPE-Send-Key - hexdump(len=32): 34 21 30 8b b5 8e b1 49 f6 7b 0e 4a 97 97 8d 9a 9e 3f e9 24 15 22 c3 91 92 8d 59 bf e8 15 d1 e9
MS-MPPE-Recv-Key - hexdump(len=32): da be d0 50 27 ba 29 66 02 ff 1e 35 e3 94 06 7b 4e c3 ac 79 f8 50 1e 9b 2b 7b 75 8c 0c a2 f7 9f
HS 2.0: Subscription remediation needed for 02:00:00:00:00:00 - server method 1 URL https://example.com/
...
wlan3: STA 02:00:00:00:00:00 WPA: received EAPOL-Key frame (4/4 Pairwise)
...
wlan3: AP-STA-CONNECTED 02:00:00:00:00:00
nl80211: Set STA flags - ifname=wlan3 addr=02:00:00:00:00:00 total_flags=0xf flags_or=0x1 flags_and=0xffffffff authorized=1
HS 2.0: Send WNM-Notification to 02:00:00:00:00:00 to indicate Subscription Remediation

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list