mirror of https://gitee.com/openkylin/linux.git
qtnfmac: fix station leave reason endianness
Use proper endianness conversion for client station leave reason. Signed-off-by: Igor Mitsyanko <igor.mitsyanko.os@quantenna.com> Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com> Signed-off-by: Avinash Patil <avinashp@quantenna.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
278944482b
commit
fd19ecebe0
|
@ -211,8 +211,8 @@ qtnf_event_handle_bss_leave(struct qtnf_vif *vif,
|
|||
|
||||
pr_debug("VIF%u.%u: disconnected\n", vif->mac->macid, vif->vifid);
|
||||
|
||||
cfg80211_disconnected(vif->netdev, leave_info->reason, NULL, 0, 0,
|
||||
GFP_KERNEL);
|
||||
cfg80211_disconnected(vif->netdev, le16_to_cpu(leave_info->reason),
|
||||
NULL, 0, 0, GFP_KERNEL);
|
||||
|
||||
vif->sta_state = QTNF_STA_DISCONNECTED;
|
||||
netif_carrier_off(vif->netdev);
|
||||
|
|
|
@ -733,7 +733,7 @@ struct qlink_event_bss_join {
|
|||
*/
|
||||
struct qlink_event_bss_leave {
|
||||
struct qlink_event ehdr;
|
||||
u16 reason;
|
||||
__le16 reason;
|
||||
} __packed;
|
||||
|
||||
enum qlink_rxmgmt_flags {
|
||||
|
|
Loading…
Reference in New Issue