Changeset 12394


Ignore:
Timestamp:
2008-08-26T19:19:00+02:00 (8 years ago)
Author:
florian
Message:

A WPA(2) pre-shared key can either be specified as a 8 to 63 character passphrase which is hashed to a 256 bit key together with the SSID, or a 64 character hex key. Currently, the latter option is supported by the broadcom wifi type, but no by hostapd. The attached patch allows using a 64 character hex key. (#3935)

Signed-off-by: thomas@…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/hostapd/files/hostapd.sh

    r12375 r12394  
    4040                *psk*|*PSK*) 
    4141                        config_get psk "$vif" key 
    42                         append hostapd_cfg "wpa_passphrase=$psk" "$N" 
     42                        if [ ${#psk} -eq 64 ]; then 
     43                                append hostapd_cfg "wpa_psk=$psk" "$N" 
     44                        else 
     45                                append hostapd_cfg "wpa_passphrase=$psk" "$N" 
     46                        fi 
    4347                ;; 
    4448                *wpa*|*WPA*) 
Note: See TracChangeset for help on using the changeset viewer.