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

相关推荐
qetfw3 分钟前
Linux 文件清理:find、mtime 与安全传参验证
linux·shell·1024程序员节
可乐_不渴1 小时前
【Linux】 项目自动化构建工具makefile&& 版本管理Git&&第一个程序
linux·git·自动化·1024程序员节
西安同步电子2 小时前
时统卡驱动踩坑:Windows 和 Linux 下时间同步的底层差异
linux·stm32·单片机
虚无的纽扣2 小时前
【Linux】线程互斥:多线程改同一个变量,到底会出什么问题
linux·服务器·1024程序员节
qetfw2 小时前
Bash 函数与流程控制:read、if、for、case 验证
linux·前端·javascript·bash
m0_547486662 小时前
《Linux操作系统基本原理与应用》全套PPT课件2026
linux·linux系统
Pointer Pursuit2 小时前
Linux环境变量
linux·服务器·c语言·链表·1024程序员节
星恒随风3 小时前
Linux网络编程基础(二):彻底理解局域网通信、MAC与IP地址、数据封装、端口号、网络字节序及Socket接口
linux·网络·笔记·学习·tcp/ip·1024程序员节
CHHH_HHH3 小时前
【Linux网络篇】初识网络与Socket编程基础
linux·服务器·c语言·开发语言·网络·后端·1024程序员节
郭涤生3 小时前
Jetson Orin 启动链
linux·jetson