hostapd配置wifi热点wpa密码后,连接提示密码错误

问题描述

  • 用手机wifi连接开发板配置好密码的hostapd热点,要么连接不上提示密码错误;要么用一会VNC后,断开连接。

问题解决

  • 在hostapd.conf的配置文件中,添加如下选项:

    wpa_pairwise=TKIP CCMP

  • 然后重新连接,发现问题解决,wifi不再断开连接,也不提示密码错误。

思考

  • 根据hostapd官方文档的内容:

    Set of accepted cipher suites (encryption algorithms) for pairwise keys

    (unicast packets). This is a space separated list of algorithms:

    CCMP = AES in Counter mode with CBC-MAC (CCMP-128)

    TKIP = Temporal Key Integrity Protocol

    CCMP-256 = AES in Counter mode with CBC-MAC with 256-bit key

    GCMP = Galois/counter mode protocol (GCMP-128)

    GCMP-256 = Galois/counter mode protocol with 256-bit key

    Group cipher suite (encryption algorithm for broadcast and multicast frames)

    is automatically selected based on this configuration. If only CCMP is

    allowed as the pairwise cipher, group cipher will also be CCMP. Otherwise,

    TKIP will be used as the group cipher. The optional group_cipher parameter can

    be used to override this automatic selection.

    (dot11RSNAConfigPairwiseCiphersTable)

    Pairwise cipher for WPA (v1) (default: TKIP)

    #wpa_pairwise=TKIP CCMP

    Pairwise cipher for RSN/WPA2 (default: use wpa_pairwise value)

    #rsn_pairwise=CCMP

  • 大概是加密算法的配置,猜测是未配置传递密钥的加密算法,导致无法正确解密手机端传递的wifi密码。

相关推荐
__如风__12 分钟前
内网环境下ubuntu 20.04搭建深度学习环境总结
linux·服务器·ubuntu
学c语言的枫子16 分钟前
Linux文件IO——系统IO
linux·运维·服务器
敲上瘾16 分钟前
Docker网络实战:容器通信与隔离之道
linux·网络·docker·微服务·容器
知北游天1 小时前
Linux网络:初识网络
linux·运维·网络
染指11101 小时前
13.渗透-.Linux基础命令(五)-用户管理(修改用户密码)
linux·运维·服务器·linux命令
wheeldown1 小时前
【Linux】面试常考!Linux 进程核心考点:写时拷贝优化原理 + 进程等待实战,一篇理清进程一生
linux·运维·服务器·面试·php
歪比巴卜__2 小时前
【系列文章】Linux中的并发与竞争[02]-原子操作
linux
MyCollege19996 小时前
win10使用ssh访问vmware虚拟机
linux·运维·centos
许怀楠8 小时前
【主页介绍】
linux·c++·贪心算法·visual studio
大聪明-PLUS9 小时前
GCC 对 C 语言的扩展
linux·嵌入式·arm·smarc