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密码。

相关推荐
老马聊技术1 分钟前
Rocky Linux 9.0 安装 MySQL8.x详细教程
linux·数据库
xinyu39134 分钟前
旧版Ubuntu Docker镜像 apt 失败
linux·ubuntu·docker
JZC_xiaozhong1 小时前
OA调价审批后,采购调价单如何自动同步到ERP?解决漏录错价难题
大数据·linux·服务器·前端·数据库·数据孤岛解决方案·数据集成与应用集成
ljs6482739511 小时前
Linux 实用命令:环境变量、文件传输、压缩解压、跨服务器传文件
linux·运维·服务器
__Witheart__1 小时前
lunch选择的版型与版型对应的配置文件
android·linux
A小调的码农1 小时前
给垃圾平板“一生E本” 装新系统—————Armbian 编译 KYX T7Y (RK3326) 踩坑全记录
linux·嵌入式硬件
ljs6482739511 小时前
Linux 网络常用命令与端口基础详解
linux·网络·php
qq_163135752 小时前
Linux 判断是否安装 Conda / Miniconda 完整方法
linux
weixin_307779132 小时前
Linux下Docker Compose里运行Milvus向量数据库故障诊断Shell脚本
linux·运维·数据库·docker·milvus
素心如月桠2 小时前
windows系统使用https://lnmp.org/的LNMP一键安装包,来打开我的服务器Linux
linux·运维·服务器