|
@@ -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);
|