enable KASSERT in net80211 and fixes wrong uses of the macro.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41425 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -147,7 +147,7 @@ start_wlan(device_t device)
|
|||||||
|
|
||||||
// ic_vap_create() established that gDevices[i] links to vap->iv_ifp now
|
// ic_vap_create() established that gDevices[i] links to vap->iv_ifp now
|
||||||
KASSERT(gDevices[i] == vap->iv_ifp,
|
KASSERT(gDevices[i] == vap->iv_ifp,
|
||||||
"start_wlan: gDevices[i] != vap->iv_ifp");
|
("start_wlan: gDevices[i] != vap->iv_ifp"));
|
||||||
|
|
||||||
vap->iv_ifp->scan_done_sem = create_sem(0, "wlan scan done");
|
vap->iv_ifp->scan_done_sem = create_sem(0, "wlan scan done");
|
||||||
|
|
||||||
@@ -182,7 +182,7 @@ stop_wlan(device_t device)
|
|||||||
ic->ic_vap_delete(vap);
|
ic->ic_vap_delete(vap);
|
||||||
|
|
||||||
// ic_vap_delete freed gDevices[i]
|
// ic_vap_delete freed gDevices[i]
|
||||||
KASSERT(gDevices[i] == NULL, "stop_wlan: gDevices[i] != NULL");
|
KASSERT(gDevices[i] == NULL, ("stop_wlan: gDevices[i] != NULL"));
|
||||||
|
|
||||||
// assign the base device ifp again
|
// assign the base device ifp again
|
||||||
gDevices[i] = ic->ic_ifp;
|
gDevices[i] = ic->ic_ifp;
|
||||||
|
|||||||
@@ -40,6 +40,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
#define INVARIANTS 1
|
||||||
|
|
||||||
#include <sys/kernel.h>
|
#include <sys/kernel.h>
|
||||||
#include <sys/mutex.h>
|
#include <sys/mutex.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user