Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
90b14f29
Commit
90b14f29
authored
Dec 26, 2004
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Plain Diff
Merge pobox.com:/garz/repo/netdev-2.6/prism54
into pobox.com:/garz/repo/net-drivers-2.6
parents
3da972f0
c57200ac
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
10 deletions
+20
-10
drivers/net/wireless/prism54/isl_ioctl.c
drivers/net/wireless/prism54/isl_ioctl.c
+14
-10
drivers/net/wireless/prism54/islpci_hotplug.c
drivers/net/wireless/prism54/islpci_hotplug.c
+2
-0
drivers/net/wireless/prism54/prismcompat.h
drivers/net/wireless/prism54/prismcompat.h
+4
-0
No files found.
drivers/net/wireless/prism54/isl_ioctl.c
View file @
90b14f29
...
...
@@ -1524,31 +1524,35 @@ send_formatted_event(islpci_private *priv, const char *str,
const
struct
obj_mlme
*
mlme
,
int
error
)
{
union
iwreq_data
wrqu
;
char
*
memptr
;
wrqu
.
data
.
pointe
r
=
kmalloc
(
IW_CUSTOM_MAX
,
GFP_KERNEL
);
if
(
!
wrqu
.
data
.
pointe
r
)
mempt
r
=
kmalloc
(
IW_CUSTOM_MAX
,
GFP_KERNEL
);
if
(
!
mempt
r
)
return
;
wrqu
.
data
.
pointer
=
memptr
;
wrqu
.
data
.
length
=
0
;
format_event
(
priv
,
wrqu
.
data
.
pointe
r
,
str
,
mlme
,
&
wrqu
.
data
.
length
,
format_event
(
priv
,
mempt
r
,
str
,
mlme
,
&
wrqu
.
data
.
length
,
error
);
wireless_send_event
(
priv
->
ndev
,
IWEVCUSTOM
,
&
wrqu
,
wrqu
.
data
.
pointe
r
);
kfree
(
wrqu
.
data
.
pointe
r
);
wireless_send_event
(
priv
->
ndev
,
IWEVCUSTOM
,
&
wrqu
,
mempt
r
);
kfree
(
mempt
r
);
}
static
void
send_simple_event
(
islpci_private
*
priv
,
const
char
*
str
)
{
union
iwreq_data
wrqu
;
char
*
memptr
;
int
n
=
strlen
(
str
);
wrqu
.
data
.
pointe
r
=
kmalloc
(
IW_CUSTOM_MAX
,
GFP_KERNEL
);
if
(
!
wrqu
.
data
.
pointe
r
)
mempt
r
=
kmalloc
(
IW_CUSTOM_MAX
,
GFP_KERNEL
);
if
(
!
mempt
r
)
return
;
BUG_ON
(
n
>
IW_CUSTOM_MAX
);
wrqu
.
data
.
pointer
=
memptr
;
wrqu
.
data
.
length
=
n
;
strcpy
(
wrqu
.
data
.
pointe
r
,
str
);
wireless_send_event
(
priv
->
ndev
,
IWEVCUSTOM
,
&
wrqu
,
wrqu
.
data
.
pointe
r
);
kfree
(
wrqu
.
data
.
pointe
r
);
strcpy
(
mempt
r
,
str
);
wireless_send_event
(
priv
->
ndev
,
IWEVCUSTOM
,
&
wrqu
,
mempt
r
);
kfree
(
mempt
r
);
}
static
void
...
...
drivers/net/wireless/prism54/islpci_hotplug.c
View file @
90b14f29
...
...
@@ -292,6 +292,8 @@ prism54_resume(struct pci_dev *pdev)
islpci_private
*
priv
=
ndev
?
netdev_priv
(
ndev
)
:
NULL
;
BUG_ON
(
!
priv
);
pci_enable_device
(
pdev
);
printk
(
KERN_NOTICE
"%s: got resume request
\n
"
,
ndev
->
name
);
pci_restore_state
(
pdev
);
...
...
drivers/net/wireless/prism54/prismcompat.h
View file @
90b14f29
...
...
@@ -38,6 +38,10 @@
#error Firmware Loading is not configured in the kernel !
#endif
#ifndef __iomem
#define __iomem
#endif
#define prism54_synchronize_irq(irq) synchronize_irq(irq)
#define PRISM_FW_PDEV &priv->pdev->dev
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment