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

相关推荐
网易独家音乐人Mike Zhou44 分钟前
【Linux应用】开发板USB共享网络,网线或USB以太网共享网络(局域网连接PC和开发板,实现PC给开发板共享网络,USB通过NDIS驱动共享)
linux·网络·单片机·mcu·物联网·嵌入式·iot
basketball6161 小时前
Linux C 管道文件操作
linux·运维·c语言
浩浩测试一下2 小时前
Windows 与 Linux 内核安全及 Metasploit/LinEnum 在渗透测试中的综合应用
linux·运维·windows·web安全·网络安全·系统安全·安全架构
stark张宇2 小时前
Linux 文件创建、删除、移动、复制基础知识整理
linux·服务器·centos
Jiangnan_Cai3 小时前
Linux 系统 docker 部署 Dify
linux·docker·大模型·dify
Two_brushes.4 小时前
【linux网络】深入理解 TCP/UDP:从基础端口号到可靠传输机制全解析
linux·运维·服务器
FJW0208144 小时前
【Linux】系统引导修复
linux·运维·服务器
慌糖5 小时前
CentOS 安装 Redis 简明指南
linux·redis·centos
设计师小聂!5 小时前
linux常用命令(一)
linux·运维·服务器
hnlucky5 小时前
《Nginx + 双Tomcat实战:域名解析、静态服务与反向代理、负载均衡全指南》
java·linux·服务器·前端·nginx·tomcat·web