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

相关推荐
q***47187 小时前
使用Canal将MySQL数据同步到ES(Linux)
linux·mysql·elasticsearch
Y淑滢潇潇8 小时前
RHCE 防火墙实验
linux·运维·rhce
wadesir9 小时前
当前位置:首页 > 服务器技术 > 正文Linux网络HSRP协议(实现路由器热备份与高可用性的实用指南)
linux·服务器·网络
稻谷君W9 小时前
Ubuntu 远程访问 Win11 WSL2 并固定访问教程
linux·运维·ubuntu
wdfk_prog9 小时前
[Linux]学习笔记系列 -- [kernel]workqueue
linux·笔记·学习
wdfk_prog9 小时前
[Linux]学习笔记系列 -- [kernel]usermode_helper
linux·笔记·学习
weixin_436525079 小时前
使用 idea 命令行构建 Docker 镜像并部署到云服务器
linux·docker·github
z***948411 小时前
Linux下安装Nginx服务及systemctl方式管理nginx详情
linux·运维·nginx
凉晓风12 小时前
Linux上TCP通信异常排查工具命令
linux·运维·tcp/ip
Xの哲學12 小时前
Linux 分区表深度技术剖析
linux·网络·算法·架构·边缘计算